PyXR

c:\python24\lib\site-packages\win32\lib \ winnt.py



0001 # Generated by h2py from \mssdk\include\winnt.h
0002 
0003 APPLICATION_ERROR_MASK = 536870912
0004 ERROR_SEVERITY_SUCCESS = 0
0005 ERROR_SEVERITY_INFORMATIONAL = 1073741824
0006 ERROR_SEVERITY_WARNING = -2147483648
0007 ERROR_SEVERITY_ERROR = -1073741824
0008 MINCHAR = 128
0009 MAXCHAR = 127
0010 MINSHORT = 32768
0011 MAXSHORT = 32767
0012 MINLONG = -2147483648
0013 MAXLONG = 2147483647
0014 MAXBYTE = 255
0015 MAXWORD = 65535
0016 MAXDWORD = -1
0017 LANG_NEUTRAL = 0
0018 LANG_AFRIKAANS = 54
0019 LANG_ALBANIAN = 28
0020 LANG_ARABIC = 1
0021 LANG_BASQUE = 45
0022 LANG_BELARUSIAN = 35
0023 LANG_BULGARIAN = 2
0024 LANG_CATALAN = 3
0025 LANG_CHINESE = 4
0026 LANG_CROATIAN = 26
0027 LANG_CZECH = 5
0028 LANG_DANISH = 6
0029 LANG_DUTCH = 19
0030 LANG_ENGLISH = 9
0031 LANG_ESTONIAN = 37
0032 LANG_FAEROESE = 56
0033 LANG_FARSI = 41
0034 LANG_FINNISH = 11
0035 LANG_FRENCH = 12
0036 LANG_GERMAN = 7
0037 LANG_GREEK = 8
0038 LANG_HEBREW = 13
0039 LANG_HINDI = 57
0040 LANG_HUNGARIAN = 14
0041 LANG_ICELANDIC = 15
0042 LANG_INDONESIAN = 33
0043 LANG_ITALIAN = 16
0044 LANG_JAPANESE = 17
0045 LANG_KOREAN = 18
0046 LANG_LATVIAN = 38
0047 LANG_LITHUANIAN = 39
0048 LANG_MACEDONIAN = 47
0049 LANG_MALAY = 62
0050 LANG_NORWEGIAN = 20
0051 LANG_POLISH = 21
0052 LANG_PORTUGUESE = 22
0053 LANG_ROMANIAN = 24
0054 LANG_RUSSIAN = 25
0055 LANG_SERBIAN = 26
0056 LANG_SLOVAK = 27
0057 LANG_SLOVENIAN = 36
0058 LANG_SPANISH = 10
0059 LANG_SWAHILI = 65
0060 LANG_SWEDISH = 29
0061 LANG_THAI = 30
0062 LANG_TURKISH = 31
0063 LANG_UKRAINIAN = 34
0064 LANG_VIETNAMESE = 42
0065 SUBLANG_NEUTRAL = 0
0066 SUBLANG_DEFAULT = 1
0067 SUBLANG_SYS_DEFAULT = 2
0068 SUBLANG_ARABIC_SAUDI_ARABIA = 1
0069 SUBLANG_ARABIC_IRAQ = 2
0070 SUBLANG_ARABIC_EGYPT = 3
0071 SUBLANG_ARABIC_LIBYA = 4
0072 SUBLANG_ARABIC_ALGERIA = 5
0073 SUBLANG_ARABIC_MOROCCO = 6
0074 SUBLANG_ARABIC_TUNISIA = 7
0075 SUBLANG_ARABIC_OMAN = 8
0076 SUBLANG_ARABIC_YEMEN = 9
0077 SUBLANG_ARABIC_SYRIA = 10
0078 SUBLANG_ARABIC_JORDAN = 11
0079 SUBLANG_ARABIC_LEBANON = 12
0080 SUBLANG_ARABIC_KUWAIT = 13
0081 SUBLANG_ARABIC_UAE = 14
0082 SUBLANG_ARABIC_BAHRAIN = 15
0083 SUBLANG_ARABIC_QATAR = 16
0084 SUBLANG_CHINESE_TRADITIONAL = 1
0085 SUBLANG_CHINESE_SIMPLIFIED = 2
0086 SUBLANG_CHINESE_HONGKONG = 3
0087 SUBLANG_CHINESE_SINGAPORE = 4
0088 SUBLANG_CHINESE_MACAU = 5
0089 SUBLANG_DUTCH = 1
0090 SUBLANG_DUTCH_BELGIAN = 2
0091 SUBLANG_ENGLISH_US = 1
0092 SUBLANG_ENGLISH_UK = 2
0093 SUBLANG_ENGLISH_AUS = 3
0094 SUBLANG_ENGLISH_CAN = 4
0095 SUBLANG_ENGLISH_NZ = 5
0096 SUBLANG_ENGLISH_EIRE = 6
0097 SUBLANG_ENGLISH_SOUTH_AFRICA = 7
0098 SUBLANG_ENGLISH_JAMAICA = 8
0099 SUBLANG_ENGLISH_CARIBBEAN = 9
0100 SUBLANG_ENGLISH_BELIZE = 10
0101 SUBLANG_ENGLISH_TRINIDAD = 11
0102 SUBLANG_ENGLISH_ZIMBABWE = 12
0103 SUBLANG_ENGLISH_PHILIPPINES = 13
0104 SUBLANG_FRENCH = 1
0105 SUBLANG_FRENCH_BELGIAN = 2
0106 SUBLANG_FRENCH_CANADIAN = 3
0107 SUBLANG_FRENCH_SWISS = 4
0108 SUBLANG_FRENCH_LUXEMBOURG = 5
0109 SUBLANG_FRENCH_MONACO = 6
0110 SUBLANG_GERMAN = 1
0111 SUBLANG_GERMAN_SWISS = 2
0112 SUBLANG_GERMAN_AUSTRIAN = 3
0113 SUBLANG_GERMAN_LUXEMBOURG = 4
0114 SUBLANG_GERMAN_LIECHTENSTEIN = 5
0115 SUBLANG_ITALIAN = 1
0116 SUBLANG_ITALIAN_SWISS = 2
0117 SUBLANG_KOREAN = 1
0118 SUBLANG_KOREAN_JOHAB = 2
0119 SUBLANG_LITHUANIAN = 1
0120 SUBLANG_LITHUANIAN_CLASSIC = 2
0121 SUBLANG_MALAY_MALAYSIA = 1
0122 SUBLANG_MALAY_BRUNEI_DARUSSALAM = 2
0123 SUBLANG_NORWEGIAN_BOKMAL = 1
0124 SUBLANG_NORWEGIAN_NYNORSK = 2
0125 SUBLANG_PORTUGUESE = 2
0126 SUBLANG_PORTUGUESE_BRAZILIAN = 1
0127 SUBLANG_SERBIAN_LATIN = 2
0128 SUBLANG_SERBIAN_CYRILLIC = 3
0129 SUBLANG_SPANISH = 1
0130 SUBLANG_SPANISH_MEXICAN = 2
0131 SUBLANG_SPANISH_MODERN = 3
0132 SUBLANG_SPANISH_GUATEMALA = 4
0133 SUBLANG_SPANISH_COSTA_RICA = 5
0134 SUBLANG_SPANISH_PANAMA = 6
0135 SUBLANG_SPANISH_DOMINICAN_REPUBLIC = 7
0136 SUBLANG_SPANISH_VENEZUELA = 8
0137 SUBLANG_SPANISH_COLOMBIA = 9
0138 SUBLANG_SPANISH_PERU = 10
0139 SUBLANG_SPANISH_ARGENTINA = 11
0140 SUBLANG_SPANISH_ECUADOR = 12
0141 SUBLANG_SPANISH_CHILE = 13
0142 SUBLANG_SPANISH_URUGUAY = 14
0143 SUBLANG_SPANISH_PARAGUAY = 15
0144 SUBLANG_SPANISH_BOLIVIA = 16
0145 SUBLANG_SPANISH_EL_SALVADOR = 17
0146 SUBLANG_SPANISH_HONDURAS = 18
0147 SUBLANG_SPANISH_NICARAGUA = 19
0148 SUBLANG_SPANISH_PUERTO_RICO = 20
0149 SUBLANG_SWEDISH = 1
0150 SUBLANG_SWEDISH_FINLAND = 2
0151 SORT_DEFAULT = 0
0152 SORT_JAPANESE_XJIS = 0
0153 SORT_JAPANESE_UNICODE = 1
0154 SORT_CHINESE_BIG5 = 0
0155 SORT_CHINESE_PRCP = 0
0156 SORT_CHINESE_UNICODE = 1
0157 SORT_CHINESE_PRC = 2
0158 SORT_KOREAN_KSC = 0
0159 SORT_KOREAN_UNICODE = 1
0160 SORT_GERMAN_PHONE_BOOK = 1
0161 def PRIMARYLANGID(lgid): return ((WORD  )(lgid) & 1023)
0162 
0163 def SUBLANGID(lgid): return ((WORD  )(lgid) >> 10)
0164 
0165 NLS_VALID_LOCALE_MASK = 1048575
0166 def LANGIDFROMLCID(lcid): return ((WORD  )(lcid))
0167 
0168 def SORTIDFROMLCID(lcid): return ((WORD  )((((DWORD)(lcid)) & NLS_VALID_LOCALE_MASK) >> 16))
0169 
0170 def UNREFERENCED_PARAMETER(P): return (P)
0171 
0172 def DBG_UNREFERENCED_PARAMETER(P): return (P)
0173 
0174 def DBG_UNREFERENCED_LOCAL_VARIABLE(V): return (V)
0175 
0176 def UNREFERENCED_PARAMETER(P): return \
0177 
0178 def DBG_UNREFERENCED_PARAMETER(P): return \
0179 
0180 def DBG_UNREFERENCED_LOCAL_VARIABLE(V): return \
0181 
0182 MAXIMUM_WAIT_OBJECTS = 64
0183 MAXIMUM_SUSPEND_COUNT = MAXCHAR
0184 
0185 EXCEPTION_NONCONTINUABLE = 1
0186 EXCEPTION_MAXIMUM_PARAMETERS = 15
0187 PROCESS_TERMINATE = (1)
0188 PROCESS_CREATE_THREAD = (2)
0189 PROCESS_VM_OPERATION = (8)
0190 PROCESS_VM_READ = (16)
0191 PROCESS_VM_WRITE = (32)
0192 PROCESS_DUP_HANDLE = (64)
0193 PROCESS_CREATE_PROCESS = (128)
0194 PROCESS_SET_QUOTA = (256)
0195 PROCESS_SET_INFORMATION = (512)
0196 PROCESS_QUERY_INFORMATION = (1024)
0197 MAXIMUM_PROCESSORS = 32
0198 THREAD_TERMINATE = (1)
0199 THREAD_SUSPEND_RESUME = (2)
0200 THREAD_GET_CONTEXT = (8)
0201 THREAD_SET_CONTEXT = (16)
0202 THREAD_SET_INFORMATION = (32)
0203 THREAD_QUERY_INFORMATION = (64)
0204 THREAD_SET_THREAD_TOKEN = (128)
0205 THREAD_IMPERSONATE = (256)
0206 THREAD_DIRECT_IMPERSONATION = (512)
0207 JOB_OBJECT_ASSIGN_PROCESS = (1)
0208 JOB_OBJECT_SET_ATTRIBUTES = (2)
0209 JOB_OBJECT_QUERY = (4)
0210 JOB_OBJECT_TERMINATE = (8)
0211 TLS_MINIMUM_AVAILABLE = 64
0212 THREAD_BASE_PRIORITY_LOWRT = 15
0213 THREAD_BASE_PRIORITY_MAX = 2
0214 THREAD_BASE_PRIORITY_MIN = -2
0215 THREAD_BASE_PRIORITY_IDLE = -15
0216 JOB_OBJECT_LIMIT_WORKINGSET = 1
0217 JOB_OBJECT_LIMIT_PROCESS_TIME = 2
0218 JOB_OBJECT_LIMIT_JOB_TIME = 4
0219 JOB_OBJECT_LIMIT_ACTIVE_PROCESS = 8
0220 JOB_OBJECT_LIMIT_AFFINITY = 16
0221 JOB_OBJECT_LIMIT_PRIORITY_CLASS = 32
0222 JOB_OBJECT_LIMIT_VALID_FLAGS = 63
0223 EVENT_MODIFY_STATE = 2
0224 MUTANT_QUERY_STATE = 1
0225 SEMAPHORE_MODIFY_STATE = 2
0226 TIME_ZONE_ID_UNKNOWN = 0
0227 TIME_ZONE_ID_STANDARD = 1
0228 TIME_ZONE_ID_DAYLIGHT = 2
0229 PROCESSOR_INTEL_386 = 386
0230 PROCESSOR_INTEL_486 = 486
0231 PROCESSOR_INTEL_PENTIUM = 586
0232 PROCESSOR_MIPS_R4000 = 4000
0233 PROCESSOR_ALPHA_21064 = 21064
0234 PROCESSOR_HITACHI_SH3 = 10003
0235 PROCESSOR_HITACHI_SH3E = 10004
0236 PROCESSOR_HITACHI_SH4 = 10005
0237 PROCESSOR_MOTOROLA_821 = 821
0238 PROCESSOR_ARM_7TDMI = 70001
0239 PROCESSOR_ARCHITECTURE_INTEL = 0
0240 PROCESSOR_ARCHITECTURE_MIPS = 1
0241 PROCESSOR_ARCHITECTURE_ALPHA = 2
0242 PROCESSOR_ARCHITECTURE_PPC = 3
0243 PROCESSOR_ARCHITECTURE_SH = 4
0244 PROCESSOR_ARCHITECTURE_ARM = 5
0245 PROCESSOR_ARCHITECTURE_UNKNOWN = 65535
0246 PF_FLOATING_POINT_PRECISION_ERRATA = 0
0247 PF_FLOATING_POINT_EMULATED = 1
0248 PF_COMPARE_EXCHANGE_DOUBLE = 2
0249 PF_MMX_INSTRUCTIONS_AVAILABLE = 3
0250 PF_PPC_MOVEMEM_64BIT_OK = 4
0251 PF_ALPHA_BYTE_INSTRUCTIONS = 5
0252 SECTION_QUERY = 1
0253 SECTION_MAP_WRITE = 2
0254 SECTION_MAP_READ = 4
0255 SECTION_MAP_EXECUTE = 8
0256 SECTION_EXTEND_SIZE = 16
0257 PAGE_NOACCESS = 1
0258 PAGE_READONLY = 2
0259 PAGE_READWRITE = 4
0260 PAGE_WRITECOPY = 8
0261 PAGE_EXECUTE = 16
0262 PAGE_EXECUTE_READ = 32
0263 PAGE_EXECUTE_READWRITE = 64
0264 PAGE_EXECUTE_WRITECOPY = 128
0265 PAGE_GUARD = 256
0266 PAGE_NOCACHE = 512
0267 MEM_COMMIT = 4096
0268 MEM_RESERVE = 8192
0269 MEM_DECOMMIT = 16384
0270 MEM_RELEASE = 32768
0271 MEM_FREE = 65536
0272 MEM_PRIVATE = 131072
0273 MEM_MAPPED = 262144
0274 MEM_RESET = 524288
0275 MEM_TOP_DOWN = 1048576
0276 MEM_4MB_PAGES = -2147483648
0277 SEC_FILE = 8388608
0278 SEC_IMAGE = 16777216
0279 SEC_VLM = 33554432
0280 SEC_RESERVE = 67108864
0281 SEC_COMMIT = 134217728
0282 SEC_NOCACHE = 268435456
0283 MEM_IMAGE = SEC_IMAGE
0284 FILE_READ_DATA = ( 1 )
0285 FILE_LIST_DIRECTORY = ( 1 )
0286 FILE_WRITE_DATA = ( 2 )
0287 FILE_ADD_FILE = ( 2 )
0288 FILE_APPEND_DATA = ( 4 )
0289 FILE_ADD_SUBDIRECTORY = ( 4 )
0290 FILE_CREATE_PIPE_INSTANCE = ( 4 )
0291 FILE_READ_EA = ( 8 )
0292 FILE_WRITE_EA = ( 16 )
0293 FILE_EXECUTE = ( 32 )
0294 FILE_TRAVERSE = ( 32 )
0295 FILE_DELETE_CHILD = ( 64 )
0296 FILE_READ_ATTRIBUTES = ( 128 )
0297 FILE_WRITE_ATTRIBUTES = ( 256 )
0298 FILE_SHARE_READ = 1
0299 FILE_SHARE_WRITE = 2
0300 FILE_SHARE_DELETE = 4
0301 FILE_ATTRIBUTE_READONLY = 1
0302 FILE_ATTRIBUTE_HIDDEN = 2
0303 FILE_ATTRIBUTE_SYSTEM = 4
0304 FILE_ATTRIBUTE_DIRECTORY = 16
0305 FILE_ATTRIBUTE_ARCHIVE = 32
0306 FILE_ATTRIBUTE_ENCRYPTED = 64
0307 FILE_ATTRIBUTE_NORMAL = 128
0308 FILE_ATTRIBUTE_TEMPORARY = 256
0309 FILE_ATTRIBUTE_SPARSE_FILE = 512
0310 FILE_ATTRIBUTE_REPARSE_POINT = 1024
0311 FILE_ATTRIBUTE_COMPRESSED = 2048
0312 FILE_ATTRIBUTE_OFFLINE = 4096
0313 FILE_NOTIFY_CHANGE_FILE_NAME = 1
0314 FILE_NOTIFY_CHANGE_DIR_NAME = 2
0315 FILE_NOTIFY_CHANGE_ATTRIBUTES = 4
0316 FILE_NOTIFY_CHANGE_SIZE = 8
0317 FILE_NOTIFY_CHANGE_LAST_WRITE = 16
0318 FILE_NOTIFY_CHANGE_LAST_ACCESS = 32
0319 FILE_NOTIFY_CHANGE_CREATION = 64
0320 FILE_NOTIFY_CHANGE_SECURITY = 256
0321 FILE_ACTION_ADDED = 1
0322 FILE_ACTION_REMOVED = 2
0323 FILE_ACTION_MODIFIED = 3
0324 FILE_ACTION_RENAMED_OLD_NAME = 4
0325 FILE_ACTION_RENAMED_NEW_NAME = 5
0326 FILE_CASE_SENSITIVE_SEARCH = 1
0327 FILE_CASE_PRESERVED_NAMES = 2
0328 FILE_UNICODE_ON_DISK = 4
0329 FILE_PERSISTENT_ACLS = 8
0330 FILE_FILE_COMPRESSION = 16
0331 FILE_VOLUME_QUOTAS = 32
0332 FILE_SUPPORTS_SPARSE_FILES = 64
0333 FILE_SUPPORTS_REPARSE_POINTS = 128
0334 FILE_SUPPORTS_REMOTE_STORAGE = 256
0335 FILE_VOLUME_IS_COMPRESSED = 32768
0336 FILE_SUPPORTS_OBJECT_IDS = 65536
0337 FILE_SUPPORTS_ENCRYPTION = 131072
0338 MAXIMUM_REPARSE_DATA_BUFFER_SIZE = ( 16 * 1024 )
0339 IO_REPARSE_TAG_RESERVED_ZERO = (0)
0340 IO_REPARSE_TAG_RESERVED_ONE = (1)
0341 IO_REPARSE_TAG_SYMBOLIC_LINK = (2)
0342 IO_REPARSE_TAG_DFS = (3)
0343 IO_REPARSE_TAG_HSM = (4)
0344 IO_REPARSE_TAG_NSS = (5)
0345 IO_REPARSE_TAG_MOUNT_POINT = (6)
0346 IO_REPARSE_TAG_SIS = (7)
0347 IO_REPARSE_TAG_NSSRECOVER = (8)
0348 IO_REPARSE_TAG_RESERVED_MS_RANGE = (256)
0349 IO_REPARSE_TAG_RESERVED_RANGE = IO_REPARSE_TAG_RESERVED_ONE
0350 IO_COMPLETION_MODIFY_STATE = 2
0351 DUPLICATE_CLOSE_SOURCE = 1
0352 DUPLICATE_SAME_ACCESS = 2
0353 DELETE = (65536)
0354 READ_CONTROL = (131072)
0355 WRITE_DAC = (262144)
0356 WRITE_OWNER = (524288)
0357 SYNCHRONIZE = (1048576)
0358 STANDARD_RIGHTS_REQUIRED = (983040)
0359 STANDARD_RIGHTS_READ = (READ_CONTROL)
0360 STANDARD_RIGHTS_WRITE = (READ_CONTROL)
0361 STANDARD_RIGHTS_EXECUTE = (READ_CONTROL)
0362 STANDARD_RIGHTS_ALL = (2031616)
0363 SPECIFIC_RIGHTS_ALL = (65535)
0364 ACCESS_SYSTEM_SECURITY = (16777216)
0365 MAXIMUM_ALLOWED = (33554432)
0366 GENERIC_READ = (-2147483648)
0367 GENERIC_WRITE = (1073741824)
0368 GENERIC_EXECUTE = (536870912)
0369 GENERIC_ALL = (268435456)
0370 
0371 # Included from pshpack4.h
0372 
0373 # Included from poppack.h
0374 SID_REVISION = (1)
0375 SID_MAX_SUB_AUTHORITIES = (15)
0376 SID_RECOMMENDED_SUB_AUTHORITIES = (1)
0377 
0378 SidTypeUser = 1
0379 SidTypeGroup = 2
0380 SidTypeDomain =3
0381 SidTypeAlias = 4
0382 SidTypeWellKnownGroup = 5
0383 SidTypeDeletedAccount = 6
0384 SidTypeInvalid = 7
0385 SidTypeUnknown = 8
0386 
0387 SECURITY_NULL_RID = (0)
0388 SECURITY_WORLD_RID = (0)
0389 SECURITY_LOCAL_RID = (0X00000000)
0390 SECURITY_CREATOR_OWNER_RID = (0)
0391 SECURITY_CREATOR_GROUP_RID = (1)
0392 SECURITY_CREATOR_OWNER_SERVER_RID = (2)
0393 SECURITY_CREATOR_GROUP_SERVER_RID = (3)
0394 SECURITY_DIALUP_RID = (1)
0395 SECURITY_NETWORK_RID = (2)
0396 SECURITY_BATCH_RID = (3)
0397 SECURITY_INTERACTIVE_RID = (4)
0398 SECURITY_SERVICE_RID = (6)
0399 SECURITY_ANONYMOUS_LOGON_RID = (7)
0400 SECURITY_PROXY_RID = (8)
0401 SECURITY_SERVER_LOGON_RID = (9)
0402 SECURITY_PRINCIPAL_SELF_RID = (10)
0403 SECURITY_AUTHENTICATED_USER_RID = (11)
0404 SECURITY_LOGON_IDS_RID = (5)
0405 SECURITY_LOGON_IDS_RID_COUNT = (3)
0406 SECURITY_LOCAL_SYSTEM_RID = (18)
0407 SECURITY_NT_NON_UNIQUE = (21)
0408 SECURITY_BUILTIN_DOMAIN_RID = (32)
0409 DOMAIN_USER_RID_ADMIN = (500)
0410 DOMAIN_USER_RID_GUEST = (501)
0411 DOMAIN_GROUP_RID_ADMINS = (512)
0412 DOMAIN_GROUP_RID_USERS = (513)
0413 DOMAIN_GROUP_RID_GUESTS = (514)
0414 DOMAIN_ALIAS_RID_ADMINS = (544)
0415 DOMAIN_ALIAS_RID_USERS = (545)
0416 DOMAIN_ALIAS_RID_GUESTS = (546)
0417 DOMAIN_ALIAS_RID_POWER_USERS = (547)
0418 DOMAIN_ALIAS_RID_ACCOUNT_OPS = (548)
0419 DOMAIN_ALIAS_RID_SYSTEM_OPS = (549)
0420 DOMAIN_ALIAS_RID_PRINT_OPS = (550)
0421 DOMAIN_ALIAS_RID_BACKUP_OPS = (551)
0422 DOMAIN_ALIAS_RID_REPLICATOR = (552)
0423 SE_GROUP_MANDATORY = (1)
0424 SE_GROUP_ENABLED_BY_DEFAULT = (2)
0425 SE_GROUP_ENABLED = (4)
0426 SE_GROUP_OWNER = (8)
0427 SE_GROUP_LOGON_ID = (-1073741824)
0428 ACL_REVISION = (2)
0429 ACL_REVISION_DS = (4)
0430 ACL_REVISION1 = (1)
0431 ACL_REVISION2 = (2)
0432 ACL_REVISION3 = (3)
0433 ACL_REVISION4 = (4)
0434 MAX_ACL_REVISION = ACL_REVISION4
0435 ACCESS_MIN_MS_ACE_TYPE = (0)
0436 ACCESS_ALLOWED_ACE_TYPE = (0)
0437 ACCESS_DENIED_ACE_TYPE = (1)
0438 SYSTEM_AUDIT_ACE_TYPE = (2)
0439 SYSTEM_ALARM_ACE_TYPE = (3)
0440 ACCESS_MAX_MS_V2_ACE_TYPE = (3)
0441 ACCESS_ALLOWED_COMPOUND_ACE_TYPE = (4)
0442 ACCESS_MAX_MS_V3_ACE_TYPE = (4)
0443 ACCESS_MIN_MS_OBJECT_ACE_TYPE = (5)
0444 ACCESS_ALLOWED_OBJECT_ACE_TYPE = (5)
0445 ACCESS_DENIED_OBJECT_ACE_TYPE = (6)
0446 SYSTEM_AUDIT_OBJECT_ACE_TYPE = (7)
0447 SYSTEM_ALARM_OBJECT_ACE_TYPE = (8)
0448 ACCESS_MAX_MS_OBJECT_ACE_TYPE = (8)
0449 ACCESS_MAX_MS_V4_ACE_TYPE = (8)
0450 ACCESS_MAX_MS_ACE_TYPE = (8)
0451 OBJECT_INHERIT_ACE = (1)
0452 CONTAINER_INHERIT_ACE = (2)
0453 NO_PROPAGATE_INHERIT_ACE = (4)
0454 INHERIT_ONLY_ACE = (8)
0455 INHERITED_ACE = (16)
0456 VALID_INHERIT_FLAGS = (31)
0457 SUCCESSFUL_ACCESS_ACE_FLAG = (64)
0458 FAILED_ACCESS_ACE_FLAG = (128)
0459 ACE_OBJECT_TYPE_PRESENT = 1
0460 ACE_INHERITED_OBJECT_TYPE_PRESENT = 2
0461 SECURITY_DESCRIPTOR_REVISION = (1)
0462 SECURITY_DESCRIPTOR_REVISION1 = (1)
0463 SECURITY_DESCRIPTOR_MIN_LENGTH = (20)
0464 SE_OWNER_DEFAULTED = (1)
0465 SE_GROUP_DEFAULTED = (2)
0466 SE_DACL_PRESENT = (4)
0467 SE_DACL_DEFAULTED = (8)
0468 SE_SACL_PRESENT = (16)
0469 SE_SACL_DEFAULTED = (32)
0470 SE_DACL_AUTO_INHERIT_REQ = (256)
0471 SE_SACL_AUTO_INHERIT_REQ = (512)
0472 SE_DACL_AUTO_INHERITED = (1024)
0473 SE_SACL_AUTO_INHERITED = (2048)
0474 SE_DACL_PROTECTED = (4096)
0475 SE_SACL_PROTECTED = (8192)
0476 SE_SELF_RELATIVE = (32768)
0477 ACCESS_OBJECT_GUID = 0
0478 ACCESS_PROPERTY_SET_GUID = 1
0479 ACCESS_PROPERTY_GUID = 2
0480 ACCESS_MAX_LEVEL = 4
0481 AUDIT_ALLOW_NO_PRIVILEGE = 1
0482 ACCESS_DS_SOURCE_A = "Directory Service"
0483 ACCESS_DS_OBJECT_TYPE_NAME_A = "Directory Service Object"
0484 SE_PRIVILEGE_ENABLED_BY_DEFAULT = (1)
0485 SE_PRIVILEGE_ENABLED = (2)
0486 SE_PRIVILEGE_USED_FOR_ACCESS = (-2147483648)
0487 PRIVILEGE_SET_ALL_NECESSARY = (1)
0488 
0489 SE_CREATE_TOKEN_NAME = "SeCreateTokenPrivilege"
0490 SE_ASSIGNPRIMARYTOKEN_NAME = "SeAssignPrimaryTokenPrivilege"
0491 SE_LOCK_MEMORY_NAME = "SeLockMemoryPrivilege"
0492 SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege"
0493 SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege"
0494 SE_MACHINE_ACCOUNT_NAME = "SeMachineAccountPrivilege"
0495 SE_TCB_NAME = "SeTcbPrivilege"
0496 SE_SECURITY_NAME = "SeSecurityPrivilege"
0497 SE_TAKE_OWNERSHIP_NAME = "SeTakeOwnershipPrivilege"
0498 SE_LOAD_DRIVER_NAME = "SeLoadDriverPrivilege"
0499 SE_SYSTEM_PROFILE_NAME = "SeSystemProfilePrivilege"
0500 SE_SYSTEMTIME_NAME = "SeSystemtimePrivilege"
0501 SE_PROF_SINGLE_PROCESS_NAME = "SeProfileSingleProcessPrivilege"
0502 SE_INC_BASE_PRIORITY_NAME = "SeIncreaseBasePriorityPrivilege"
0503 SE_CREATE_PAGEFILE_NAME = "SeCreatePagefilePrivilege"
0504 SE_CREATE_PERMANENT_NAME = "SeCreatePermanentPrivilege"
0505 SE_BACKUP_NAME = "SeBackupPrivilege"
0506 SE_RESTORE_NAME = "SeRestorePrivilege"
0507 SE_SHUTDOWN_NAME = "SeShutdownPrivilege"
0508 SE_DEBUG_NAME = "SeDebugPrivilege"
0509 SE_AUDIT_NAME = "SeAuditPrivilege"
0510 SE_SYSTEM_ENVIRONMENT_NAME = "SeSystemEnvironmentPrivilege"
0511 SE_CHANGE_NOTIFY_NAME = "SeChangeNotifyPrivilege"
0512 SE_REMOTE_SHUTDOWN_NAME = "SeRemoteShutdownPrivilege"
0513 TOKEN_ASSIGN_PRIMARY = (1)
0514 TOKEN_DUPLICATE = (2)
0515 TOKEN_IMPERSONATE = (4)
0516 TOKEN_QUERY = (8)
0517 TOKEN_QUERY_SOURCE = (16)
0518 TOKEN_ADJUST_PRIVILEGES = (32)
0519 TOKEN_ADJUST_GROUPS = (64)
0520 TOKEN_ADJUST_DEFAULT = (128)
0521 TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED  |\
0522                           TOKEN_ASSIGN_PRIMARY      |\
0523                           TOKEN_DUPLICATE           |\
0524                           TOKEN_IMPERSONATE         |\
0525                           TOKEN_QUERY               |\
0526                           TOKEN_QUERY_SOURCE        |\
0527                           TOKEN_ADJUST_PRIVILEGES   |\
0528                           TOKEN_ADJUST_GROUPS       |\
0529                           TOKEN_ADJUST_DEFAULT)
0530 TOKEN_READ = (STANDARD_RIGHTS_READ      |\
0531                           TOKEN_QUERY)
0532 TOKEN_WRITE = (STANDARD_RIGHTS_WRITE     |\
0533                           TOKEN_ADJUST_PRIVILEGES   |\
0534                           TOKEN_ADJUST_GROUPS       |\
0535                           TOKEN_ADJUST_DEFAULT)
0536 TOKEN_EXECUTE = (STANDARD_RIGHTS_EXECUTE)
0537 TOKEN_SOURCE_LENGTH = 8
0538 # Token types
0539 TokenPrimary = 1
0540 TokenImpersonation = 2
0541 
0542 TokenUser = 1
0543 TokenGroups = 2
0544 TokenPrivileges = 3
0545 TokenOwner = 4
0546 TokenPrimaryGroup = 5
0547 TokenDefaultDacl = 6
0548 TokenSource = 7
0549 TokenType = 8
0550 TokenImpersonationLevel = 9
0551 TokenStatistics = 10
0552 
0553 
0554 OWNER_SECURITY_INFORMATION = (0X00000001)
0555 GROUP_SECURITY_INFORMATION = (0X00000002)
0556 DACL_SECURITY_INFORMATION = (0X00000004)
0557 SACL_SECURITY_INFORMATION = (0X00000008)
0558 IMAGE_DOS_SIGNATURE = 23117
0559 IMAGE_OS2_SIGNATURE = 17742
0560 IMAGE_OS2_SIGNATURE_LE = 17740
0561 IMAGE_VXD_SIGNATURE = 17740
0562 IMAGE_NT_SIGNATURE = 17744
0563 IMAGE_SIZEOF_FILE_HEADER = 20
0564 IMAGE_FILE_RELOCS_STRIPPED = 1
0565 IMAGE_FILE_EXECUTABLE_IMAGE = 2
0566 IMAGE_FILE_LINE_NUMS_STRIPPED = 4
0567 IMAGE_FILE_LOCAL_SYMS_STRIPPED = 8
0568 IMAGE_FILE_AGGRESIVE_WS_TRIM = 16
0569 IMAGE_FILE_LARGE_ADDRESS_AWARE = 32
0570 IMAGE_FILE_BYTES_REVERSED_LO = 128
0571 IMAGE_FILE_32BIT_MACHINE = 256
0572 IMAGE_FILE_DEBUG_STRIPPED = 512
0573 IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP = 1024
0574 IMAGE_FILE_NET_RUN_FROM_SWAP = 2048
0575 IMAGE_FILE_SYSTEM = 4096
0576 IMAGE_FILE_DLL = 8192
0577 IMAGE_FILE_UP_SYSTEM_ONLY = 16384
0578 IMAGE_FILE_BYTES_REVERSED_HI = 32768
0579 IMAGE_FILE_MACHINE_UNKNOWN = 0
0580 IMAGE_FILE_MACHINE_I386 = 332
0581 IMAGE_FILE_MACHINE_R3000 = 354
0582 IMAGE_FILE_MACHINE_R4000 = 358
0583 IMAGE_FILE_MACHINE_R10000 = 360
0584 IMAGE_FILE_MACHINE_WCEMIPSV2 = 361
0585 IMAGE_FILE_MACHINE_ALPHA = 388
0586 IMAGE_FILE_MACHINE_POWERPC = 496
0587 IMAGE_FILE_MACHINE_SH3 = 418
0588 IMAGE_FILE_MACHINE_SH3E = 420
0589 IMAGE_FILE_MACHINE_SH4 = 422
0590 IMAGE_FILE_MACHINE_ARM = 448
0591 IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16
0592 IMAGE_SIZEOF_ROM_OPTIONAL_HEADER = 56
0593 IMAGE_SIZEOF_STD_OPTIONAL_HEADER = 28
0594 IMAGE_SIZEOF_NT_OPTIONAL_HEADER = 224
0595 IMAGE_NT_OPTIONAL_HDR_MAGIC = 267
0596 IMAGE_ROM_OPTIONAL_HDR_MAGIC = 263
0597 IMAGE_SUBSYSTEM_UNKNOWN = 0
0598 IMAGE_SUBSYSTEM_NATIVE = 1
0599 IMAGE_SUBSYSTEM_WINDOWS_GUI = 2
0600 IMAGE_SUBSYSTEM_WINDOWS_CUI = 3
0601 IMAGE_SUBSYSTEM_WINDOWS_CE_GUI = 4
0602 IMAGE_SUBSYSTEM_OS2_CUI = 5
0603 IMAGE_SUBSYSTEM_POSIX_CUI = 7
0604 IMAGE_SUBSYSTEM_RESERVED8 = 8
0605 IMAGE_DLLCHARACTERISTICS_WDM_DRIVER = 8192
0606 IMAGE_DIRECTORY_ENTRY_EXPORT = 0
0607 IMAGE_DIRECTORY_ENTRY_IMPORT = 1
0608 IMAGE_DIRECTORY_ENTRY_RESOURCE = 2
0609 IMAGE_DIRECTORY_ENTRY_EXCEPTION = 3
0610 IMAGE_DIRECTORY_ENTRY_SECURITY = 4
0611 IMAGE_DIRECTORY_ENTRY_BASERELOC = 5
0612 IMAGE_DIRECTORY_ENTRY_DEBUG = 6
0613 IMAGE_DIRECTORY_ENTRY_COPYRIGHT = 7
0614 IMAGE_DIRECTORY_ENTRY_GLOBALPTR = 8
0615 IMAGE_DIRECTORY_ENTRY_TLS = 9
0616 IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG = 10
0617 IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT = 11
0618 IMAGE_DIRECTORY_ENTRY_IAT = 12
0619 IMAGE_SIZEOF_SHORT_NAME = 8
0620 IMAGE_SIZEOF_SECTION_HEADER = 40
0621 IMAGE_SCN_TYPE_NO_PAD = 8
0622 IMAGE_SCN_CNT_CODE = 32
0623 IMAGE_SCN_CNT_INITIALIZED_DATA = 64
0624 IMAGE_SCN_CNT_UNINITIALIZED_DATA = 128
0625 IMAGE_SCN_LNK_OTHER = 256
0626 IMAGE_SCN_LNK_INFO = 512
0627 IMAGE_SCN_LNK_REMOVE = 2048
0628 IMAGE_SCN_LNK_COMDAT = 4096
0629 IMAGE_SCN_MEM_FARDATA = 32768
0630 IMAGE_SCN_MEM_PURGEABLE = 131072
0631 IMAGE_SCN_MEM_16BIT = 131072
0632 IMAGE_SCN_MEM_LOCKED = 262144
0633 IMAGE_SCN_MEM_PRELOAD = 524288
0634 IMAGE_SCN_ALIGN_1BYTES = 1048576
0635 IMAGE_SCN_ALIGN_2BYTES = 2097152
0636 IMAGE_SCN_ALIGN_4BYTES = 3145728
0637 IMAGE_SCN_ALIGN_8BYTES = 4194304
0638 IMAGE_SCN_ALIGN_16BYTES = 5242880
0639 IMAGE_SCN_ALIGN_32BYTES = 6291456
0640 IMAGE_SCN_ALIGN_64BYTES = 7340032
0641 IMAGE_SCN_LNK_NRELOC_OVFL = 16777216
0642 IMAGE_SCN_MEM_DISCARDABLE = 33554432
0643 IMAGE_SCN_MEM_NOT_CACHED = 67108864
0644 IMAGE_SCN_MEM_NOT_PAGED = 134217728
0645 IMAGE_SCN_MEM_SHARED = 268435456
0646 IMAGE_SCN_MEM_EXECUTE = 536870912
0647 IMAGE_SCN_MEM_READ = 1073741824
0648 IMAGE_SCN_MEM_WRITE = -2147483648
0649 IMAGE_SCN_SCALE_INDEX = 1
0650 IMAGE_SIZEOF_SYMBOL = 18
0651 IMAGE_SYM_TYPE_NULL = 0
0652 IMAGE_SYM_TYPE_VOID = 1
0653 IMAGE_SYM_TYPE_CHAR = 2
0654 IMAGE_SYM_TYPE_SHORT = 3
0655 IMAGE_SYM_TYPE_INT = 4
0656 IMAGE_SYM_TYPE_LONG = 5
0657 IMAGE_SYM_TYPE_FLOAT = 6
0658 IMAGE_SYM_TYPE_DOUBLE = 7
0659 IMAGE_SYM_TYPE_STRUCT = 8
0660 IMAGE_SYM_TYPE_UNION = 9
0661 IMAGE_SYM_TYPE_ENUM = 10
0662 IMAGE_SYM_TYPE_MOE = 11
0663 IMAGE_SYM_TYPE_BYTE = 12
0664 IMAGE_SYM_TYPE_WORD = 13
0665 IMAGE_SYM_TYPE_UINT = 14
0666 IMAGE_SYM_TYPE_DWORD = 15
0667 IMAGE_SYM_TYPE_PCODE = 32768
0668 IMAGE_SYM_DTYPE_NULL = 0
0669 IMAGE_SYM_DTYPE_POINTER = 1
0670 IMAGE_SYM_DTYPE_FUNCTION = 2
0671 IMAGE_SYM_DTYPE_ARRAY = 3
0672 IMAGE_SYM_CLASS_NULL = 0
0673 IMAGE_SYM_CLASS_AUTOMATIC = 1
0674 IMAGE_SYM_CLASS_EXTERNAL = 2
0675 IMAGE_SYM_CLASS_STATIC = 3
0676 IMAGE_SYM_CLASS_REGISTER = 4
0677 IMAGE_SYM_CLASS_EXTERNAL_DEF = 5
0678 IMAGE_SYM_CLASS_LABEL = 6
0679 IMAGE_SYM_CLASS_UNDEFINED_LABEL = 7
0680 IMAGE_SYM_CLASS_MEMBER_OF_STRUCT = 8
0681 IMAGE_SYM_CLASS_ARGUMENT = 9
0682 IMAGE_SYM_CLASS_STRUCT_TAG = 10
0683 IMAGE_SYM_CLASS_MEMBER_OF_UNION = 11
0684 IMAGE_SYM_CLASS_UNION_TAG = 12
0685 IMAGE_SYM_CLASS_TYPE_DEFINITION = 13
0686 IMAGE_SYM_CLASS_UNDEFINED_STATIC = 14
0687 IMAGE_SYM_CLASS_ENUM_TAG = 15
0688 IMAGE_SYM_CLASS_MEMBER_OF_ENUM = 16
0689 IMAGE_SYM_CLASS_REGISTER_PARAM = 17
0690 IMAGE_SYM_CLASS_BIT_FIELD = 18
0691 IMAGE_SYM_CLASS_FAR_EXTERNAL = 68
0692 IMAGE_SYM_CLASS_BLOCK = 100
0693 IMAGE_SYM_CLASS_FUNCTION = 101
0694 IMAGE_SYM_CLASS_END_OF_STRUCT = 102
0695 IMAGE_SYM_CLASS_FILE = 103
0696 IMAGE_SYM_CLASS_SECTION = 104
0697 IMAGE_SYM_CLASS_WEAK_EXTERNAL = 105
0698 N_BTMASK = 15
0699 N_TMASK = 48
0700 N_TMASK1 = 192
0701 N_TMASK2 = 240
0702 N_BTSHFT = 4
0703 N_TSHIFT = 2
0704 def BTYPE(x): return ((x) & N_BTMASK)
0705 
0706 def ISPTR(x): return (((x) & N_TMASK) == (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT))
0707 
0708 def ISFCN(x): return (((x) & N_TMASK) == (IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT))
0709 
0710 def ISARY(x): return (((x) & N_TMASK) == (IMAGE_SYM_DTYPE_ARRAY << N_BTSHFT))
0711 
0712 def INCREF(x): return ((((x)&~N_BTMASK)<<N_TSHIFT)|(IMAGE_SYM_DTYPE_POINTER<<N_BTSHFT)|((x)&N_BTMASK))
0713 
0714 def DECREF(x): return ((((x)>>N_TSHIFT)&~N_BTMASK)|((x)&N_BTMASK))
0715 
0716 IMAGE_SIZEOF_AUX_SYMBOL = 18
0717 IMAGE_COMDAT_SELECT_NODUPLICATES = 1
0718 IMAGE_COMDAT_SELECT_ANY = 2
0719 IMAGE_COMDAT_SELECT_SAME_SIZE = 3
0720 IMAGE_COMDAT_SELECT_EXACT_MATCH = 4
0721 IMAGE_COMDAT_SELECT_ASSOCIATIVE = 5
0722 IMAGE_COMDAT_SELECT_LARGEST = 6
0723 IMAGE_COMDAT_SELECT_NEWEST = 7
0724 IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY = 1
0725 IMAGE_WEAK_EXTERN_SEARCH_LIBRARY = 2
0726 IMAGE_WEAK_EXTERN_SEARCH_ALIAS = 3
0727 IMAGE_SIZEOF_RELOCATION = 10
0728 IMAGE_REL_I386_ABSOLUTE = 0
0729 IMAGE_REL_I386_DIR16 = 1
0730 IMAGE_REL_I386_REL16 = 2
0731 IMAGE_REL_I386_DIR32 = 6
0732 IMAGE_REL_I386_DIR32NB = 7
0733 IMAGE_REL_I386_SEG12 = 9
0734 IMAGE_REL_I386_SECTION = 10
0735 IMAGE_REL_I386_SECREL = 11
0736 IMAGE_REL_I386_REL32 = 20
0737 IMAGE_REL_MIPS_ABSOLUTE = 0
0738 IMAGE_REL_MIPS_REFHALF = 1
0739 IMAGE_REL_MIPS_REFWORD = 2
0740 IMAGE_REL_MIPS_JMPADDR = 3
0741 IMAGE_REL_MIPS_REFHI = 4
0742 IMAGE_REL_MIPS_REFLO = 5
0743 IMAGE_REL_MIPS_GPREL = 6
0744 IMAGE_REL_MIPS_LITERAL = 7
0745 IMAGE_REL_MIPS_SECTION = 10
0746 IMAGE_REL_MIPS_SECREL = 11
0747 IMAGE_REL_MIPS_SECRELLO = 12
0748 IMAGE_REL_MIPS_SECRELHI = 13
0749 IMAGE_REL_MIPS_REFWORDNB = 34
0750 IMAGE_REL_MIPS_PAIR = 37
0751 IMAGE_REL_ALPHA_ABSOLUTE = 0
0752 IMAGE_REL_ALPHA_REFLONG = 1
0753 IMAGE_REL_ALPHA_REFQUAD = 2
0754 IMAGE_REL_ALPHA_GPREL32 = 3
0755 IMAGE_REL_ALPHA_LITERAL = 4
0756 IMAGE_REL_ALPHA_LITUSE = 5
0757 IMAGE_REL_ALPHA_GPDISP = 6
0758 IMAGE_REL_ALPHA_BRADDR = 7
0759 IMAGE_REL_ALPHA_HINT = 8
0760 IMAGE_REL_ALPHA_INLINE_REFLONG = 9
0761 IMAGE_REL_ALPHA_REFHI = 10
0762 IMAGE_REL_ALPHA_REFLO = 11
0763 IMAGE_REL_ALPHA_PAIR = 12
0764 IMAGE_REL_ALPHA_MATCH = 13
0765 IMAGE_REL_ALPHA_SECTION = 14
0766 IMAGE_REL_ALPHA_SECREL = 15
0767 IMAGE_REL_ALPHA_REFLONGNB = 16
0768 IMAGE_REL_ALPHA_SECRELLO = 17
0769 IMAGE_REL_ALPHA_SECRELHI = 18
0770 IMAGE_REL_PPC_ABSOLUTE = 0
0771 IMAGE_REL_PPC_ADDR64 = 1
0772 IMAGE_REL_PPC_ADDR32 = 2
0773 IMAGE_REL_PPC_ADDR24 = 3
0774 IMAGE_REL_PPC_ADDR16 = 4
0775 IMAGE_REL_PPC_ADDR14 = 5
0776 IMAGE_REL_PPC_REL24 = 6
0777 IMAGE_REL_PPC_REL14 = 7
0778 IMAGE_REL_PPC_TOCREL16 = 8
0779 IMAGE_REL_PPC_TOCREL14 = 9
0780 IMAGE_REL_PPC_ADDR32NB = 10
0781 IMAGE_REL_PPC_SECREL = 11
0782 IMAGE_REL_PPC_SECTION = 12
0783 IMAGE_REL_PPC_IFGLUE = 13
0784 IMAGE_REL_PPC_IMGLUE = 14
0785 IMAGE_REL_PPC_SECREL16 = 15
0786 IMAGE_REL_PPC_REFHI = 16
0787 IMAGE_REL_PPC_REFLO = 17
0788 IMAGE_REL_PPC_PAIR = 18
0789 IMAGE_REL_PPC_SECRELLO = 19
0790 IMAGE_REL_PPC_SECRELHI = 20
0791 IMAGE_REL_PPC_TYPEMASK = 255
0792 IMAGE_REL_PPC_NEG = 256
0793 IMAGE_REL_PPC_BRTAKEN = 512
0794 IMAGE_REL_PPC_BRNTAKEN = 1024
0795 IMAGE_REL_PPC_TOCDEFN = 2048
0796 IMAGE_REL_SH3_ABSOLUTE = 0
0797 IMAGE_REL_SH3_DIRECT16 = 1
0798 IMAGE_REL_SH3_DIRECT32 = 2
0799 IMAGE_REL_SH3_DIRECT8 = 3
0800 IMAGE_REL_SH3_DIRECT8_WORD = 4
0801 IMAGE_REL_SH3_DIRECT8_LONG = 5
0802 IMAGE_REL_SH3_DIRECT4 = 6
0803 IMAGE_REL_SH3_DIRECT4_WORD = 7
0804 IMAGE_REL_SH3_DIRECT4_LONG = 8
0805 IMAGE_REL_SH3_PCREL8_WORD = 9
0806 IMAGE_REL_SH3_PCREL8_LONG = 10
0807 IMAGE_REL_SH3_PCREL12_WORD = 11
0808 IMAGE_REL_SH3_STARTOF_SECTION = 12
0809 IMAGE_REL_SH3_SIZEOF_SECTION = 13
0810 IMAGE_REL_SH3_SECTION = 14
0811 IMAGE_REL_SH3_SECREL = 15
0812 IMAGE_REL_SH3_DIRECT32_NB = 16
0813 IMAGE_SIZEOF_LINENUMBER = 6
0814 IMAGE_SIZEOF_BASE_RELOCATION = 8
0815 IMAGE_REL_BASED_ABSOLUTE = 0
0816 IMAGE_REL_BASED_HIGH = 1
0817 IMAGE_REL_BASED_LOW = 2
0818 IMAGE_REL_BASED_HIGHLOW = 3
0819 IMAGE_REL_BASED_HIGHADJ = 4
0820 IMAGE_REL_BASED_MIPS_JMPADDR = 5
0821 IMAGE_REL_BASED_SECTION = 6
0822 IMAGE_REL_BASED_REL32 = 7
0823 IMAGE_ARCHIVE_START_SIZE = 8
0824 IMAGE_ARCHIVE_START = "!<arch>\n"
0825 IMAGE_ARCHIVE_END = "`\n"
0826 IMAGE_ARCHIVE_PAD = "\n"
0827 IMAGE_ARCHIVE_LINKER_MEMBER = "/               "
0828 IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR = 60
0829 IMAGE_ORDINAL_FLAG = -2147483648
0830 def IMAGE_SNAP_BY_ORDINAL(Ordina): return ((Ordinal & IMAGE_ORDINAL_FLAG) != 0)
0831 
0832 def IMAGE_ORDINAL(Ordina): return (Ordinal & 65535)
0833 
0834 IMAGE_RESOURCE_NAME_IS_STRING = -2147483648
0835 IMAGE_RESOURCE_DATA_IS_DIRECTORY = -2147483648
0836 IMAGE_DEBUG_TYPE_UNKNOWN = 0
0837 IMAGE_DEBUG_TYPE_COFF = 1
0838 IMAGE_DEBUG_TYPE_CODEVIEW = 2
0839 IMAGE_DEBUG_TYPE_FPO = 3
0840 IMAGE_DEBUG_TYPE_MISC = 4
0841 IMAGE_DEBUG_TYPE_EXCEPTION = 5
0842 IMAGE_DEBUG_TYPE_FIXUP = 6
0843 IMAGE_DEBUG_TYPE_OMAP_TO_SRC = 7
0844 IMAGE_DEBUG_TYPE_OMAP_FROM_SRC = 8
0845 IMAGE_DEBUG_TYPE_BORLAND = 9
0846 FRAME_FPO = 0
0847 FRAME_TRAP = 1
0848 FRAME_TSS = 2
0849 FRAME_NONFPO = 3
0850 SIZEOF_RFPO_DATA = 16
0851 IMAGE_DEBUG_MISC_EXENAME = 1
0852 IMAGE_SEPARATE_DEBUG_SIGNATURE = 18756
0853 IMAGE_SEPARATE_DEBUG_FLAGS_MASK = 32768
0854 IMAGE_SEPARATE_DEBUG_MISMATCH = 32768
0855 
0856 # Included from string.h
0857 _NLSCMPERROR = 2147483647
0858 NULL = 0
0859 HEAP_NO_SERIALIZE = 1
0860 HEAP_GROWABLE = 2
0861 HEAP_GENERATE_EXCEPTIONS = 4
0862 HEAP_ZERO_MEMORY = 8
0863 HEAP_REALLOC_IN_PLACE_ONLY = 16
0864 HEAP_TAIL_CHECKING_ENABLED = 32
0865 HEAP_FREE_CHECKING_ENABLED = 64
0866 HEAP_DISABLE_COALESCE_ON_FREE = 128
0867 HEAP_CREATE_ALIGN_16 = 65536
0868 HEAP_CREATE_ENABLE_TRACING = 131072
0869 HEAP_MAXIMUM_TAG = 4095
0870 HEAP_PSEUDO_TAG_FLAG = 32768
0871 HEAP_TAG_SHIFT = 16
0872 IS_TEXT_UNICODE_ASCII16 = 1
0873 IS_TEXT_UNICODE_REVERSE_ASCII16 = 16
0874 IS_TEXT_UNICODE_STATISTICS = 2
0875 IS_TEXT_UNICODE_REVERSE_STATISTICS = 32
0876 IS_TEXT_UNICODE_CONTROLS = 4
0877 IS_TEXT_UNICODE_REVERSE_CONTROLS = 64
0878 IS_TEXT_UNICODE_SIGNATURE = 8
0879 IS_TEXT_UNICODE_REVERSE_SIGNATURE = 128
0880 IS_TEXT_UNICODE_ILLEGAL_CHARS = 256
0881 IS_TEXT_UNICODE_ODD_LENGTH = 512
0882 IS_TEXT_UNICODE_DBCS_LEADBYTE = 1024
0883 IS_TEXT_UNICODE_NULL_BYTES = 4096
0884 IS_TEXT_UNICODE_UNICODE_MASK = 15
0885 IS_TEXT_UNICODE_REVERSE_MASK = 240
0886 IS_TEXT_UNICODE_NOT_UNICODE_MASK = 3840
0887 IS_TEXT_UNICODE_NOT_ASCII_MASK = 61440
0888 COMPRESSION_FORMAT_NONE = (0)
0889 COMPRESSION_FORMAT_DEFAULT = (1)
0890 COMPRESSION_FORMAT_LZNT1 = (2)
0891 COMPRESSION_ENGINE_STANDARD = (0)
0892 COMPRESSION_ENGINE_MAXIMUM = (256)
0893 MESSAGE_RESOURCE_UNICODE = 1
0894 RTL_CRITSECT_TYPE = 0
0895 RTL_RESOURCE_TYPE = 1
0896 SEF_DACL_AUTO_INHERIT = 1
0897 SEF_SACL_AUTO_INHERIT = 2
0898 SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT = 4
0899 SEF_AVOID_PRIVILEGE_CHECK = 8
0900 DLL_PROCESS_ATTACH = 1
0901 DLL_THREAD_ATTACH = 2
0902 DLL_THREAD_DETACH = 3
0903 DLL_PROCESS_DETACH = 0
0904 EVENTLOG_SEQUENTIAL_READ = 0X0001
0905 EVENTLOG_SEEK_READ = 0X0002
0906 EVENTLOG_FORWARDS_READ = 0X0004
0907 EVENTLOG_BACKWARDS_READ = 0X0008
0908 EVENTLOG_SUCCESS = 0X0000
0909 EVENTLOG_ERROR_TYPE = 1
0910 EVENTLOG_WARNING_TYPE = 2
0911 EVENTLOG_INFORMATION_TYPE = 4
0912 EVENTLOG_AUDIT_SUCCESS = 8
0913 EVENTLOG_AUDIT_FAILURE = 16
0914 EVENTLOG_START_PAIRED_EVENT = 1
0915 EVENTLOG_END_PAIRED_EVENT = 2
0916 EVENTLOG_END_ALL_PAIRED_EVENTS = 4
0917 EVENTLOG_PAIRED_EVENT_ACTIVE = 8
0918 EVENTLOG_PAIRED_EVENT_INACTIVE = 16
0919 KEY_QUERY_VALUE = (1)
0920 KEY_SET_VALUE = (2)
0921 KEY_CREATE_SUB_KEY = (4)
0922 KEY_ENUMERATE_SUB_KEYS = (8)
0923 KEY_NOTIFY = (16)
0924 KEY_CREATE_LINK = (32)
0925 KEY_READ = ((STANDARD_RIGHTS_READ       |\
0926                                   KEY_QUERY_VALUE            |\
0927                                   KEY_ENUMERATE_SUB_KEYS     |\
0928                                   KEY_NOTIFY)                 \
0929                                   &                           \
0930                                  (~SYNCHRONIZE))
0931 KEY_WRITE = ((STANDARD_RIGHTS_WRITE      |\
0932                                   KEY_SET_VALUE              |\
0933                                   KEY_CREATE_SUB_KEY)         \
0934                                   &                           \
0935                                  (~SYNCHRONIZE))
0936 KEY_EXECUTE = ((KEY_READ)                   \
0937                                   &                           \
0938                                  (~SYNCHRONIZE))
0939 KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL        |\
0940                                   KEY_QUERY_VALUE            |\
0941                                   KEY_SET_VALUE              |\
0942                                   KEY_CREATE_SUB_KEY         |\
0943                                   KEY_ENUMERATE_SUB_KEYS     |\
0944                                   KEY_NOTIFY                 |\
0945                                   KEY_CREATE_LINK)            \
0946                                   &                           \
0947                                  (~SYNCHRONIZE))
0948 REG_OPTION_RESERVED = (0)
0949 REG_OPTION_NON_VOLATILE = (0)
0950 REG_OPTION_VOLATILE = (1)
0951 REG_OPTION_CREATE_LINK = (2)
0952 REG_OPTION_BACKUP_RESTORE = (4)
0953 REG_OPTION_OPEN_LINK = (8)
0954 REG_LEGAL_OPTION = \
0955                 (REG_OPTION_RESERVED            |\
0956                  REG_OPTION_NON_VOLATILE        |\
0957                  REG_OPTION_VOLATILE            |\
0958                  REG_OPTION_CREATE_LINK         |\
0959                  REG_OPTION_BACKUP_RESTORE      |\
0960                  REG_OPTION_OPEN_LINK)
0961 REG_CREATED_NEW_KEY = (1)
0962 REG_OPENED_EXISTING_KEY = (2)
0963 REG_WHOLE_HIVE_VOLATILE = (1)
0964 REG_REFRESH_HIVE = (2)
0965 REG_NO_LAZY_FLUSH = (4)
0966 REG_NOTIFY_CHANGE_NAME = (1)
0967 REG_NOTIFY_CHANGE_ATTRIBUTES = (2)
0968 REG_NOTIFY_CHANGE_LAST_SET = (4)
0969 REG_NOTIFY_CHANGE_SECURITY = (8)
0970 REG_LEGAL_CHANGE_FILTER = \
0971                 (REG_NOTIFY_CHANGE_NAME          |\
0972                  REG_NOTIFY_CHANGE_ATTRIBUTES    |\
0973                  REG_NOTIFY_CHANGE_LAST_SET      |\
0974                  REG_NOTIFY_CHANGE_SECURITY)
0975 REG_NONE = ( 0 )
0976 REG_SZ = ( 1 )
0977 REG_EXPAND_SZ = ( 2 )
0978 REG_BINARY = ( 3 )
0979 REG_DWORD = ( 4 )
0980 REG_DWORD_LITTLE_ENDIAN = ( 4 )
0981 REG_DWORD_BIG_ENDIAN = ( 5 )
0982 REG_LINK = ( 6 )
0983 REG_MULTI_SZ = ( 7 )
0984 REG_RESOURCE_LIST = ( 8 )
0985 REG_FULL_RESOURCE_DESCRIPTOR = ( 9 )
0986 REG_RESOURCE_REQUIREMENTS_LIST = ( 10 )
0987 SERVICE_KERNEL_DRIVER = 1
0988 SERVICE_FILE_SYSTEM_DRIVER = 2
0989 SERVICE_ADAPTER = 4
0990 SERVICE_RECOGNIZER_DRIVER = 8
0991 SERVICE_DRIVER = (SERVICE_KERNEL_DRIVER | \
0992                                         SERVICE_FILE_SYSTEM_DRIVER | \
0993                                         SERVICE_RECOGNIZER_DRIVER)
0994 SERVICE_WIN32_OWN_PROCESS = 16
0995 SERVICE_WIN32_SHARE_PROCESS = 32
0996 SERVICE_WIN32 = (SERVICE_WIN32_OWN_PROCESS | \
0997                                         SERVICE_WIN32_SHARE_PROCESS)
0998 SERVICE_INTERACTIVE_PROCESS = 256
0999 SERVICE_TYPE_ALL = (SERVICE_WIN32  | \
1000                                         SERVICE_ADAPTER | \
1001                                         SERVICE_DRIVER  | \
1002                                         SERVICE_INTERACTIVE_PROCESS)
1003 SERVICE_BOOT_START = 0
1004 SERVICE_SYSTEM_START = 1
1005 SERVICE_AUTO_START = 2
1006 SERVICE_DEMAND_START = 3
1007 SERVICE_DISABLED = 4
1008 SERVICE_ERROR_IGNORE = 0
1009 SERVICE_ERROR_NORMAL = 1
1010 SERVICE_ERROR_SEVERE = 2
1011 SERVICE_ERROR_CRITICAL = 3
1012 TAPE_ERASE_SHORT = 0
1013 TAPE_ERASE_LONG = 1
1014 TAPE_LOAD = 0
1015 TAPE_UNLOAD = 1
1016 TAPE_TENSION = 2
1017 TAPE_LOCK = 3
1018 TAPE_UNLOCK = 4
1019 TAPE_FORMAT = 5
1020 TAPE_SETMARKS = 0
1021 TAPE_FILEMARKS = 1
1022 TAPE_SHORT_FILEMARKS = 2
1023 TAPE_LONG_FILEMARKS = 3
1024 TAPE_ABSOLUTE_POSITION = 0
1025 TAPE_LOGICAL_POSITION = 1
1026 TAPE_PSEUDO_LOGICAL_POSITION = 2
1027 TAPE_REWIND = 0
1028 TAPE_ABSOLUTE_BLOCK = 1
1029 TAPE_LOGICAL_BLOCK = 2
1030 TAPE_PSEUDO_LOGICAL_BLOCK = 3
1031 TAPE_SPACE_END_OF_DATA = 4
1032 TAPE_SPACE_RELATIVE_BLOCKS = 5
1033 TAPE_SPACE_FILEMARKS = 6
1034 TAPE_SPACE_SEQUENTIAL_FMKS = 7
1035 TAPE_SPACE_SETMARKS = 8
1036 TAPE_SPACE_SEQUENTIAL_SMKS = 9
1037 TAPE_DRIVE_FIXED = 1
1038 TAPE_DRIVE_SELECT = 2
1039 TAPE_DRIVE_INITIATOR = 4
1040 TAPE_DRIVE_ERASE_SHORT = 16
1041 TAPE_DRIVE_ERASE_LONG = 32
1042 TAPE_DRIVE_ERASE_BOP_ONLY = 64
1043 TAPE_DRIVE_ERASE_IMMEDIATE = 128
1044 TAPE_DRIVE_TAPE_CAPACITY = 256
1045 TAPE_DRIVE_TAPE_REMAINING = 512
1046 TAPE_DRIVE_FIXED_BLOCK = 1024
1047 TAPE_DRIVE_VARIABLE_BLOCK = 2048
1048 TAPE_DRIVE_WRITE_PROTECT = 4096
1049 TAPE_DRIVE_EOT_WZ_SIZE = 8192
1050 TAPE_DRIVE_ECC = 65536
1051 TAPE_DRIVE_COMPRESSION = 131072
1052 TAPE_DRIVE_PADDING = 262144
1053 TAPE_DRIVE_REPORT_SMKS = 524288
1054 TAPE_DRIVE_GET_ABSOLUTE_BLK = 1048576
1055 TAPE_DRIVE_GET_LOGICAL_BLK = 2097152
1056 TAPE_DRIVE_SET_EOT_WZ_SIZE = 4194304
1057 TAPE_DRIVE_EJECT_MEDIA = 16777216
1058 TAPE_DRIVE_RESERVED_BIT = -2147483648
1059 TAPE_DRIVE_LOAD_UNLOAD = -2147483647
1060 TAPE_DRIVE_TENSION = -2147483646
1061 TAPE_DRIVE_LOCK_UNLOCK = -2147483644
1062 TAPE_DRIVE_REWIND_IMMEDIATE = -2147483640
1063 TAPE_DRIVE_SET_BLOCK_SIZE = -2147483632
1064 TAPE_DRIVE_LOAD_UNLD_IMMED = -2147483616
1065 TAPE_DRIVE_TENSION_IMMED = -2147483584
1066 TAPE_DRIVE_LOCK_UNLK_IMMED = -2147483520
1067 TAPE_DRIVE_SET_ECC = -2147483392
1068 TAPE_DRIVE_SET_COMPRESSION = -2147483136
1069 TAPE_DRIVE_SET_PADDING = -2147482624
1070 TAPE_DRIVE_SET_REPORT_SMKS = -2147481600
1071 TAPE_DRIVE_ABSOLUTE_BLK = -2147479552
1072 TAPE_DRIVE_ABS_BLK_IMMED = -2147475456
1073 TAPE_DRIVE_LOGICAL_BLK = -2147467264
1074 TAPE_DRIVE_LOG_BLK_IMMED = -2147450880
1075 TAPE_DRIVE_END_OF_DATA = -2147418112
1076 TAPE_DRIVE_RELATIVE_BLKS = -2147352576
1077 TAPE_DRIVE_FILEMARKS = -2147221504
1078 TAPE_DRIVE_SEQUENTIAL_FMKS = -2146959360
1079 TAPE_DRIVE_SETMARKS = -2146435072
1080 TAPE_DRIVE_SEQUENTIAL_SMKS = -2145386496
1081 TAPE_DRIVE_REVERSE_POSITION = -2143289344
1082 TAPE_DRIVE_SPACE_IMMEDIATE = -2139095040
1083 TAPE_DRIVE_WRITE_SETMARKS = -2130706432
1084 TAPE_DRIVE_WRITE_FILEMARKS = -2113929216
1085 TAPE_DRIVE_WRITE_SHORT_FMKS = -2080374784
1086 TAPE_DRIVE_WRITE_LONG_FMKS = -2013265920
1087 TAPE_DRIVE_WRITE_MARK_IMMED = -1879048192
1088 TAPE_DRIVE_FORMAT = -1610612736
1089 TAPE_DRIVE_FORMAT_IMMEDIATE = -1073741824
1090 TAPE_DRIVE_HIGH_FEATURES = -2147483648
1091 TAPE_FIXED_PARTITIONS = 0
1092 TAPE_SELECT_PARTITIONS = 1
1093 TAPE_INITIATOR_PARTITIONS = 2
1094 
1095 

Generated by PyXR 0.9.4
SourceForge.net Logo