1# Copyright (c) 2017, The MITRE Corporation. All rights reserved. 2# See LICENSE.txt for complete terms. 3 4from mixbox import fields 5 6import cybox.bindings.win_critical_section_object as win_critical_section_binding 7from cybox.common import ObjectProperties, HexBinary, NonNegativeInteger 8 9 10class WinCriticalSection(ObjectProperties): 11 _binding = win_critical_section_binding 12 _binding_class = win_critical_section_binding.WindowsCriticalSectionObjectType 13 _namespace = 'http://cybox.mitre.org/objects#WinCriticalSectionObject-2' 14 _XSI_NS = "WinCriticalSectionObj" 15 _XSI_TYPE = "WindowsCriticalSectionObjectType" 16 17 address = fields.TypedField("Address", HexBinary) 18 spin_count = fields.TypedField("Spin_Count", NonNegativeInteger) 19