windows

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 13 Imported by: 3,487

Documentation ¶

Rendered for windows/amd64

Overview ¶

Package windows contains an interface to the low-level operating system primitives. OS details vary depending on the underlying system, and by default, godoc will display the OS-specific documentation for the current system. If you want godoc to display syscall documentation for another system, set $GOOS and $GOARCH to the desired system. For example, if you want to view documentation for freebsd/arm on linux/amd64, set $GOOS to freebsd and $GOARCH to arm.

The primary use of this package is inside other packages that provide a more portable interface to the system, such as "os", "time" and "net". Use those packages rather than this one if you can.

For details of the functions and data types in this package consult the manuals for the appropriate operating system.

These calls return err == nil to indicate success; otherwise err represents an operating system error describing the failure and holds a value of type syscall.Errno.

Index ¶

Examples ¶

Constants ¶

View Source
const (
	EVENTLOG_SUCCESS          = 0
	EVENTLOG_ERROR_TYPE       = 1
	EVENTLOG_WARNING_TYPE     = 2
	EVENTLOG_INFORMATION_TYPE = 4
	EVENTLOG_AUDIT_SUCCESS    = 8
	EVENTLOG_AUDIT_FAILURE    = 16
)
View Source
const (
	MEM_COMMIT      = 0x00001000
	MEM_RESERVE     = 0x00002000
	MEM_DECOMMIT    = 0x00004000
	MEM_RELEASE     = 0x00008000
	MEM_RESET       = 0x00080000
	MEM_TOP_DOWN    = 0x00100000
	MEM_WRITE_WATCH = 0x00200000
	MEM_PHYSICAL    = 0x00400000
	MEM_RESET_UNDO  = 0x01000000
	MEM_LARGE_PAGES = 0x20000000

	PAGE_NOACCESS          = 0x00000001
	PAGE_READONLY          = 0x00000002
	PAGE_READWRITE         = 0x00000004
	PAGE_WRITECOPY         = 0x00000008
	PAGE_EXECUTE           = 0x00000010
	PAGE_EXECUTE_READ      = 0x00000020
	PAGE_EXECUTE_READWRITE = 0x00000040
	PAGE_EXECUTE_WRITECOPY = 0x00000080
	PAGE_GUARD             = 0x00000100
	PAGE_NOCACHE           = 0x00000200
	PAGE_WRITECOMBINE      = 0x00000400
	PAGE_TARGETS_INVALID   = 0x40000000
	PAGE_TARGETS_NO_UPDATE = 0x40000000

	QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002
	QUOTA_LIMITS_HARDWS_MIN_ENABLE  = 0x00000001
	QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008
	QUOTA_LIMITS_HARDWS_MAX_ENABLE  = 0x00000004
)
View Source
const (
	NameUnknown          = 0
	NameFullyQualifiedDN = 1
	NameSamCompatible    = 2
	NameDisplay          = 3
	NameUniqueId         = 6
	NameCanonical        = 7
	NameUserPrincipal    = 8
	NameCanonicalEx      = 9
	NameServicePrincipal = 10
	NameDnsDomain        = 12
)
View Source
const (
	// do not reorder
	NetSetupUnknownStatus = iota
	NetSetupUnjoined
	NetSetupWorkgroupName
	NetSetupDomainName
)
View Source
const (
	// do not reorder
	SidTypeUser = 1 + iota
	SidTypeGroup
	SidTypeDomain
	SidTypeAlias
	SidTypeWellKnownGroup
	SidTypeDeletedAccount
	SidTypeInvalid
	SidTypeUnknown
	SidTypeComputer
	SidTypeLabel
)
View Source
const (
	SECURITY_NULL_RID                   = 0
	SECURITY_WORLD_RID                  = 0
	SECURITY_LOCAL_RID                  = 0
	SECURITY_CREATOR_OWNER_RID          = 0
	SECURITY_CREATOR_GROUP_RID          = 1
	SECURITY_DIALUP_RID                 = 1
	SECURITY_NETWORK_RID                = 2
	SECURITY_BATCH_RID                  = 3
	SECURITY_INTERACTIVE_RID            = 4
	SECURITY_LOGON_IDS_RID              = 5
	SECURITY_SERVICE_RID                = 6
	SECURITY_LOCAL_SYSTEM_RID           = 18
	SECURITY_BUILTIN_DOMAIN_RID         = 32
	SECURITY_PRINCIPAL_SELF_RID         = 10
	SECURITY_CREATOR_OWNER_SERVER_RID   = 0x2
	SECURITY_CREATOR_GROUP_SERVER_RID   = 0x3
	SECURITY_LOGON_IDS_RID_COUNT        = 0x3
	SECURITY_ANONYMOUS_LOGON_RID        = 0x7
	SECURITY_PROXY_RID                  = 0x8
	SECURITY_ENTERPRISE_CONTROLLERS_RID = 0x9
	SECURITY_SERVER_LOGON_RID           = SECURITY_ENTERPRISE_CONTROLLERS_RID
	SECURITY_AUTHENTICATED_USER_RID     = 0xb
	SECURITY_RESTRICTED_CODE_RID        = 0xc
	SECURITY_NT_NON_UNIQUE_RID          = 0x15
)
View Source
const (
	DOMAIN_ALIAS_RID_ADMINS                         = 0x220
	DOMAIN_ALIAS_RID_USERS                          = 0x221
	DOMAIN_ALIAS_RID_GUESTS                         = 0x222
	DOMAIN_ALIAS_RID_POWER_USERS                    = 0x223
	DOMAIN_ALIAS_RID_ACCOUNT_OPS                    = 0x224
	DOMAIN_ALIAS_RID_SYSTEM_OPS                     = 0x225
	DOMAIN_ALIAS_RID_PRINT_OPS                      = 0x226
	DOMAIN_ALIAS_RID_BACKUP_OPS                     = 0x227
	DOMAIN_ALIAS_RID_REPLICATOR                     = 0x228
	DOMAIN_ALIAS_RID_RAS_SERVERS                    = 0x229
	DOMAIN_ALIAS_RID_PREW2KCOMPACCESS               = 0x22a
	DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS           = 0x22b
	DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS      = 0x22c
	DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = 0x22d
	DOMAIN_ALIAS_RID_MONITORING_USERS               = 0x22e
	DOMAIN_ALIAS_RID_LOGGING_USERS                  = 0x22f
	DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS            = 0x230
	DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS             = 0x231
	DOMAIN_ALIAS_RID_DCOM_USERS                     = 0x232
	DOMAIN_ALIAS_RID_IUSERS                         = 0x238
	DOMAIN_ALIAS_RID_CRYPTO_OPERATORS               = 0x239
	DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP     = 0x23b
	DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP = 0x23c
	DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP        = 0x23d
	DOMAIN_ALIAS_RID_CERTSVC_DCOM_ACCESS_GROUP      = 0x23e
)

Predefined domain-relative RIDs for local groups. See https://msdn.microsoft.com/en-us/library/windows/desktop/aa379649(v=vs.85).aspx

View Source
const (
	WinNullSid                                    = 0
	WinWorldSid                                   = 1
	WinLocalSid                                   = 2
	WinCreatorOwnerSid                            = 3
	WinCreatorGroupSid                            = 4
	WinCreatorOwnerServerSid                      = 5
	WinCreatorGroupServerSid                      = 6
	WinNtAuthoritySid                             = 7
	WinDialupSid                                  = 8
	WinNetworkSid                                 = 9
	WinBatchSid                                   = 10
	WinInteractiveSid                             = 11
	WinServiceSid                                 = 12
	WinAnonymousSid                               = 13
	WinProxySid                                   = 14
	WinEnterpriseControllersSid                   = 15
	WinSelfSid                                    = 16
	WinAuthenticatedUserSid                       = 17
	WinRestrictedCodeSid                          = 18
	WinTerminalServerSid                          = 19
	WinRemoteLogonIdSid                           = 20
	WinLogonIdsSid                                = 21
	WinLocalSystemSid                             = 22
	WinLocalServiceSid                            = 23
	WinNetworkServiceSid                          = 24
	WinBuiltinDomainSid                           = 25
	WinBuiltinAdministratorsSid                   = 26
	WinBuiltinUsersSid                            = 27
	WinBuiltinGuestsSid                           = 28
	WinBuiltinPowerUsersSid                       = 29
	WinBuiltinAccountOperatorsSid                 = 30
	WinBuiltinSystemOperatorsSid                  = 31
	WinBuiltinPrintOperatorsSid                   = 32
	WinBuiltinBackupOperatorsSid                  = 33
	WinBuiltinReplicatorSid                       = 34
	WinBuiltinPreWindows2000CompatibleAccessSid   = 35
	WinBuiltinRemoteDesktopUsersSid               = 36
	WinBuiltinNetworkConfigurationOperatorsSid    = 37
	WinAccountAdministratorSid                    = 38
	WinAccountGuestSid                            = 39
	WinAccountKrbtgtSid                           = 40
	WinAccountDomainAdminsSid                     = 41
	WinAccountDomainUsersSid                      = 42
	WinAccountDomainGuestsSid                     = 43
	WinAccountComputersSid                        = 44
	WinAccountControllersSid                      = 45
	WinAccountCertAdminsSid                       = 46
	WinAccountSchemaAdminsSid                     = 47
	WinAccountEnterpriseAdminsSid                 = 48
	WinAccountPolicyAdminsSid                     = 49
	WinAccountRasAndIasServersSid                 = 50
	WinNTLMAuthenticationSid                      = 51
	WinDigestAuthenticationSid                    = 52
	WinSChannelAuthenticationSid                  = 53
	WinThisOrganizationSid                        = 54
	WinOtherOrganizationSid                       = 55
	WinBuiltinIncomingForestTrustBuildersSid      = 56
	WinBuiltinPerfMonitoringUsersSid              = 57
	WinBuiltinPerfLoggingUsersSid                 = 58
	WinBuiltinAuthorizationAccessSid              = 59
	WinBuiltinTerminalServerLicenseServersSid     = 60
	WinBuiltinDCOMUsersSid                        = 61
	WinBuiltinIUsersSid                           = 62
	WinIUserSid                                   = 63
	WinBuiltinCryptoOperatorsSid                  = 64
	WinUntrustedLabelSid                          = 65
	WinLowLabelSid                                = 66
	WinMediumLabelSid                             = 67
	WinHighLabelSid                               = 68
	WinSystemLabelSid                             = 69
	WinWriteRestrictedCodeSid                     = 70
	WinCreatorOwnerRightsSid                      = 71
	WinCacheablePrincipalsGroupSid                = 72
	WinNonCacheablePrincipalsGroupSid             = 73
	WinEnterpriseReadonlyControllersSid           = 74
	WinAccountReadonlyControllersSid              = 75
	WinBuiltinEventLogReadersGroup                = 76
	WinNewEnterpriseReadonlyControllersSid        = 77
	WinBuiltinCertSvcDComAccessGroup              = 78
	WinMediumPlusLabelSid                         = 79
	WinLocalLogonSid                              = 80
	WinConsoleLogonSid                            = 81
	WinThisOrganizationCertificateSid             = 82
	WinApplicationPackageAuthoritySid             = 83
	WinBuiltinAnyPackageSid                       = 84
	WinCapabilityInternetClientSid                = 85
	WinCapabilityInternetClientServerSid          = 86
	WinCapabilityPrivateNetworkClientServerSid    = 87
	WinCapabilityPicturesLibrarySid               = 88
	WinCapabilityVideosLibrarySid                 = 89
	WinCapabilityMusicLibrarySid                  = 90
	WinCapabilityDocumentsLibrarySid              = 91
	WinCapabilitySharedUserCertificatesSid        = 92
	WinCapabilityEnterpriseAuthenticationSid      = 93
	WinCapabilityRemovableStorageSid              = 94
	WinBuiltinRDSRemoteAccessServersSid           = 95
	WinBuiltinRDSEndpointServersSid               = 96
	WinBuiltinRDSManagementServersSid             = 97
	WinUserModeDriversSid                         = 98
	WinBuiltinHyperVAdminsSid                     = 99
	WinAccountCloneableControllersSid             = 100
	WinBuiltinAccessControlAssistanceOperatorsSid = 101
	WinBuiltinRemoteManagementUsersSid            = 102
	WinAuthenticationAuthorityAssertedSid         = 103
	WinAuthenticationServiceAssertedSid           = 104
	WinLocalAccountSid                            = 105
	WinLocalAccountAndAdministratorSid            = 106
	WinAccountProtectedUsersSid                   = 107
	WinCapabilityAppointmentsSid                  = 108
	WinCapabilityContactsSid                      = 109
	WinAccountDefaultSystemManagedSid             = 110
	WinBuiltinDefaultSystemManagedGroupSid        = 111
	WinBuiltinStorageReplicaAdminsSid             = 112
	WinAccountKeyAdminsSid                        = 113
	WinAccountEnterpriseKeyAdminsSid              = 114
	WinAuthenticationKeyTrustSid                  = 115
	WinAuthenticationKeyPropertyMFASid            = 116
	WinAuthenticationKeyPropertyAttestationSid    = 117
	WinAuthenticationFreshKeyAuthSid              = 118
	WinBuiltinDeviceOwnersSid                     = 119
)
View Source
const (
	// do not reorder
	TOKEN_ASSIGN_PRIMARY = 1 << iota
	TOKEN_DUPLICATE
	TOKEN_IMPERSONATE
	TOKEN_QUERY
	TOKEN_QUERY_SOURCE
	TOKEN_ADJUST_PRIVILEGES
	TOKEN_ADJUST_GROUPS
	TOKEN_ADJUST_DEFAULT
	TOKEN_ADJUST_SESSIONID

	TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED |
		TOKEN_ASSIGN_PRIMARY |
		TOKEN_DUPLICATE |
		TOKEN_IMPERSONATE |
		TOKEN_QUERY |
		TOKEN_QUERY_SOURCE |
		TOKEN_ADJUST_PRIVILEGES |
		TOKEN_ADJUST_GROUPS |
		TOKEN_ADJUST_DEFAULT |
		TOKEN_ADJUST_SESSIONID
	TOKEN_READ  = STANDARD_RIGHTS_READ | TOKEN_QUERY
	TOKEN_WRITE = STANDARD_RIGHTS_WRITE |
		TOKEN_ADJUST_PRIVILEGES |
		TOKEN_ADJUST_GROUPS |
		TOKEN_ADJUST_DEFAULT
	TOKEN_EXECUTE = STANDARD_RIGHTS_EXECUTE
)
View Source
const (
	// do not reorder
	TokenUser = 1 + iota
	TokenGroups
	TokenPrivileges
	TokenOwner
	TokenPrimaryGroup
	TokenDefaultDacl
	TokenSource
	TokenType
	TokenImpersonationLevel
	TokenStatistics
	TokenRestrictedSids
	TokenSessionId
	TokenGroupsAndPrivileges
	TokenSessionReference
	TokenSandBoxInert
	TokenAuditPolicy
	TokenOrigin
	TokenElevationType
	TokenLinkedToken
	TokenElevation
	TokenHasRestrictions
	TokenAccessInformation
	TokenVirtualizationAllowed
	TokenVirtualizationEnabled
	TokenIntegrityLevel
	TokenUIAccess
	TokenMandatoryPolicy
	TokenLogonSid
	MaxTokenInfoClass
)
View Source
const (
	SE_GROUP_MANDATORY          = 0x00000001
	SE_GROUP_ENABLED_BY_DEFAULT = 0x00000002
	SE_GROUP_ENABLED            = 0x00000004
	SE_GROUP_OWNER              = 0x00000008
	SE_GROUP_USE_FOR_DENY_ONLY  = 0x00000010
	SE_GROUP_INTEGRITY          = 0x00000020
	SE_GROUP_INTEGRITY_ENABLED  = 0x00000040
	SE_GROUP_LOGON_ID           = 0xC0000000
	SE_GROUP_RESOURCE           = 0x20000000
	SE_GROUP_VALID_ATTRIBUTES   = SE_GROUP_MANDATORY | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_ENABLED | SE_GROUP_OWNER | SE_GROUP_USE_FOR_DENY_ONLY | SE_GROUP_LOGON_ID | SE_GROUP_RESOURCE | SE_GROUP_INTEGRITY | SE_GROUP_INTEGRITY_ENABLED
)

Group attributes inside of Tokengroups.Groups[i].Attributes

View Source
const (
	SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x00000001
	SE_PRIVILEGE_ENABLED            = 0x00000002
	SE_PRIVILEGE_REMOVED            = 0x00000004
	SE_PRIVILEGE_USED_FOR_ACCESS    = 0x80000000
	SE_PRIVILEGE_VALID_ATTRIBUTES   = SE_PRIVILEGE_ENABLED_BY_DEFAULT | SE_PRIVILEGE_ENABLED | SE_PRIVILEGE_REMOVED | SE_PRIVILEGE_USED_FOR_ACCESS
)

Privilege attributes

View Source
const (
	TokenPrimary       = 1
	TokenImpersonation = 2
)

Token types

View Source
const (
	SecurityAnonymous      = 0
	SecurityIdentification = 1
	SecurityImpersonation  = 2
	SecurityDelegation     = 3
)

Impersonation levels

View Source
const (
	WTS_CONSOLE_CONNECT        = 0x1
	WTS_CONSOLE_DISCONNECT     = 0x2
	WTS_REMOTE_CONNECT         = 0x3
	WTS_REMOTE_DISCONNECT      = 0x4
	WTS_SESSION_LOGON          = 0x5
	WTS_SESSION_LOGOFF         = 0x6
	WTS_SESSION_LOCK           = 0x7
	WTS_SESSION_UNLOCK         = 0x8
	WTS_SESSION_REMOTE_CONTROL = 0x9
	WTS_SESSION_CREATE         = 0xa
	WTS_SESSION_TERMINATE      = 0xb
)
View Source
const (
	WTSActive       = 0
	WTSConnected    = 1
	WTSConnectQuery = 2
	WTSShadow       = 3
	WTSDisconnected = 4
	WTSIdle         = 5
	WTSListen       = 6
	WTSReset        = 7
	WTSDown         = 8
	WTSInit         = 9
)
View Source
const (
	SECURITY_STATIC_TRACKING  = 0
	SECURITY_DYNAMIC_TRACKING = 1
)

Constants for the ContextTrackingMode field of SECURITY_QUALITY_OF_SERVICE.

View Source
const (
	SE_UNKNOWN_OBJECT_TYPE     = 0
	SE_FILE_OBJECT             = 1
	SE_SERVICE                 = 2
	SE_PRINTER                 = 3
	SE_REGISTRY_KEY            = 4
	SE_LMSHARE                 = 5
	SE_KERNEL_OBJECT           = 6
	SE_WINDOW_OBJECT           = 7
	SE_DS_OBJECT               = 8
	SE_DS_OBJECT_ALL           = 9
	SE_PROVIDER_DEFINED_OBJECT = 10
	SE_WMIGUID_OBJECT          = 11
	SE_REGISTRY_WOW64_32KEY    = 12
	SE_REGISTRY_WOW64_64KEY    = 13
)

Constants for type SE_OBJECT_TYPE

View Source
const (
	OWNER_SECURITY_INFORMATION            = 0x00000001
	GROUP_SECURITY_INFORMATION            = 0x00000002
	DACL_SECURITY_INFORMATION             = 0x00000004
	SACL_SECURITY_INFORMATION             = 0x00000008
	LABEL_SECURITY_INFORMATION            = 0x00000010
	ATTRIBUTE_SECURITY_INFORMATION        = 0x00000020
	SCOPE_SECURITY_INFORMATION            = 0x00000040
	BACKUP_SECURITY_INFORMATION           = 0x00010000
	PROTECTED_DACL_SECURITY_INFORMATION   = 0x80000000
	PROTECTED_SACL_SECURITY_INFORMATION   = 0x40000000
	UNPROTECTED_DACL_SECURITY_INFORMATION = 0x20000000
	UNPROTECTED_SACL_SECURITY_INFORMATION = 0x10000000
)

Constants for type SECURITY_INFORMATION

View Source
const (
	SE_OWNER_DEFAULTED       = 0x0001
	SE_GROUP_DEFAULTED       = 0x0002
	SE_DACL_PRESENT          = 0x0004
	SE_DACL_DEFAULTED        = 0x0008
	SE_SACL_PRESENT          = 0x0010
	SE_SACL_DEFAULTED        = 0x0020
	SE_DACL_AUTO_INHERIT_REQ = 0x0100
	SE_SACL_AUTO_INHERIT_REQ = 0x0200
	SE_DACL_AUTO_INHERITED   = 0x0400
	SE_SACL_AUTO_INHERITED   = 0x0800
	SE_DACL_PROTECTED        = 0x1000
	SE_SACL_PROTECTED        = 0x2000
	SE_RM_CONTROL_VALID      = 0x4000
	SE_SELF_RELATIVE         = 0x8000
)

Constants for type SECURITY_DESCRIPTOR_CONTROL

View Source
const (
	DELETE                   = 0x00010000
	READ_CONTROL             = 0x00020000
	WRITE_DAC                = 0x00040000
	WRITE_OWNER              = 0x00080000
	SYNCHRONIZE              = 0x00100000
	STANDARD_RIGHTS_REQUIRED = 0x000F0000
	STANDARD_RIGHTS_READ     = READ_CONTROL
	STANDARD_RIGHTS_WRITE    = READ_CONTROL
	STANDARD_RIGHTS_EXECUTE  = READ_CONTROL
	STANDARD_RIGHTS_ALL      = 0x001F0000
	SPECIFIC_RIGHTS_ALL      = 0x0000FFFF
	ACCESS_SYSTEM_SECURITY   = 0x01000000
	MAXIMUM_ALLOWED          = 0x02000000
	GENERIC_READ             = 0x80000000
	GENERIC_WRITE            = 0x40000000
	GENERIC_EXECUTE          = 0x20000000
	GENERIC_ALL              = 0x10000000
)

Constants for type ACCESS_MASK

View Source
const (
	NOT_USED_ACCESS   = 0
	GRANT_ACCESS      = 1
	SET_ACCESS        = 2
	DENY_ACCESS       = 3
	REVOKE_ACCESS     = 4
	SET_AUDIT_SUCCESS = 5
	SET_AUDIT_FAILURE = 6
)

Constants for type ACCESS_MODE

View Source
const (
	NO_INHERITANCE                     = 0x0
	SUB_OBJECTS_ONLY_INHERIT           = 0x1
	SUB_CONTAINERS_ONLY_INHERIT        = 0x2
	SUB_CONTAINERS_AND_OBJECTS_INHERIT = 0x3
	INHERIT_NO_PROPAGATE               = 0x4
	INHERIT_ONLY                       = 0x8
	INHERITED_ACCESS_ENTRY             = 0x10
	INHERITED_PARENT                   = 0x10000000
	INHERITED_GRANDPARENT              = 0x20000000
	OBJECT_INHERIT_ACE                 = 0x1
	CONTAINER_INHERIT_ACE              = 0x2
	NO_PROPAGATE_INHERIT_ACE           = 0x4
	INHERIT_ONLY_ACE                   = 0x8
	INHERITED_ACE                      = 0x10
	VALID_INHERIT_FLAGS                = 0x1F
)

Constants for AceFlags and Inheritance fields

View Source
const (
	NO_MULTIPLE_TRUSTEE    = 0
	TRUSTEE_IS_IMPERSONATE = 1
)

Constants for MULTIPLE_TRUSTEE_OPERATION

View Source
const (
	TRUSTEE_IS_SID              = 0
	TRUSTEE_IS_NAME             = 1
	TRUSTEE_BAD_FORM            = 2
	TRUSTEE_IS_OBJECTS_AND_SID  = 3
	TRUSTEE_IS_OBJECTS_AND_NAME = 4
)

Constants for TRUSTEE_FORM

View Source
const (
	TRUSTEE_IS_UNKNOWN          = 0
	TRUSTEE_IS_USER             = 1
	TRUSTEE_IS_GROUP            = 2
	TRUSTEE_IS_DOMAIN           = 3
	TRUSTEE_IS_ALIAS            = 4
	TRUSTEE_IS_WELL_KNOWN_GROUP = 5
	TRUSTEE_IS_DELETED          = 6
	TRUSTEE_IS_INVALID          = 7
	TRUSTEE_IS_COMPUTER         = 8
)

Constants for TRUSTEE_TYPE

View Source
const (
	ACE_OBJECT_TYPE_PRESENT           = 0x1
	ACE_INHERITED_OBJECT_TYPE_PRESENT = 0x2
)

Constants for ObjectsPresent field

View Source
const (
	// Constants for AceType
	// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header
	ACCESS_ALLOWED_ACE_TYPE = 0
	ACCESS_DENIED_ACE_TYPE  = 1
)
View Source
const (
	SC_MANAGER_CONNECT            = 1
	SC_MANAGER_CREATE_SERVICE     = 2
	SC_MANAGER_ENUMERATE_SERVICE  = 4
	SC_MANAGER_LOCK               = 8
	SC_MANAGER_QUERY_LOCK_STATUS  = 16
	SC_MANAGER_MODIFY_BOOT_CONFIG = 32
	SC_MANAGER_ALL_ACCESS         = 0xf003f
)
View Source
const (
	SERVICE_KERNEL_DRIVER       = 1
	SERVICE_FILE_SYSTEM_DRIVER  = 2
	SERVICE_ADAPTER             = 4
	SERVICE_RECOGNIZER_DRIVER   = 8
	SERVICE_WIN32_OWN_PROCESS   = 16
	SERVICE_WIN32_SHARE_PROCESS = 32
	SERVICE_WIN32               = SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS
	SERVICE_INTERACTIVE_PROCESS = 256
	SERVICE_DRIVER              = SERVICE_KERNEL_DRIVER | SERVICE_FILE_SYSTEM_DRIVER | SERVICE_RECOGNIZER_DRIVER
	SERVICE_TYPE_ALL            = SERVICE_WIN32 | SERVICE_ADAPTER | SERVICE_DRIVER | SERVICE_INTERACTIVE_PROCESS

	SERVICE_BOOT_START   = 0
	SERVICE_SYSTEM_START = 1
	SERVICE_AUTO_START   = 2
	SERVICE_DEMAND_START = 3
	SERVICE_DISABLED     = 4

	SERVICE_ERROR_IGNORE   = 0
	SERVICE_ERROR_NORMAL   = 1
	SERVICE_ERROR_SEVERE   = 2
	SERVICE_ERROR_CRITICAL = 3

	SC_STATUS_PROCESS_INFO = 0

	SC_ACTION_NONE        = 0
	SC_ACTION_RESTART     = 1
	SC_ACTION_REBOOT      = 2
	SC_ACTION_RUN_COMMAND = 3

	SERVICE_STOPPED          = 1
	SERVICE_START_PENDING    = 2
	SERVICE_STOP_PENDING     = 3
	SERVICE_RUNNING          = 4
	SERVICE_CONTINUE_PENDING = 5
	SERVICE_PAUSE_PENDING    = 6
	SERVICE_PAUSED           = 7
	SERVICE_NO_CHANGE        = 0xffffffff

	SERVICE_ACCEPT_STOP                  = 1
	SERVICE_ACCEPT_PAUSE_CONTINUE        = 2
	SERVICE_ACCEPT_SHUTDOWN              = 4
	SERVICE_ACCEPT_PARAMCHANGE           = 8
	SERVICE_ACCEPT_NETBINDCHANGE         = 16
	SERVICE_ACCEPT_HARDWAREPROFILECHANGE = 32
	SERVICE_ACCEPT_POWEREVENT            = 64
	SERVICE_ACCEPT_SESSIONCHANGE         = 128
	SERVICE_ACCEPT_PRESHUTDOWN           = 256

	SERVICE_CONTROL_STOP                  = 1
	SERVICE_CONTROL_PAUSE                 = 2
	SERVICE_CONTROL_CONTINUE              = 3
	SERVICE_CONTROL_INTERROGATE           = 4
	SERVICE_CONTROL_SHUTDOWN              = 5
	SERVICE_CONTROL_PARAMCHANGE           = 6
	SERVICE_CONTROL_NETBINDADD            = 7
	SERVICE_CONTROL_NETBINDREMOVE         = 8
	SERVICE_CONTROL_NETBINDENABLE         = 9
	SERVICE_CONTROL_NETBINDDISABLE        = 10
	SERVICE_CONTROL_DEVICEEVENT           = 11
	SERVICE_CONTROL_HARDWAREPROFILECHANGE = 12
	SERVICE_CONTROL_POWEREVENT            = 13
	SERVICE_CONTROL_SESSIONCHANGE         = 14
	SERVICE_CONTROL_PRESHUTDOWN           = 15

	SERVICE_ACTIVE    = 1
	SERVICE_INACTIVE  = 2
	SERVICE_STATE_ALL = 3

	SERVICE_QUERY_CONFIG         = 1
	SERVICE_CHANGE_CONFIG        = 2
	SERVICE_QUERY_STATUS         = 4
	SERVICE_ENUMERATE_DEPENDENTS = 8
	SERVICE_START                = 16
	SERVICE_STOP                 = 32
	SERVICE_PAUSE_CONTINUE       = 64
	SERVICE_INTERROGATE          = 128
	SERVICE_USER_DEFINED_CONTROL = 256
	SERVICE_ALL_ACCESS           = STANDARD_RIGHTS_REQUIRED | SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG | SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS | SERVICE_START | SERVICE_STOP | SERVICE_PAUSE_CONTINUE | SERVICE_INTERROGATE | SERVICE_USER_DEFINED_CONTROL

	SERVICE_RUNS_IN_SYSTEM_PROCESS = 1

	SERVICE_CONFIG_DESCRIPTION              = 1
	SERVICE_CONFIG_FAILURE_ACTIONS          = 2
	SERVICE_CONFIG_DELAYED_AUTO_START_INFO  = 3
	SERVICE_CONFIG_FAILURE_ACTIONS_FLAG     = 4
	SERVICE_CONFIG_SERVICE_SID_INFO         = 5
	SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO = 6
	SERVICE_CONFIG_PRESHUTDOWN_INFO         = 7
	SERVICE_CONFIG_TRIGGER_INFO             = 8
	SERVICE_CONFIG_PREFERRED_NODE           = 9
	SERVICE_CONFIG_LAUNCH_PROTECTED         = 12

	SERVICE_SID_TYPE_NONE         = 0
	SERVICE_SID_TYPE_UNRESTRICTED = 1
	SERVICE_SID_TYPE_RESTRICTED   = 2 | SERVICE_SID_TYPE_UNRESTRICTED

	SC_ENUM_PROCESS_INFO = 0

	SERVICE_NOTIFY_STATUS_CHANGE    = 2
	SERVICE_NOTIFY_STOPPED          = 0x00000001
	SERVICE_NOTIFY_START_PENDING    = 0x00000002
	SERVICE_NOTIFY_STOP_PENDING     = 0x00000004
	SERVICE_NOTIFY_RUNNING          = 0x00000008
	SERVICE_NOTIFY_CONTINUE_PENDING = 0x00000010
	SERVICE_NOTIFY_PAUSE_PENDING    = 0x00000020
	SERVICE_NOTIFY_PAUSED           = 0x00000040
	SERVICE_NOTIFY_CREATED          = 0x00000080
	SERVICE_NOTIFY_DELETED          = 0x00000100
	SERVICE_NOTIFY_DELETE_PENDING   = 0x00000200

	SC_EVENT_DATABASE_CHANGE = 0
	SC_EVENT_PROPERTY_CHANGE = 1
	SC_EVENT_STATUS_CHANGE   = 2

	SERVICE_START_REASON_DEMAND             = 0x00000001
	SERVICE_START_REASON_AUTO               = 0x00000002
	SERVICE_START_REASON_TRIGGER            = 0x00000004
	SERVICE_START_REASON_RESTART_ON_FAILURE = 0x00000008
	SERVICE_START_REASON_DELAYEDAUTO        = 0x00000010

	SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON = 1
)
View Source
const (
	MAX_DEVICE_ID_LEN   = 200
	MAX_DEVNODE_ID_LEN  = MAX_DEVICE_ID_LEN
	MAX_GUID_STRING_LEN = 39 // 38 chars + terminator null
	MAX_CLASS_NAME_LEN  = 32
	MAX_PROFILE_LEN     = 80
	MAX_CONFIG_VALUE    = 9999
	MAX_INSTANCE_VALUE  = 9999
	CONFIGMG_VERSION    = 0x0400
)
View Source
const (
	LINE_LEN                    = 256  // Windows 9x-compatible maximum for displayable strings coming from a device INF.
	MAX_INF_STRING_LENGTH       = 4096 // Actual maximum size of an INF string (including string substitutions).
	MAX_INF_SECTION_NAME_LENGTH = 255  // For Windows 9x compatibility, INF section names should be constrained to 32 characters.
	MAX_TITLE_LEN               = 60
	MAX_INSTRUCTION_LEN         = 256
	MAX_LABEL_LEN               = 30
	MAX_SERVICE_NAME_LEN        = 256
	MAX_SUBTITLE_LEN            = 256
)

Maximum string length constants

View Source
const (
	CM_GET_DEVICE_INTERFACE_LIST_PRESENT     = 0 // only currently 'live' device interfaces
	CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES = 1 // all registered device interfaces, live or not
)
View Source
const (
	DN_ROOT_ENUMERATED       = 0x00000001        // Was enumerated by ROOT
	DN_DRIVER_LOADED         = 0x00000002        // Has Register_Device_Driver
	DN_ENUM_LOADED           = 0x00000004        // Has Register_Enumerator
	DN_STARTED               = 0x00000008        // Is currently configured
	DN_MANUAL                = 0x00000010        // Manually installed
	DN_NEED_TO_ENUM          = 0x00000020        // May need reenumeration
	DN_NOT_FIRST_TIME        = 0x00000040        // Has received a config
	DN_HARDWARE_ENUM         = 0x00000080        // Enum generates hardware ID
	DN_LIAR                  = 0x00000100        // Lied about can reconfig once
	DN_HAS_MARK              = 0x00000200        // Not CM_Create_DevInst lately
	DN_HAS_PROBLEM           = 0x00000400        // Need device installer
	DN_FILTERED              = 0x00000800        // Is filtered
	DN_MOVED                 = 0x00001000        // Has been moved
	DN_DISABLEABLE           = 0x00002000        // Can be disabled
	DN_REMOVABLE             = 0x00004000        // Can be removed
	DN_PRIVATE_PROBLEM       = 0x00008000        // Has a private problem
	DN_MF_PARENT             = 0x00010000        // Multi function parent
	DN_MF_CHILD              = 0x00020000        // Multi function child
	DN_WILL_BE_REMOVED       = 0x00040000        // DevInst is being removed
	DN_NOT_FIRST_TIMEE       = 0x00080000        // Has received a config enumerate
	DN_STOP_FREE_RES         = 0x00100000        // When child is stopped, free resources
	DN_REBAL_CANDIDATE       = 0x00200000        // Don't skip during rebalance
	DN_BAD_PARTIAL           = 0x00400000        // This devnode's log_confs do not have same resources
	DN_NT_ENUMERATOR         = 0x00800000        // This devnode's is an NT enumerator
	DN_NT_DRIVER             = 0x01000000        // This devnode's is an NT driver
	DN_NEEDS_LOCKING         = 0x02000000        // Devnode need lock resume processing
	DN_ARM_WAKEUP            = 0x04000000        // Devnode can be the wakeup device
	DN_APM_ENUMERATOR        = 0x08000000        // APM aware enumerator
	DN_APM_DRIVER            = 0x10000000        // APM aware driver
	DN_SILENT_INSTALL        = 0x20000000        // Silent install
	DN_NO_SHOW_IN_DM         = 0x40000000        // No show in device manager
	DN_BOOT_LOG_PROB         = 0x80000000        // Had a problem during preassignment of boot log conf
	DN_NEED_RESTART          = DN_LIAR           // System needs to be restarted for this Devnode to work properly
	DN_DRIVER_BLOCKED        = DN_NOT_FIRST_TIME // One or more drivers are blocked from loading for this Devnode
	DN_LEGACY_DRIVER         = DN_MOVED          // This device is using a legacy driver
	DN_CHILD_WITH_INVALID_ID = DN_HAS_MARK       // One or more children have invalid IDs
	DN_DEVICE_DISCONNECTED   = DN_NEEDS_LOCKING  // The function driver for a device reported that the device is not connected.  Typically this means a wireless device is out of range.
	DN_QUERY_REMOVE_PENDING  = DN_MF_PARENT      // Device is part of a set of related devices collectively pending query-removal
	DN_QUERY_REMOVE_ACTIVE   = DN_MF_CHILD       // Device is actively engaged in a query-remove IRP
	DN_CHANGEABLE_FLAGS      = DN_NOT_FIRST_TIME | DN_HARDWARE_ENUM | DN_HAS_MARK | DN_DISABLEABLE | DN_REMOVABLE | DN_MF_CHILD | DN_MF_PARENT | DN_NOT_FIRST_TIMEE | DN_STOP_FREE_RES | DN_REBAL_CANDIDATE | DN_NT_ENUMERATOR | DN_NT_DRIVER | DN_SILENT_INSTALL | DN_NO_SHOW_IN_DM
)
View Source
const (
	InvalidHandle = ^Handle(0)
	InvalidHWND   = ^HWND(0)

	// Flags for DefineDosDevice.
	DDD_EXACT_MATCH_ON_REMOVE = 0x00000004
	DDD_NO_BROADCAST_SYSTEM   = 0x00000008
	DDD_RAW_TARGET_PATH       = 0x00000001
	DDD_REMOVE_DEFINITION     = 0x00000002

	// Return values for GetDriveType.
	DRIVE_UNKNOWN     = 0
	DRIVE_NO_ROOT_DIR = 1
	DRIVE_REMOVABLE   = 2
	DRIVE_FIXED       = 3
	DRIVE_REMOTE      = 4
	DRIVE_CDROM       = 5
	DRIVE_RAMDISK     = 6

	// File system flags from GetVolumeInformation and GetVolumeInformationByHandle.
	FILE_CASE_SENSITIVE_SEARCH        = 0x00000001
	FILE_CASE_PRESERVED_NAMES         = 0x00000002
	FILE_FILE_COMPRESSION             = 0x00000010
	FILE_DAX_VOLUME                   = 0x20000000
	FILE_NAMED_STREAMS                = 0x00040000
	FILE_PERSISTENT_ACLS              = 0x00000008
	FILE_READ_ONLY_VOLUME             = 0x00080000
	FILE_SEQUENTIAL_WRITE_ONCE        = 0x00100000
	FILE_SUPPORTS_ENCRYPTION          = 0x00020000
	FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000
	FILE_SUPPORTS_HARD_LINKS          = 0x00400000
	FILE_SUPPORTS_OBJECT_IDS          = 0x00010000
	FILE_SUPPORTS_OPEN_BY_FILE_ID     = 0x01000000
	FILE_SUPPORTS_REPARSE_POINTS      = 0x00000080
	FILE_SUPPORTS_SPARSE_FILES        = 0x00000040
	FILE_SUPPORTS_TRANSACTIONS        = 0x00200000
	FILE_SUPPORTS_USN_JOURNAL         = 0x02000000
	FILE_UNICODE_ON_DISK              = 0x00000004
	FILE_VOLUME_IS_COMPRESSED         = 0x00008000
	FILE_VOLUME_QUOTAS                = 0x00000020

	// Flags for LockFileEx.
	LOCKFILE_FAIL_IMMEDIATELY = 0x00000001
	LOCKFILE_EXCLUSIVE_LOCK   = 0x00000002

	// Return value of SleepEx and other APC functions
	WAIT_IO_COMPLETION = 0x000000C0
)
View Source
const (
	CBR_110    = 110
	CBR_300    = 300
	CBR_600    = 600
	CBR_1200   = 1200
	CBR_2400   = 2400
	CBR_4800   = 4800
	CBR_9600   = 9600
	CBR_14400  = 14400
	CBR_19200  = 19200
	CBR_38400  = 38400
	CBR_57600  = 57600
	CBR_115200 = 115200
	CBR_128000 = 128000
	CBR_256000 = 256000

	DTR_CONTROL_DISABLE   = 0x00000000
	DTR_CONTROL_ENABLE    = 0x00000010
	DTR_CONTROL_HANDSHAKE = 0x00000020

	RTS_CONTROL_DISABLE   = 0x00000000
	RTS_CONTROL_ENABLE    = 0x00001000
	RTS_CONTROL_HANDSHAKE = 0x00002000
	RTS_CONTROL_TOGGLE    = 0x00003000

	NOPARITY    = 0
	ODDPARITY   = 1
	EVENPARITY  = 2
	MARKPARITY  = 3
	SPACEPARITY = 4

	ONESTOPBIT   = 0
	ONE5STOPBITS = 1
	TWOSTOPBITS  = 2
)

DCB constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-dcb.

View Source
const (
	SETXOFF  = 1
	SETXON   = 2
	SETRTS   = 3
	CLRRTS   = 4
	SETDTR   = 5
	CLRDTR   = 6
	SETBREAK = 8
	CLRBREAK = 9
)

EscapeCommFunction constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-escapecommfunction.

View Source
const (
	PURGE_TXABORT = 0x0001
	PURGE_RXABORT = 0x0002
	PURGE_TXCLEAR = 0x0004
	PURGE_RXCLEAR = 0x0008
)

PurgeComm constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-purgecomm.

View Source
const (
	EV_RXCHAR  = 0x0001
	EV_RXFLAG  = 0x0002
	EV_TXEMPTY = 0x0004
	EV_CTS     = 0x0008
	EV_DSR     = 0x0010
	EV_RLSD    = 0x0020
	EV_BREAK   = 0x0040
	EV_ERR     = 0x0080
	EV_RING    = 0x0100
)

SetCommMask constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setcommmask.

View Source
const (
	// Invented values to support what package os expects.
	O_RDONLY   = 0x00000
	O_WRONLY   = 0x00001
	O_RDWR     = 0x00002
	O_CREAT    = 0x00040
	O_EXCL     = 0x00080
	O_NOCTTY   = 0x00100
	O_TRUNC    = 0x00200
	O_NONBLOCK = 0x00800
	O_APPEND   = 0x00400
	O_SYNC     = 0x01000
	O_ASYNC    = 0x02000
	O_CLOEXEC  = 0x80000
)
View Source
const (
	// More invented values for signals
	SIGHUP  = Signal(0x1)
	SIGINT  = Signal(0x2)
	SIGQUIT = Signal(0x3)
	SIGILL  = Signal(0x4)
	SIGTRAP = Signal(0x5)
	SIGABRT = Signal(0x6)
	SIGBUS  = Signal(0x7)
	SIGFPE  = Signal(0x8)
	SIGKILL = Signal(0x9)
	SIGSEGV = Signal(0xb)
	SIGPIPE = Signal(0xd)
	SIGALRM = Signal(0xe)
	SIGTERM = Signal(0xf)
)
View Source
const (
	FILE_READ_DATA        = 0x00000001
	FILE_READ_ATTRIBUTES  = 0x00000080
	FILE_READ_EA          = 0x00000008
	FILE_WRITE_DATA       = 0x00000002
	FILE_WRITE_ATTRIBUTES = 0x00000100
	FILE_WRITE_EA         = 0x00000010
	FILE_APPEND_DATA      = 0x00000004
	FILE_EXECUTE          = 0x00000020

	FILE_GENERIC_READ    = STANDARD_RIGHTS_READ | FILE_READ_DATA | FILE_READ_ATTRIBUTES | FILE_READ_EA | SYNCHRONIZE
	FILE_GENERIC_WRITE   = STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA | FILE_APPEND_DATA | SYNCHRONIZE
	FILE_GENERIC_EXECUTE = STANDARD_RIGHTS_EXECUTE | FILE_READ_ATTRIBUTES | FILE_EXECUTE | SYNCHRONIZE

	FILE_LIST_DIRECTORY = 0x00000001
	FILE_TRAVERSE       = 0x00000020

	FILE_SHARE_READ   = 0x00000001
	FILE_SHARE_WRITE  = 0x00000002
	FILE_SHARE_DELETE = 0x00000004

	FILE_ATTRIBUTE_READONLY              = 0x00000001
	FILE_ATTRIBUTE_HIDDEN                = 0x00000002
	FILE_ATTRIBUTE_SYSTEM                = 0x00000004
	FILE_ATTRIBUTE_DIRECTORY             = 0x00000010
	FILE_ATTRIBUTE_ARCHIVE               = 0x00000020
	FILE_ATTRIBUTE_DEVICE                = 0x00000040
	FILE_ATTRIBUTE_NORMAL                = 0x00000080
	FILE_ATTRIBUTE_TEMPORARY             = 0x00000100
	FILE_ATTRIBUTE_SPARSE_FILE           = 0x00000200
	FILE_ATTRIBUTE_REPARSE_POINT         = 0x00000400
	FILE_ATTRIBUTE_COMPRESSED            = 0x00000800
	FILE_ATTRIBUTE_OFFLINE               = 0x00001000
	FILE_ATTRIBUTE_NOT_CONTENT_INDEXED   = 0x00002000
	FILE_ATTRIBUTE_ENCRYPTED             = 0x00004000
	FILE_ATTRIBUTE_INTEGRITY_STREAM      = 0x00008000
	FILE_ATTRIBUTE_VIRTUAL               = 0x00010000
	FILE_ATTRIBUTE_NO_SCRUB_DATA         = 0x00020000
	FILE_ATTRIBUTE_RECALL_ON_OPEN        = 0x00040000
	FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = 0x00400000

	INVALID_FILE_ATTRIBUTES = 0xffffffff

	CREATE_NEW        = 1
	CREATE_ALWAYS     = 2
	OPEN_EXISTING     = 3
	OPEN_ALWAYS       = 4
	TRUNCATE_EXISTING = 5

	FILE_FLAG_OPEN_REQUIRING_OPLOCK = 0x00040000
	FILE_FLAG_FIRST_PIPE_INSTANCE   = 0x00080000
	FILE_FLAG_OPEN_NO_RECALL        = 0x00100000
	FILE_FLAG_OPEN_REPARSE_POINT    = 0x00200000
	FILE_FLAG_SESSION_AWARE         = 0x00800000
	FILE_FLAG_POSIX_SEMANTICS       = 0x01000000
	FILE_FLAG_BACKUP_SEMANTICS      = 0x02000000
	FILE_FLAG_DELETE_ON_CLOSE       = 0x04000000
	FILE_FLAG_SEQUENTIAL_SCAN       = 0x08000000
	FILE_FLAG_RANDOM_ACCESS         = 0x10000000
	FILE_FLAG_NO_BUFFERING          = 0x20000000
	FILE_FLAG_OVERLAPPED            = 0x40000000
	FILE_FLAG_WRITE_THROUGH         = 0x80000000

	HANDLE_FLAG_INHERIT    = 0x00000001
	STARTF_USESTDHANDLES   = 0x00000100
	STARTF_USESHOWWINDOW   = 0x00000001
	DUPLICATE_CLOSE_SOURCE = 0x00000001
	DUPLICATE_SAME_ACCESS  = 0x00000002

	STD_INPUT_HANDLE  = -10 & (1<<32 - 1)
	STD_OUTPUT_HANDLE = -11 & (1<<32 - 1)
	STD_ERROR_HANDLE  = -12 & (1<<32 - 1)

	FILE_BEGIN   = 0
	FILE_CURRENT = 1
	FILE_END     = 2

	LANG_ENGLISH       = 0x09
	SUBLANG_ENGLISH_US = 0x01

	FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
	FORMAT_MESSAGE_IGNORE_INSERTS  = 512
	FORMAT_MESSAGE_FROM_STRING     = 1024
	FORMAT_MESSAGE_FROM_HMODULE    = 2048
	FORMAT_MESSAGE_FROM_SYSTEM     = 4096
	FORMAT_MESSAGE_ARGUMENT_ARRAY  = 8192
	FORMAT_MESSAGE_MAX_WIDTH_MASK  = 255

	MAX_PATH      = 260
	MAX_LONG_PATH = 32768

	MAX_MODULE_NAME32 = 255

	MAX_COMPUTERNAME_LENGTH = 15

	MAX_DHCPV6_DUID_LENGTH = 130

	MAX_DNS_SUFFIX_STRING_LENGTH = 256

	TIME_ZONE_ID_UNKNOWN  = 0
	TIME_ZONE_ID_STANDARD = 1

	TIME_ZONE_ID_DAYLIGHT = 2
	IGNORE                = 0
	INFINITE              = 0xffffffff

	WAIT_ABANDONED = 0x00000080
	WAIT_OBJECT_0  = 0x00000000
	WAIT_FAILED    = 0xFFFFFFFF

	// Access rights for process.
	PROCESS_CREATE_PROCESS            = 0x0080
	PROCESS_CREATE_THREAD             = 0x0002
	PROCESS_DUP_HANDLE                = 0x0040
	PROCESS_QUERY_INFORMATION         = 0x0400
	PROCESS_QUERY_LIMITED_INFORMATION = 0x1000
	PROCESS_SET_INFORMATION           = 0x0200
	PROCESS_SET_QUOTA                 = 0x0100
	PROCESS_SUSPEND_RESUME            = 0x0800
	PROCESS_TERMINATE                 = 0x0001
	PROCESS_VM_OPERATION              = 0x0008
	PROCESS_VM_READ                   = 0x0010
	PROCESS_VM_WRITE                  = 0x0020

	// Access rights for thread.
	THREAD_DIRECT_IMPERSONATION      = 0x0200
	THREAD_GET_CONTEXT               = 0x0008
	THREAD_IMPERSONATE               = 0x0100
	THREAD_QUERY_INFORMATION         = 0x0040
	THREAD_QUERY_LIMITED_INFORMATION = 0x0800
	THREAD_SET_CONTEXT               = 0x0010
	THREAD_SET_INFORMATION           = 0x0020
	THREAD_SET_LIMITED_INFORMATION   = 0x0400
	THREAD_SET_THREAD_TOKEN          = 0x0080
	THREAD_SUSPEND_RESUME            = 0x0002
	THREAD_TERMINATE                 = 0x0001

	FILE_MAP_COPY    = 0x01
	FILE_MAP_WRITE   = 0x02
	FILE_MAP_READ    = 0x04
	FILE_MAP_EXECUTE = 0x20

	CTRL_C_EVENT        = 0
	CTRL_BREAK_EVENT    = 1
	CTRL_CLOSE_EVENT    = 2
	CTRL_LOGOFF_EVENT   = 5
	CTRL_SHUTDOWN_EVENT = 6

	// Windows reserves errors >= 1<<29 for application use.
	APPLICATION_ERROR = 1 << 29
)
View Source
const (
	// Process creation flags.
	CREATE_BREAKAWAY_FROM_JOB        = 0x01000000
	CREATE_DEFAULT_ERROR_MODE        = 0x04000000
	CREATE_NEW_CONSOLE               = 0x00000010
	CREATE_NEW_PROCESS_GROUP         = 0x00000200
	CREATE_NO_WINDOW                 = 0x08000000
	CREATE_PROTECTED_PROCESS         = 0x00040000
	CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000
	CREATE_SEPARATE_WOW_VDM          = 0x00000800
	CREATE_SHARED_WOW_VDM            = 0x00001000
	CREATE_SUSPENDED                 = 0x00000004
	CREATE_UNICODE_ENVIRONMENT       = 0x00000400
	DEBUG_ONLY_THIS_PROCESS          = 0x00000002
	DEBUG_PROCESS                    = 0x00000001
	DETACHED_PROCESS                 = 0x00000008
	EXTENDED_STARTUPINFO_PRESENT     = 0x00080000
	INHERIT_PARENT_AFFINITY          = 0x00010000
)
View Source
const (
	// attributes for ProcThreadAttributeList
	PROC_THREAD_ATTRIBUTE_PARENT_PROCESS    = 0x00020000
	PROC_THREAD_ATTRIBUTE_HANDLE_LIST       = 0x00020002
	PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY    = 0x00030003
	PROC_THREAD_ATTRIBUTE_PREFERRED_NODE    = 0x00020004
	PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR   = 0x00030005
	PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = 0x00020007
	PROC_THREAD_ATTRIBUTE_UMS_THREAD        = 0x00030006
	PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL  = 0x0002000b
	PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE     = 0x00020016
)
View Source
const (
	// flags for CreateToolhelp32Snapshot
	TH32CS_SNAPHEAPLIST = 0x01
	TH32CS_SNAPPROCESS  = 0x02
	TH32CS_SNAPTHREAD   = 0x04
	TH32CS_SNAPMODULE   = 0x08
	TH32CS_SNAPMODULE32 = 0x10
	TH32CS_SNAPALL      = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD
	TH32CS_INHERIT      = 0x80000000
)
View Source
const (
	// flags for EnumProcessModulesEx
	LIST_MODULES_32BIT   = 0x01
	LIST_MODULES_64BIT   = 0x02
	LIST_MODULES_ALL     = 0x03
	LIST_MODULES_DEFAULT = 0x00
)
View Source
const (
	// filters for ReadDirectoryChangesW and FindFirstChangeNotificationW
	FILE_NOTIFY_CHANGE_FILE_NAME   = 0x001
	FILE_NOTIFY_CHANGE_DIR_NAME    = 0x002
	FILE_NOTIFY_CHANGE_ATTRIBUTES  = 0x004
	FILE_NOTIFY_CHANGE_SIZE        = 0x008
	FILE_NOTIFY_CHANGE_LAST_WRITE  = 0x010
	FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x020
	FILE_NOTIFY_CHANGE_CREATION    = 0x040
	FILE_NOTIFY_CHANGE_SECURITY    = 0x100
)
View Source
const (
	// do not reorder
	FILE_ACTION_ADDED = iota + 1
	FILE_ACTION_REMOVED
	FILE_ACTION_MODIFIED
	FILE_ACTION_RENAMED_OLD_NAME
	FILE_ACTION_RENAMED_NEW_NAME
)
View Source
const (
	// wincrypt.h
	/* certenrolld_begin -- PROV_RSA_*/
	PROV_RSA_FULL      = 1
	PROV_RSA_SIG       = 2
	PROV_DSS           = 3
	PROV_FORTEZZA      = 4
	PROV_MS_EXCHANGE   = 5
	PROV_SSL           = 6
	PROV_RSA_SCHANNEL  = 12
	PROV_DSS_DH        = 13
	PROV_EC_ECDSA_SIG  = 14
	PROV_EC_ECNRA_SIG  = 15
	PROV_EC_ECDSA_FULL = 16
	PROV_EC_ECNRA_FULL = 17
	PROV_DH_SCHANNEL   = 18
	PROV_SPYRUS_LYNKS  = 20
	PROV_RNG           = 21
	PROV_INTEL_SEC     = 22
	PROV_REPLACE_OWF   = 23
	PROV_RSA_AES       = 24

	/* dwFlags definitions for CryptAcquireContext */
	CRYPT_VERIFYCONTEXT              = 0xF0000000
	CRYPT_NEWKEYSET                  = 0x00000008
	CRYPT_DELETEKEYSET               = 0x00000010
	CRYPT_MACHINE_KEYSET             = 0x00000020
	CRYPT_SILENT                     = 0x00000040
	CRYPT_DEFAULT_CONTAINER_OPTIONAL = 0x00000080

	/* Flags for PFXImportCertStore */
	CRYPT_EXPORTABLE                   = 0x00000001
	CRYPT_USER_PROTECTED               = 0x00000002
	CRYPT_USER_KEYSET                  = 0x00001000
	PKCS12_PREFER_CNG_KSP              = 0x00000100
	PKCS12_ALWAYS_CNG_KSP              = 0x00000200
	PKCS12_ALLOW_OVERWRITE_KEY         = 0x00004000
	PKCS12_NO_PERSIST_KEY              = 0x00008000
	PKCS12_INCLUDE_EXTENDED_PROPERTIES = 0x00000010

	/* Flags for CryptAcquireCertificatePrivateKey */
	CRYPT_ACQUIRE_CACHE_FLAG             = 0x00000001
	CRYPT_ACQUIRE_USE_PROV_INFO_FLAG     = 0x00000002
	CRYPT_ACQUIRE_COMPARE_KEY_FLAG       = 0x00000004
	CRYPT_ACQUIRE_NO_HEALING             = 0x00000008
	CRYPT_ACQUIRE_SILENT_FLAG            = 0x00000040
	CRYPT_ACQUIRE_WINDOW_HANDLE_FLAG     = 0x00000080
	CRYPT_ACQUIRE_NCRYPT_KEY_FLAGS_MASK  = 0x00070000
	CRYPT_ACQUIRE_ALLOW_NCRYPT_KEY_FLAG  = 0x00010000
	CRYPT_ACQUIRE_PREFER_NCRYPT_KEY_FLAG = 0x00020000
	CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG   = 0x00040000

	/* pdwKeySpec for CryptAcquireCertificatePrivateKey */
	AT_KEYEXCHANGE       = 1
	AT_SIGNATURE         = 2
	CERT_NCRYPT_KEY_SPEC = 0xFFFFFFFF

	/* Default usage match type is AND with value zero */
	USAGE_MATCH_TYPE_AND = 0
	USAGE_MATCH_TYPE_OR  = 1

	/* msgAndCertEncodingType values for CertOpenStore function */
	X509_ASN_ENCODING   = 0x00000001
	PKCS_7_ASN_ENCODING = 0x00010000

	/* storeProvider values for CertOpenStore function */
	CERT_STORE_PROV_MSG               = 1
	CERT_STORE_PROV_MEMORY            = 2
	CERT_STORE_PROV_FILE              = 3
	CERT_STORE_PROV_REG               = 4
	CERT_STORE_PROV_PKCS7             = 5
	CERT_STORE_PROV_SERIALIZED        = 6
	CERT_STORE_PROV_FILENAME_A        = 7
	CERT_STORE_PROV_FILENAME_W        = 8
	CERT_STORE_PROV_FILENAME          = CERT_STORE_PROV_FILENAME_W
	CERT_STORE_PROV_SYSTEM_A          = 9
	CERT_STORE_PROV_SYSTEM_W          = 10
	CERT_STORE_PROV_SYSTEM            = CERT_STORE_PROV_SYSTEM_W
	CERT_STORE_PROV_COLLECTION        = 11
	CERT_STORE_PROV_SYSTEM_REGISTRY_A = 12
	CERT_STORE_PROV_SYSTEM_REGISTRY_W = 13
	CERT_STORE_PROV_SYSTEM_REGISTRY   = CERT_STORE_PROV_SYSTEM_REGISTRY_W
	CERT_STORE_PROV_PHYSICAL_W        = 14
	CERT_STORE_PROV_PHYSICAL          = CERT_STORE_PROV_PHYSICAL_W
	CERT_STORE_PROV_SMART_CARD_W      = 15
	CERT_STORE_PROV_SMART_CARD        = CERT_STORE_PROV_SMART_CARD_W
	CERT_STORE_PROV_LDAP_W            = 16
	CERT_STORE_PROV_LDAP              = CERT_STORE_PROV_LDAP_W
	CERT_STORE_PROV_PKCS12            = 17

	/* store characteristics (low WORD of flag) for CertOpenStore function */
	CERT_STORE_NO_CRYPT_RELEASE_FLAG            = 0x00000001
	CERT_STORE_SET_LOCALIZED_NAME_FLAG          = 0x00000002
	CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004
	CERT_STORE_DELETE_FLAG                      = 0x00000010
	CERT_STORE_UNSAFE_PHYSICAL_FLAG             = 0x00000020
	CERT_STORE_SHARE_STORE_FLAG                 = 0x00000040
	CERT_STORE_SHARE_CONTEXT_FLAG               = 0x00000080
	CERT_STORE_MANIFOLD_FLAG                    = 0x00000100
	CERT_STORE_ENUM_ARCHIVED_FLAG               = 0x00000200
	CERT_STORE_UPDATE_KEYID_FLAG                = 0x00000400
	CERT_STORE_BACKUP_RESTORE_FLAG              = 0x00000800
	CERT_STORE_MAXIMUM_ALLOWED_FLAG             = 0x00001000
	CERT_STORE_CREATE_NEW_FLAG                  = 0x00002000
	CERT_STORE_OPEN_EXISTING_FLAG               = 0x00004000
	CERT_STORE_READONLY_FLAG                    = 0x00008000

	/* store locations (high WORD of flag) for CertOpenStore function */
	CERT_SYSTEM_STORE_CURRENT_USER               = 0x00010000
	CERT_SYSTEM_STORE_LOCAL_MACHINE              = 0x00020000
	CERT_SYSTEM_STORE_CURRENT_SERVICE            = 0x00040000
	CERT_SYSTEM_STORE_SERVICES                   = 0x00050000
	CERT_SYSTEM_STORE_USERS                      = 0x00060000
	CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY  = 0x00070000
	CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY = 0x00080000
	CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE   = 0x00090000
	CERT_SYSTEM_STORE_UNPROTECTED_FLAG           = 0x40000000
	CERT_SYSTEM_STORE_RELOCATE_FLAG              = 0x80000000

	/* Miscellaneous high-WORD flags for CertOpenStore function */
	CERT_REGISTRY_STORE_REMOTE_FLAG      = 0x00010000
	CERT_REGISTRY_STORE_SERIALIZED_FLAG  = 0x00020000
	CERT_REGISTRY_STORE_ROAMING_FLAG     = 0x00040000
	CERT_REGISTRY_STORE_MY_IE_DIRTY_FLAG = 0x00080000
	CERT_REGISTRY_STORE_LM_GPT_FLAG      = 0x01000000
	CERT_REGISTRY_STORE_CLIENT_GPT_FLAG  = 0x80000000
	CERT_FILE_STORE_COMMIT_ENABLE_FLAG   = 0x00010000
	CERT_LDAP_STORE_SIGN_FLAG            = 0x00010000
	CERT_LDAP_STORE_AREC_EXCLUSIVE_FLAG  = 0x00020000
	CERT_LDAP_STORE_OPENED_FLAG          = 0x00040000
	CERT_LDAP_STORE_UNBIND_FLAG          = 0x00080000

	/* addDisposition values for CertAddCertificateContextToStore function */
	CERT_STORE_ADD_NEW                                 = 1
	CERT_STORE_ADD_USE_EXISTING                        = 2
	CERT_STORE_ADD_REPLACE_EXISTING                    = 3
	CERT_STORE_ADD_ALWAYS                              = 4
	CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES = 5
	CERT_STORE_ADD_NEWER                               = 6
	CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES            = 7

	/* ErrorStatus values for CertTrustStatus struct */
	CERT_TRUST_NO_ERROR                          = 0x00000000
	CERT_TRUST_IS_NOT_TIME_VALID                 = 0x00000001
	CERT_TRUST_IS_REVOKED                        = 0x00000004
	CERT_TRUST_IS_NOT_SIGNATURE_VALID            = 0x00000008
	CERT_TRUST_IS_NOT_VALID_FOR_USAGE            = 0x00000010
	CERT_TRUST_IS_UNTRUSTED_ROOT                 = 0x00000020
	CERT_TRUST_REVOCATION_STATUS_UNKNOWN         = 0x00000040
	CERT_TRUST_IS_CYCLIC                         = 0x00000080
	CERT_TRUST_INVALID_EXTENSION                 = 0x00000100
	CERT_TRUST_INVALID_POLICY_CONSTRAINTS        = 0x00000200
	CERT_TRUST_INVALID_BASIC_CONSTRAINTS         = 0x00000400
	CERT_TRUST_INVALID_NAME_CONSTRAINTS          = 0x00000800
	CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT = 0x00001000
	CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT   = 0x00002000
	CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000
	CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT      = 0x00008000
	CERT_TRUST_IS_PARTIAL_CHAIN                  = 0x00010000
	CERT_TRUST_CTL_IS_NOT_TIME_VALID             = 0x00020000
	CERT_TRUST_CTL_IS_NOT_SIGNATURE_VALID        = 0x00040000
	CERT_TRUST_CTL_IS_NOT_VALID_FOR_USAGE        = 0x00080000
	CERT_TRUST_HAS_WEAK_SIGNATURE                = 0x00100000
	CERT_TRUST_IS_OFFLINE_REVOCATION             = 0x01000000
	CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY          = 0x02000000
	CERT_TRUST_IS_EXPLICIT_DISTRUST              = 0x04000000
	CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT    = 0x08000000

	/* InfoStatus values for CertTrustStatus struct */
	CERT_TRUST_HAS_EXACT_MATCH_ISSUER        = 0x00000001
	CERT_TRUST_HAS_KEY_MATCH_ISSUER          = 0x00000002
	CERT_TRUST_HAS_NAME_MATCH_ISSUER         = 0x00000004
	CERT_TRUST_IS_SELF_SIGNED                = 0x00000008
	CERT_TRUST_HAS_PREFERRED_ISSUER          = 0x00000100
	CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY     = 0x00000400
	CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS    = 0x00000400
	CERT_TRUST_IS_PEER_TRUSTED               = 0x00000800
	CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED     = 0x00001000
	CERT_TRUST_IS_FROM_EXCLUSIVE_TRUST_STORE = 0x00002000
	CERT_TRUST_IS_CA_TRUSTED                 = 0x00004000
	CERT_TRUST_IS_COMPLEX_CHAIN              = 0x00010000

	/* Certificate Information Flags */
	CERT_INFO_VERSION_FLAG                 = 1
	CERT_INFO_SERIAL_NUMBER_FLAG           = 2
	CERT_INFO_SIGNATURE_ALGORITHM_FLAG     = 3
	CERT_INFO_ISSUER_FLAG                  = 4
	CERT_INFO_NOT_BEFORE_FLAG              = 5
	CERT_INFO_NOT_AFTER_FLAG               = 6
	CERT_INFO_SUBJECT_FLAG                 = 7
	CERT_INFO_SUBJECT_PUBLIC_KEY_INFO_FLAG = 8
	CERT_INFO_ISSUER_UNIQUE_ID_FLAG        = 9
	CERT_INFO_SUBJECT_UNIQUE_ID_FLAG       = 10
	CERT_INFO_EXTENSION_FLAG               = 11

	/* dwFindType for CertFindCertificateInStore  */
	CERT_COMPARE_MASK                     = 0xFFFF
	CERT_COMPARE_SHIFT                    = 16
	CERT_COMPARE_ANY                      = 0
	CERT_COMPARE_SHA1_HASH                = 1
	CERT_COMPARE_NAME                     = 2
	CERT_COMPARE_ATTR                     = 3
	CERT_COMPARE_MD5_HASH                 = 4
	CERT_COMPARE_PROPERTY                 = 5
	CERT_COMPARE_PUBLIC_KEY               = 6
	CERT_COMPARE_HASH                     = CERT_COMPARE_SHA1_HASH
	CERT_COMPARE_NAME_STR_A               = 7
	CERT_COMPARE_NAME_STR_W               = 8
	CERT_COMPARE_KEY_SPEC                 = 9
	CERT_COMPARE_ENHKEY_USAGE             = 10
	CERT_COMPARE_CTL_USAGE                = CERT_COMPARE_ENHKEY_USAGE
	CERT_COMPARE_SUBJECT_CERT             = 11
	CERT_COMPARE_ISSUER_OF                = 12
	CERT_COMPARE_EXISTING                 = 13
	CERT_COMPARE_SIGNATURE_HASH           = 14
	CERT_COMPARE_KEY_IDENTIFIER           = 15
	CERT_COMPARE_CERT_ID                  = 16
	CERT_COMPARE_CROSS_CERT_DIST_POINTS   = 17
	CERT_COMPARE_PUBKEY_MD5_HASH          = 18
	CERT_COMPARE_SUBJECT_INFO_ACCESS      = 19
	CERT_COMPARE_HASH_STR                 = 20
	CERT_COMPARE_HAS_PRIVATE_KEY          = 21
	CERT_FIND_ANY                         = (CERT_COMPARE_ANY << CERT_COMPARE_SHIFT)
	CERT_FIND_SHA1_HASH                   = (CERT_COMPARE_SHA1_HASH << CERT_COMPARE_SHIFT)
	CERT_FIND_MD5_HASH                    = (CERT_COMPARE_MD5_HASH << CERT_COMPARE_SHIFT)
	CERT_FIND_SIGNATURE_HASH              = (CERT_COMPARE_SIGNATURE_HASH << CERT_COMPARE_SHIFT)
	CERT_FIND_KEY_IDENTIFIER              = (CERT_COMPARE_KEY_IDENTIFIER << CERT_COMPARE_SHIFT)
	CERT_FIND_HASH                        = CERT_FIND_SHA1_HASH
	CERT_FIND_PROPERTY                    = (CERT_COMPARE_PROPERTY << CERT_COMPARE_SHIFT)
	CERT_FIND_PUBLIC_KEY                  = (CERT_COMPARE_PUBLIC_KEY << CERT_COMPARE_SHIFT)
	CERT_FIND_SUBJECT_NAME                = (CERT_COMPARE_NAME<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
	CERT_FIND_SUBJECT_ATTR                = (CERT_COMPARE_ATTR<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
	CERT_FIND_ISSUER_NAME                 = (CERT_COMPARE_NAME<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
	CERT_FIND_ISSUER_ATTR                 = (CERT_COMPARE_ATTR<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
	CERT_FIND_SUBJECT_STR_A               = (CERT_COMPARE_NAME_STR_A<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
	CERT_FIND_SUBJECT_STR_W               = (CERT_COMPARE_NAME_STR_W<<CERT_COMPARE_SHIFT | CERT_INFO_SUBJECT_FLAG)
	CERT_FIND_SUBJECT_STR                 = CERT_FIND_SUBJECT_STR_W
	CERT_FIND_ISSUER_STR_A                = (CERT_COMPARE_NAME_STR_A<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
	CERT_FIND_ISSUER_STR_W                = (CERT_COMPARE_NAME_STR_W<<CERT_COMPARE_SHIFT | CERT_INFO_ISSUER_FLAG)
	CERT_FIND_ISSUER_STR                  = CERT_FIND_ISSUER_STR_W
	CERT_FIND_KEY_SPEC                    = (CERT_COMPARE_KEY_SPEC << CERT_COMPARE_SHIFT)
	CERT_FIND_ENHKEY_USAGE                = (CERT_COMPARE_ENHKEY_USAGE << CERT_COMPARE_SHIFT)
	CERT_FIND_CTL_USAGE                   = CERT_FIND_ENHKEY_USAGE
	CERT_FIND_SUBJECT_CERT                = (CERT_COMPARE_SUBJECT_CERT << CERT_COMPARE_SHIFT)
	CERT_FIND_ISSUER_OF                   = (CERT_COMPARE_ISSUER_OF << CERT_COMPARE_SHIFT)
	CERT_FIND_EXISTING                    = (CERT_COMPARE_EXISTING << CERT_COMPARE_SHIFT)
	CERT_FIND_CERT_ID                     = (CERT_COMPARE_CERT_ID << CERT_COMPARE_SHIFT)
	CERT_FIND_CROSS_CERT_DIST_POINTS      = (CERT_COMPARE_CROSS_CERT_DIST_POINTS << CERT_COMPARE_SHIFT)
	CERT_FIND_PUBKEY_MD5_HASH             = (CERT_COMPARE_PUBKEY_MD5_HASH << CERT_COMPARE_SHIFT)
	CERT_FIND_SUBJECT_INFO_ACCESS         = (CERT_COMPARE_SUBJECT_INFO_ACCESS << CERT_COMPARE_SHIFT)
	CERT_FIND_HASH_STR                    = (CERT_COMPARE_HASH_STR << CERT_COMPARE_SHIFT)
	CERT_FIND_HAS_PRIVATE_KEY             = (CERT_COMPARE_HAS_PRIVATE_KEY << CERT_COMPARE_SHIFT)
	CERT_FIND_OPTIONAL_ENHKEY_USAGE_FLAG  = 0x1
	CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG  = 0x2
	CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG = 0x4
	CERT_FIND_NO_ENHKEY_USAGE_FLAG        = 0x8
	CERT_FIND_OR_ENHKEY_USAGE_FLAG        = 0x10
	CERT_FIND_VALID_ENHKEY_USAGE_FLAG     = 0x20
	CERT_FIND_OPTIONAL_CTL_USAGE_FLAG     = CERT_FIND_OPTIONAL_ENHKEY_USAGE_FLAG
	CERT_FIND_EXT_ONLY_CTL_USAGE_FLAG     = CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG
	CERT_FIND_PROP_ONLY_CTL_USAGE_FLAG    = CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG
	CERT_FIND_NO_CTL_USAGE_FLAG           = CERT_FIND_NO_ENHKEY_USAGE_FLAG
	CERT_FIND_OR_CTL_USAGE_FLAG           = CERT_FIND_OR_ENHKEY_USAGE_FLAG
	CERT_FIND_VALID_CTL_USAGE_FLAG        = CERT_FIND_VALID_ENHKEY_USAGE_FLAG

	/* policyOID values for CertVerifyCertificateChainPolicy function */
	CERT_CHAIN_POLICY_BASE              = 1
	CERT_CHAIN_POLICY_AUTHENTICODE      = 2
	CERT_CHAIN_POLICY_AUTHENTICODE_TS   = 3
	CERT_CHAIN_POLICY_SSL               = 4
	CERT_CHAIN_POLICY_BASIC_CONSTRAINTS = 5
	CERT_CHAIN_POLICY_NT_AUTH           = 6
	CERT_CHAIN_POLICY_MICROSOFT_ROOT    = 7
	CERT_CHAIN_POLICY_EV                = 8
	CERT_CHAIN_POLICY_SSL_F12           = 9

	/* flag for dwFindType CertFindChainInStore  */
	CERT_CHAIN_FIND_BY_ISSUER = 1

	/* dwFindFlags for CertFindChainInStore when dwFindType == CERT_CHAIN_FIND_BY_ISSUER */
	CERT_CHAIN_FIND_BY_ISSUER_COMPARE_KEY_FLAG    = 0x0001
	CERT_CHAIN_FIND_BY_ISSUER_COMPLEX_CHAIN_FLAG  = 0x0002
	CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_URL_FLAG = 0x0004
	CERT_CHAIN_FIND_BY_ISSUER_LOCAL_MACHINE_FLAG  = 0x0008
	CERT_CHAIN_FIND_BY_ISSUER_NO_KEY_FLAG         = 0x4000
	CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_FLAG     = 0x8000

	/* Certificate Store close flags */
	CERT_CLOSE_STORE_FORCE_FLAG = 0x00000001
	CERT_CLOSE_STORE_CHECK_FLAG = 0x00000002

	/* CryptQueryObject object type */
	CERT_QUERY_OBJECT_FILE = 1
	CERT_QUERY_OBJECT_BLOB = 2

	/* CryptQueryObject content type flags */
	CERT_QUERY_CONTENT_CERT                    = 1
	CERT_QUERY_CONTENT_CTL                     = 2
	CERT_QUERY_CONTENT_CRL                     = 3
	CERT_QUERY_CONTENT_SERIALIZED_STORE        = 4
	CERT_QUERY_CONTENT_SERIALIZED_CERT         = 5
	CERT_QUERY_CONTENT_SERIALIZED_CTL          = 6
	CERT_QUERY_CONTENT_SERIALIZED_CRL          = 7
	CERT_QUERY_CONTENT_PKCS7_SIGNED            = 8
	CERT_QUERY_CONTENT_PKCS7_UNSIGNED          = 9
	CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED      = 10
	CERT_QUERY_CONTENT_PKCS10                  = 11
	CERT_QUERY_CONTENT_PFX                     = 12
	CERT_QUERY_CONTENT_CERT_PAIR               = 13
	CERT_QUERY_CONTENT_PFX_AND_LOAD            = 14
	CERT_QUERY_CONTENT_FLAG_CERT               = (1 << CERT_QUERY_CONTENT_CERT)
	CERT_QUERY_CONTENT_FLAG_CTL                = (1 << CERT_QUERY_CONTENT_CTL)
	CERT_QUERY_CONTENT_FLAG_CRL                = (1 << CERT_QUERY_CONTENT_CRL)
	CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE   = (1 << CERT_QUERY_CONTENT_SERIALIZED_STORE)
	CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT    = (1 << CERT_QUERY_CONTENT_SERIALIZED_CERT)
	CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL     = (1 << CERT_QUERY_CONTENT_SERIALIZED_CTL)
	CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL     = (1 << CERT_QUERY_CONTENT_SERIALIZED_CRL)
	CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED       = (1 << CERT_QUERY_CONTENT_PKCS7_SIGNED)
	CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED     = (1 << CERT_QUERY_CONTENT_PKCS7_UNSIGNED)
	CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED = (1 << CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED)
	CERT_QUERY_CONTENT_FLAG_PKCS10             = (1 << CERT_QUERY_CONTENT_PKCS10)
	CERT_QUERY_CONTENT_FLAG_PFX                = (1 << CERT_QUERY_CONTENT_PFX)
	CERT_QUERY_CONTENT_FLAG_CERT_PAIR          = (1 << CERT_QUERY_CONTENT_CERT_PAIR)
	CERT_QUERY_CONTENT_FLAG_PFX_AND_LOAD       = (1 << CERT_QUERY_CONTENT_PFX_AND_LOAD)
	CERT_QUERY_CONTENT_FLAG_ALL                = (CERT_QUERY_CONTENT_FLAG_CERT | CERT_QUERY_CONTENT_FLAG_CTL | CERT_QUERY_CONTENT_FLAG_CRL | CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED | CERT_QUERY_CONTENT_FLAG_PKCS10 | CERT_QUERY_CONTENT_FLAG_PFX | CERT_QUERY_CONTENT_FLAG_CERT_PAIR)
	CERT_QUERY_CONTENT_FLAG_ALL_ISSUER_CERT    = (CERT_QUERY_CONTENT_FLAG_CERT | CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED)

	/* CryptQueryObject format type flags */
	CERT_QUERY_FORMAT_BINARY                     = 1
	CERT_QUERY_FORMAT_BASE64_ENCODED             = 2
	CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED      = 3
	CERT_QUERY_FORMAT_FLAG_BINARY                = (1 << CERT_QUERY_FORMAT_BINARY)
	CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED        = (1 << CERT_QUERY_FORMAT_BASE64_ENCODED)
	CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED = (1 << CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED)
	CERT_QUERY_FORMAT_FLAG_ALL                   = (CERT_QUERY_FORMAT_FLAG_BINARY | CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED | CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED)

	/* CertGetNameString name types */
	CERT_NAME_EMAIL_TYPE            = 1
	CERT_NAME_RDN_TYPE              = 2
	CERT_NAME_ATTR_TYPE             = 3
	CERT_NAME_SIMPLE_DISPLAY_TYPE   = 4
	CERT_NAME_FRIENDLY_DISPLAY_TYPE = 5
	CERT_NAME_DNS_TYPE              = 6
	CERT_NAME_URL_TYPE              = 7
	CERT_NAME_UPN_TYPE              = 8

	/* CertGetNameString flags */
	CERT_NAME_ISSUER_FLAG              = 0x1
	CERT_NAME_DISABLE_IE4_UTF8_FLAG    = 0x10000
	CERT_NAME_SEARCH_ALL_NAMES_FLAG    = 0x2
	CERT_NAME_STR_ENABLE_PUNYCODE_FLAG = 0x00200000

	/* AuthType values for SSLExtraCertChainPolicyPara struct */
	AUTHTYPE_CLIENT = 1
	AUTHTYPE_SERVER = 2

	/* Checks values for SSLExtraCertChainPolicyPara struct */
	SECURITY_FLAG_IGNORE_REVOCATION        = 0x00000080
	SECURITY_FLAG_IGNORE_UNKNOWN_CA        = 0x00000100
	SECURITY_FLAG_IGNORE_WRONG_USAGE       = 0x00000200
	SECURITY_FLAG_IGNORE_CERT_CN_INVALID   = 0x00001000
	SECURITY_FLAG_IGNORE_CERT_DATE_INVALID = 0x00002000

	/* Flags for Crypt[Un]ProtectData */
	CRYPTPROTECT_UI_FORBIDDEN      = 0x1
	CRYPTPROTECT_LOCAL_MACHINE     = 0x4
	CRYPTPROTECT_CRED_SYNC         = 0x8
	CRYPTPROTECT_AUDIT             = 0x10
	CRYPTPROTECT_NO_RECOVERY       = 0x20
	CRYPTPROTECT_VERIFY_PROTECTION = 0x40
	CRYPTPROTECT_CRED_REGENERATE   = 0x80

	/* Flags for CryptProtectPromptStruct */
	CRYPTPROTECT_PROMPT_ON_UNPROTECT   = 1
	CRYPTPROTECT_PROMPT_ON_PROTECT     = 2
	CRYPTPROTECT_PROMPT_RESERVED       = 4
	CRYPTPROTECT_PROMPT_STRONG         = 8
	CRYPTPROTECT_PROMPT_REQUIRE_STRONG = 16
)
View Source
const (
	// flags for SetErrorMode
	SEM_FAILCRITICALERRORS     = 0x0001
	SEM_NOALIGNMENTFAULTEXCEPT = 0x0004
	SEM_NOGPFAULTERRORBOX      = 0x0002
	SEM_NOOPENFILEERRORBOX     = 0x8000
)
View Source
const (
	// Priority class.
	ABOVE_NORMAL_PRIORITY_CLASS   = 0x00008000
	BELOW_NORMAL_PRIORITY_CLASS   = 0x00004000
	HIGH_PRIORITY_CLASS           = 0x00000080
	IDLE_PRIORITY_CLASS           = 0x00000040
	NORMAL_PRIORITY_CLASS         = 0x00000020
	PROCESS_MODE_BACKGROUND_BEGIN = 0x00100000
	PROCESS_MODE_BACKGROUND_END   = 0x00200000
	REALTIME_PRIORITY_CLASS       = 0x00000100
)
View Source
const (
	WTD_UI_ALL    = 1
	WTD_UI_NONE   = 2
	WTD_UI_NOBAD  = 3
	WTD_UI_NOGOOD = 4

	WTD_REVOKE_NONE       = 0
	WTD_REVOKE_WHOLECHAIN = 1

	WTD_CHOICE_FILE    = 1
	WTD_CHOICE_CATALOG = 2
	WTD_CHOICE_BLOB    = 3
	WTD_CHOICE_SIGNER  = 4
	WTD_CHOICE_CERT    = 5

	WTD_STATEACTION_IGNORE           = 0x00000000
	WTD_STATEACTION_VERIFY           = 0x00000001
	WTD_STATEACTION_CLOSE            = 0x00000002
	WTD_STATEACTION_AUTO_CACHE       = 0x00000003
	WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004

	WTD_USE_IE4_TRUST_FLAG                  = 0x1
	WTD_NO_IE4_CHAIN_FLAG                   = 0x2
	WTD_NO_POLICY_USAGE_FLAG                = 0x4
	WTD_REVOCATION_CHECK_NONE               = 0x10
	WTD_REVOCATION_CHECK_END_CERT           = 0x20
	WTD_REVOCATION_CHECK_CHAIN              = 0x40
	WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x80
	WTD_SAFER_FLAG                          = 0x100
	WTD_HASH_ONLY_FLAG                      = 0x200
	WTD_USE_DEFAULT_OSVER_CHECK             = 0x400
	WTD_LIFETIME_SIGNING_FLAG               = 0x800
	WTD_CACHE_ONLY_URL_RETRIEVAL            = 0x1000
	WTD_DISABLE_MD2_MD4                     = 0x2000
	WTD_MOTW                                = 0x4000

	WTD_UICONTEXT_EXECUTE = 0
	WTD_UICONTEXT_INSTALL = 1
)

wintrust.h constants for WinVerifyTrustEx

View Source
const (
	GetFileExInfoStandard = 0
	GetFileExMaxInfoLevel = 1
)
View Source
const (
	// winuser.h
	SW_HIDE            = 0
	SW_NORMAL          = 1
	SW_SHOWNORMAL      = 1
	SW_SHOWMINIMIZED   = 2
	SW_SHOWMAXIMIZED   = 3
	SW_MAXIMIZE        = 3
	SW_SHOWNOACTIVATE  = 4
	SW_SHOW            = 5
	SW_MINIMIZE        = 6
	SW_SHOWMINNOACTIVE = 7
	SW_SHOWNA          = 8
	SW_RESTORE         = 9
	SW_SHOWDEFAULT     = 10
	SW_FORCEMINIMIZE   = 11
)

ShowWindow constants

View Source
const (
	AF_UNSPEC  = 0
	AF_UNIX    = 1
	AF_INET    = 2
	AF_NETBIOS = 17
	AF_INET6   = 23
	AF_IRDA    = 26
	AF_BTH     = 32

	SOCK_STREAM    = 1
	SOCK_DGRAM     = 2
	SOCK_RAW       = 3
	SOCK_RDM       = 4
	SOCK_SEQPACKET = 5

	IPPROTO_IP      = 0
	IPPROTO_ICMP    = 1
	IPPROTO_IGMP    = 2
	BTHPROTO_RFCOMM = 3
	IPPROTO_TCP     = 6
	IPPROTO_UDP     = 17
	IPPROTO_IPV6    = 41
	IPPROTO_ICMPV6  = 58
	IPPROTO_RM      = 113

	SOL_SOCKET                = 0xffff
	SO_REUSEADDR              = 4
	SO_KEEPALIVE              = 8
	SO_DONTROUTE              = 16
	SO_BROADCAST              = 32
	SO_LINGER                 = 128
	SO_RCVBUF                 = 0x1002
	SO_RCVTIMEO               = 0x1006
	SO_SNDBUF                 = 0x1001
	SO_UPDATE_ACCEPT_CONTEXT  = 0x700b
	SO_UPDATE_CONNECT_CONTEXT = 0x7010

	IOC_OUT                            = 0x40000000
	IOC_IN                             = 0x80000000
	IOC_VENDOR                         = 0x18000000
	IOC_INOUT                          = IOC_IN | IOC_OUT
	IOC_WS2                            = 0x08000000
	SIO_GET_EXTENSION_FUNCTION_POINTER = IOC_INOUT | IOC_WS2 | 6
	SIO_KEEPALIVE_VALS                 = IOC_IN | IOC_VENDOR | 4
	SIO_UDP_CONNRESET                  = IOC_IN | IOC_VENDOR | 12
	SIO_UDP_NETRESET                   = IOC_IN | IOC_VENDOR | 15

	IP_HDRINCL         = 0x2
	IP_TOS             = 0x3
	IP_TTL             = 0x4
	IP_MULTICAST_IF    = 0x9
	IP_MULTICAST_TTL   = 0xa
	IP_MULTICAST_LOOP  = 0xb
	IP_ADD_MEMBERSHIP  = 0xc
	IP_DROP_MEMBERSHIP = 0xd
	IP_PKTINFO         = 0x13

	IPV6_V6ONLY         = 0x1b
	IPV6_UNICAST_HOPS   = 0x4
	IPV6_MULTICAST_IF   = 0x9
	IPV6_MULTICAST_HOPS = 0xa
	IPV6_MULTICAST_LOOP = 0xb
	IPV6_JOIN_GROUP     = 0xc
	IPV6_LEAVE_GROUP    = 0xd
	IPV6_PKTINFO        = 0x13

	MSG_OOB       = 0x1
	MSG_PEEK      = 0x2
	MSG_DONTROUTE = 0x4
	MSG_WAITALL   = 0x8

	MSG_TRUNC  = 0x0100
	MSG_CTRUNC = 0x0200
	MSG_BCAST  = 0x0400
	MSG_MCAST  = 0x0800

	SOMAXCONN = 0x7fffffff

	TCP_NODELAY                    = 1
	TCP_EXPEDITED_1122             = 2
	TCP_KEEPALIVE                  = 3
	TCP_MAXSEG                     = 4
	TCP_MAXRT                      = 5
	TCP_STDURG                     = 6
	TCP_NOURG                      = 7
	TCP_ATMARK                     = 8
	TCP_NOSYNRETRIES               = 9
	TCP_TIMESTAMPS                 = 10
	TCP_OFFLOAD_PREFERENCE         = 11
	TCP_CONGESTION_ALGORITHM       = 12
	TCP_DELAY_FIN_ACK              = 13
	TCP_MAXRTMS                    = 14
	TCP_FASTOPEN                   = 15
	TCP_KEEPCNT                    = 16
	TCP_KEEPIDLE                   = TCP_KEEPALIVE
	TCP_KEEPINTVL                  = 17
	TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18
	TCP_ICMP_ERROR_INFO            = 19

	UDP_NOCHECKSUM              = 1
	UDP_SEND_MSG_SIZE           = 2
	UDP_RECV_MAX_COALESCED_SIZE = 3
	UDP_CHECKSUM_COVERAGE       = 20

	UDP_COALESCED_INFO = 3

	SHUT_RD   = 0
	SHUT_WR   = 1
	SHUT_RDWR = 2

	WSADESCRIPTION_LEN = 256
	WSASYS_STATUS_LEN  = 128
)
View Source
const (
	WSA_FLAG_OVERLAPPED             = 0x01
	WSA_FLAG_MULTIPOINT_C_ROOT      = 0x02
	WSA_FLAG_MULTIPOINT_C_LEAF      = 0x04
	WSA_FLAG_MULTIPOINT_D_ROOT      = 0x08
	WSA_FLAG_MULTIPOINT_D_LEAF      = 0x10
	WSA_FLAG_ACCESS_SYSTEM_SECURITY = 0x40
	WSA_FLAG_NO_HANDLE_INHERIT      = 0x80
	WSA_FLAG_REGISTERED_IO          = 0x100
)

Flags for WSASocket

View Source
const (
	S_IFMT   = 0x1f000
	S_IFIFO  = 0x1000
	S_IFCHR  = 0x2000
	S_IFDIR  = 0x4000
	S_IFBLK  = 0x6000
	S_IFREG  = 0x8000
	S_IFLNK  = 0xa000
	S_IFSOCK = 0xc000
	S_ISUID  = 0x800
	S_ISGID  = 0x400
	S_ISVTX  = 0x200
	S_IRUSR  = 0x100
	S_IWRITE = 0x80
	S_IWUSR  = 0x80
	S_IXUSR  = 0x40
)

Invented values to support what package os expects.

View Source
const (
	FILE_TYPE_CHAR    = 0x0002
	FILE_TYPE_DISK    = 0x0001
	FILE_TYPE_PIPE    = 0x0003
	FILE_TYPE_REMOTE  = 0x8000
	FILE_TYPE_UNKNOWN = 0x0000
)
View Source
const (
	DNS_TYPE_A       = 0x0001
	DNS_TYPE_NS      = 0x0002
	DNS_TYPE_MD      = 0x0003
	DNS_TYPE_MF      = 0x0004
	DNS_TYPE_CNAME   = 0x0005
	DNS_TYPE_SOA     = 0x0006
	DNS_TYPE_MB      = 0x0007
	DNS_TYPE_MG      = 0x0008
	DNS_TYPE_MR      = 0x0009
	DNS_TYPE_NULL    = 0x000a
	DNS_TYPE_WKS     = 0x000b
	DNS_TYPE_PTR     = 0x000c
	DNS_TYPE_HINFO   = 0x000d
	DNS_TYPE_MINFO   = 0x000e
	DNS_TYPE_MX      = 0x000f
	DNS_TYPE_TEXT    = 0x0010
	DNS_TYPE_RP      = 0x0011
	DNS_TYPE_AFSDB   = 0x0012
	DNS_TYPE_X25     = 0x0013
	DNS_TYPE_ISDN    = 0x0014
	DNS_TYPE_RT      = 0x0015
	DNS_TYPE_NSAP    = 0x0016
	DNS_TYPE_NSAPPTR = 0x0017
	DNS_TYPE_SIG     = 0x0018
	DNS_TYPE_KEY     = 0x0019
	DNS_TYPE_PX      = 0x001a
	DNS_TYPE_GPOS    = 0x001b
	DNS_TYPE_AAAA    = 0x001c
	DNS_TYPE_LOC     = 0x001d
	DNS_TYPE_NXT     = 0x001e
	DNS_TYPE_EID     = 0x001f
	DNS_TYPE_NIMLOC  = 0x0020
	DNS_TYPE_SRV     = 0x0021
	DNS_TYPE_ATMA    = 0x0022
	DNS_TYPE_NAPTR   = 0x0023
	DNS_TYPE_KX      = 0x0024
	DNS_TYPE_CERT    = 0x0025
	DNS_TYPE_A6      = 0x0026
	DNS_TYPE_DNAME   = 0x0027
	DNS_TYPE_SINK    = 0x0028
	DNS_TYPE_OPT     = 0x0029
	DNS_TYPE_DS      = 0x002B
	DNS_TYPE_RRSIG   = 0x002E
	DNS_TYPE_NSEC    = 0x002F
	DNS_TYPE_DNSKEY  = 0x0030
	DNS_TYPE_DHCID   = 0x0031
	DNS_TYPE_UINFO   = 0x0064
	DNS_TYPE_UID     = 0x0065
	DNS_TYPE_GID     = 0x0066
	DNS_TYPE_UNSPEC  = 0x0067
	DNS_TYPE_ADDRS   = 0x00f8
	DNS_TYPE_TKEY    = 0x00f9
	DNS_TYPE_TSIG    = 0x00fa
	DNS_TYPE_IXFR    = 0x00fb
	DNS_TYPE_AXFR    = 0x00fc
	DNS_TYPE_MAILB   = 0x00fd
	DNS_TYPE_MAILA   = 0x00fe
	DNS_TYPE_ALL     = 0x00ff
	DNS_TYPE_ANY     = 0x00ff
	DNS_TYPE_WINS    = 0xff01
	DNS_TYPE_WINSR   = 0xff02
	DNS_TYPE_NBSTAT  = 0xff01
)
View Source
const (
	// flags inside DNSRecord.Dw
	DnsSectionQuestion   = 0x0000
	DnsSectionAnswer     = 0x0001
	DnsSectionAuthority  = 0x0002
	DnsSectionAdditional = 0x0003
)
View Source
const (
	// flags of WSALookupService
	LUP_DEEP                = 0x0001
	LUP_CONTAINERS          = 0x0002
	LUP_NOCONTAINERS        = 0x0004
	LUP_NEAREST             = 0x0008
	LUP_RETURN_NAME         = 0x0010
	LUP_RETURN_TYPE         = 0x0020
	LUP_RETURN_VERSION      = 0x0040
	LUP_RETURN_COMMENT      = 0x0080
	LUP_RETURN_ADDR         = 0x0100
	LUP_RETURN_BLOB         = 0x0200
	LUP_RETURN_ALIASES      = 0x0400
	LUP_RETURN_QUERY_STRING = 0x0800
	LUP_RETURN_ALL          = 0x0FF0
	LUP_RES_SERVICE         = 0x8000

	LUP_FLUSHCACHE    = 0x1000
	LUP_FLUSHPREVIOUS = 0x2000

	LUP_NON_AUTHORITATIVE      = 0x4000
	LUP_SECURE                 = 0x8000
	LUP_RETURN_PREFERRED_NAMES = 0x10000
	LUP_DNS_ONLY               = 0x20000

	LUP_ADDRCONFIG           = 0x100000
	LUP_DUAL_ADDR            = 0x200000
	LUP_FILESERVER           = 0x400000
	LUP_DISABLE_IDN_ENCODING = 0x00800000
	LUP_API_ANSI             = 0x01000000

	LUP_RESOLUTION_HANDLE = 0x80000000
)
View Source
const (
	// values of WSAQUERYSET's namespace
	NS_ALL       = 0
	NS_DNS       = 12
	NS_NLA       = 15
	NS_BTH       = 16
	NS_EMAIL     = 37
	NS_PNRPNAME  = 38
	NS_PNRPCLOUD = 39
)
View Source
const (
	TF_DISCONNECT         = 1
	TF_REUSE_SOCKET       = 2
	TF_WRITE_BEHIND       = 4
	TF_USE_DEFAULT_WORKER = 0
	TF_USE_SYSTEM_THREAD  = 16
	TF_USE_KERNEL_APC     = 32
)
View Source
const (
	IFF_UP           = 1
	IFF_BROADCAST    = 2
	IFF_LOOPBACK     = 4
	IFF_POINTTOPOINT = 8
	IFF_MULTICAST    = 16
)
View Source
const (
	// do not reorder
	HKEY_CLASSES_ROOT = 0x80000000 + iota
	HKEY_CURRENT_USER
	HKEY_LOCAL_MACHINE
	HKEY_USERS
	HKEY_PERFORMANCE_DATA
	HKEY_CURRENT_CONFIG
	HKEY_DYN_DATA

	KEY_QUERY_VALUE        = 1
	KEY_SET_VALUE          = 2
	KEY_CREATE_SUB_KEY     = 4
	KEY_ENUMERATE_SUB_KEYS = 8
	KEY_NOTIFY             = 16
	KEY_CREATE_LINK        = 32
	KEY_WRITE              = 0x20006
	KEY_EXECUTE            = 0x20019
	KEY_READ               = 0x20019
	KEY_WOW64_64KEY        = 0x0100
	KEY_WOW64_32KEY        = 0x0200
	KEY_ALL_ACCESS         = 0xf003f
)
View Source
const (
	// do not reorder
	REG_NONE = iota
	REG_SZ
	REG_EXPAND_SZ
	REG_BINARY
	REG_DWORD_LITTLE_ENDIAN
	REG_DWORD_BIG_ENDIAN
	REG_LINK
	REG_MULTI_SZ
	REG_RESOURCE_LIST
	REG_FULL_RESOURCE_DESCRIPTOR
	REG_RESOURCE_REQUIREMENTS_LIST
	REG_QWORD_LITTLE_ENDIAN
	REG_DWORD = REG_DWORD_LITTLE_ENDIAN
	REG_QWORD = REG_QWORD_LITTLE_ENDIAN
)
View Source
const (
	EVENT_MODIFY_STATE = 0x0002
	EVENT_ALL_ACCESS   = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3

	MUTANT_QUERY_STATE = 0x0001
	MUTANT_ALL_ACCESS  = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | MUTANT_QUERY_STATE

	SEMAPHORE_MODIFY_STATE = 0x0002
	SEMAPHORE_ALL_ACCESS   = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3

	TIMER_QUERY_STATE  = 0x0001
	TIMER_MODIFY_STATE = 0x0002
	TIMER_ALL_ACCESS   = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | TIMER_QUERY_STATE | TIMER_MODIFY_STATE

	MUTEX_MODIFY_STATE = MUTANT_QUERY_STATE
	MUTEX_ALL_ACCESS   = MUTANT_ALL_ACCESS

	CREATE_EVENT_MANUAL_RESET  = 0x1
	CREATE_EVENT_INITIAL_SET   = 0x2
	CREATE_MUTEX_INITIAL_OWNER = 0x1
)
View Source
const (
	AI_PASSIVE     = 1
	AI_CANONNAME   = 2
	AI_NUMERICHOST = 4
)
View Source
const (
	FILE_SKIP_COMPLETION_PORT_ON_SUCCESS = 1
	FILE_SKIP_SET_EVENT_ON_HANDLE        = 2
)
View Source
const (
	WSAPROTOCOL_LEN    = 255
	MAX_PROTOCOL_CHAIN = 7
	BASE_PROTOCOL      = 1
	LAYERED_PROTOCOL   = 0

	XP1_CONNECTIONLESS           = 0x00000001
	XP1_GUARANTEED_DELIVERY      = 0x00000002
	XP1_GUARANTEED_ORDER         = 0x00000004
	XP1_MESSAGE_ORIENTED         = 0x00000008
	XP1_PSEUDO_STREAM            = 0x00000010
	XP1_GRACEFUL_CLOSE           = 0x00000020
	XP1_EXPEDITED_DATA           = 0x00000040
	XP1_CONNECT_DATA             = 0x00000080
	XP1_DISCONNECT_DATA          = 0x00000100
	XP1_SUPPORT_BROADCAST        = 0x00000200
	XP1_SUPPORT_MULTIPOINT       = 0x00000400
	XP1_MULTIPOINT_CONTROL_PLANE = 0x00000800
	XP1_MULTIPOINT_DATA_PLANE    = 0x00001000
	XP1_QOS_SUPPORTED            = 0x00002000
	XP1_UNI_SEND                 = 0x00008000
	XP1_UNI_RECV                 = 0x00010000
	XP1_IFS_HANDLES              = 0x00020000
	XP1_PARTIAL_MESSAGE          = 0x00040000
	XP1_SAN_SUPPORT_SDP          = 0x00080000

	PFL_MULTIPLE_PROTO_ENTRIES  = 0x00000001
	PFL_RECOMMENDED_PROTO_ENTRY = 0x00000002
	PFL_HIDDEN                  = 0x00000004
	PFL_MATCHES_PROTOCOL_ZERO   = 0x00000008
	PFL_NETWORKDIRECT_PROVIDER  = 0x00000010
)
View Source
const (
	FSCTL_CREATE_OR_GET_OBJECT_ID             = 0x0900C0
	FSCTL_DELETE_OBJECT_ID                    = 0x0900A0
	FSCTL_DELETE_REPARSE_POINT                = 0x0900AC
	FSCTL_DUPLICATE_EXTENTS_TO_FILE           = 0x098344
	FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX        = 0x0983E8
	FSCTL_FILESYSTEM_GET_STATISTICS           = 0x090060
	FSCTL_FILE_LEVEL_TRIM                     = 0x098208
	FSCTL_FIND_FILES_BY_SID                   = 0x09008F
	FSCTL_GET_COMPRESSION                     = 0x09003C
	FSCTL_GET_INTEGRITY_INFORMATION           = 0x09027C
	FSCTL_GET_NTFS_VOLUME_DATA                = 0x090064
	FSCTL_GET_REFS_VOLUME_DATA                = 0x0902D8
	FSCTL_GET_OBJECT_ID                       = 0x09009C
	FSCTL_GET_REPARSE_POINT                   = 0x0900A8
	FSCTL_GET_RETRIEVAL_POINTER_COUNT         = 0x09042B
	FSCTL_GET_RETRIEVAL_POINTERS              = 0x090073
	FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCOUNT = 0x0903D3
	FSCTL_IS_PATHNAME_VALID                   = 0x09002C
	FSCTL_LMR_SET_LINK_TRACKING_INFORMATION   = 0x1400EC
	FSCTL_MARK_HANDLE                         = 0x0900FC
	FSCTL_OFFLOAD_READ                        = 0x094264
	FSCTL_OFFLOAD_WRITE                       = 0x098268
	FSCTL_PIPE_PEEK                           = 0x11400C
	FSCTL_PIPE_TRANSCEIVE                     = 0x11C017
	FSCTL_PIPE_WAIT                           = 0x110018
	FSCTL_QUERY_ALLOCATED_RANGES              = 0x0940CF
	FSCTL_QUERY_FAT_BPB                       = 0x090058
	FSCTL_QUERY_FILE_REGIONS                  = 0x090284
	FSCTL_QUERY_ON_DISK_VOLUME_INFO           = 0x09013C
	FSCTL_QUERY_SPARING_INFO                  = 0x090138
	FSCTL_READ_FILE_USN_DATA                  = 0x0900EB
	FSCTL_RECALL_FILE                         = 0x090117
	FSCTL_REFS_STREAM_SNAPSHOT_MANAGEMENT     = 0x090440
	FSCTL_SET_COMPRESSION                     = 0x09C040
	FSCTL_SET_DEFECT_MANAGEMENT               = 0x098134
	FSCTL_SET_ENCRYPTION                      = 0x0900D7
	FSCTL_SET_INTEGRITY_INFORMATION           = 0x09C280
	FSCTL_SET_INTEGRITY_INFORMATION_EX        = 0x090380
	FSCTL_SET_OBJECT_ID                       = 0x090098
	FSCTL_SET_OBJECT_ID_EXTENDED              = 0x0900BC
	FSCTL_SET_REPARSE_POINT                   = 0x0900A4
	FSCTL_SET_SPARSE                          = 0x0900C4
	FSCTL_SET_ZERO_DATA                       = 0x0980C8
	FSCTL_SET_ZERO_ON_DEALLOCATION            = 0x090194
	FSCTL_SIS_COPYFILE                        = 0x090100
	FSCTL_WRITE_USN_CLOSE_RECORD              = 0x0900EF

	MAXIMUM_REPARSE_DATA_BUFFER_SIZE = 16 * 1024
	IO_REPARSE_TAG_MOUNT_POINT       = 0xA0000003
	IO_REPARSE_TAG_SYMLINK           = 0xA000000C
	SYMBOLIC_LINK_FLAG_DIRECTORY     = 0x1
)
View Source
const (
	ComputerNameNetBIOS                   = 0
	ComputerNameDnsHostname               = 1
	ComputerNameDnsDomain                 = 2
	ComputerNameDnsFullyQualified         = 3
	ComputerNamePhysicalNetBIOS           = 4
	ComputerNamePhysicalDnsHostname       = 5
	ComputerNamePhysicalDnsDomain         = 6
	ComputerNamePhysicalDnsFullyQualified = 7
	ComputerNameMax                       = 8
)
View Source
const (
	MB_OK                   = 0x00000000
	MB_OKCANCEL             = 0x00000001
	MB_ABORTRETRYIGNORE     = 0x00000002
	MB_YESNOCANCEL          = 0x00000003
	MB_YESNO                = 0x00000004
	MB_RETRYCANCEL          = 0x00000005
	MB_CANCELTRYCONTINUE    = 0x00000006
	MB_ICONHAND             = 0x00000010
	MB_ICONQUESTION         = 0x00000020
	MB_ICONEXCLAMATION      = 0x00000030
	MB_ICONASTERISK         = 0x00000040
	MB_USERICON             = 0x00000080
	MB_ICONWARNING          = MB_ICONEXCLAMATION
	MB_ICONERROR            = MB_ICONHAND
	MB_ICONINFORMATION      = MB_ICONASTERISK
	MB_ICONSTOP             = MB_ICONHAND
	MB_DEFBUTTON1           = 0x00000000
	MB_DEFBUTTON2           = 0x00000100
	MB_DEFBUTTON3           = 0x00000200
	MB_DEFBUTTON4           = 0x00000300
	MB_APPLMODAL            = 0x00000000
	MB_SYSTEMMODAL          = 0x00001000
	MB_TASKMODAL            = 0x00002000
	MB_HELP                 = 0x00004000
	MB_NOFOCUS              = 0x00008000
	MB_SETFOREGROUND        = 0x00010000
	MB_DEFAULT_DESKTOP_ONLY = 0x00020000
	MB_TOPMOST              = 0x00040000
	MB_RIGHT                = 0x00080000
	MB_RTLREADING           = 0x00100000
	MB_SERVICE_NOTIFICATION = 0x00200000
)

For MessageBox()

View Source
const (
	MOVEFILE_REPLACE_EXISTING      = 0x1
	MOVEFILE_COPY_ALLOWED          = 0x2
	MOVEFILE_DELAY_UNTIL_REBOOT    = 0x4
	MOVEFILE_WRITE_THROUGH         = 0x8
	MOVEFILE_CREATE_HARDLINK       = 0x10
	MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20
)
View Source
const (
	GAA_FLAG_SKIP_UNICAST                = 0x1
	GAA_FLAG_SKIP_ANYCAST                = 0x2
	GAA_FLAG_SKIP_MULTICAST              = 0x4
	GAA_FLAG_SKIP_DNS_SERVER             = 0x8
	GAA_FLAG_INCLUDE_PREFIX              = 0x10
	GAA_FLAG_SKIP_FRIENDLY_NAME          = 0x20
	GAA_FLAG_INCLUDE_WINS_INFO           = 0x40
	GAA_FLAG_INCLUDE_GATEWAYS            = 0x80
	GAA_FLAG_INCLUDE_ALL_INTERFACES      = 0x100
	GAA_FLAG_INCLUDE_ALL_COMPARTMENTS    = 0x200
	GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER = 0x400
)

Flags for GetAdaptersAddresses, see https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses.

View Source
const (
	IF_TYPE_OTHER              = 1
	IF_TYPE_ETHERNET_CSMACD    = 6
	IF_TYPE_ISO88025_TOKENRING = 9
	IF_TYPE_PPP                = 23
	IF_TYPE_SOFTWARE_LOOPBACK  = 24
	IF_TYPE_ATM                = 37
	IF_TYPE_IEEE80211          = 71
	IF_TYPE_TUNNEL             = 131
	IF_TYPE_IEEE1394           = 144
)
View Source
const (
	IpPrefixOriginOther               = 0
	IpPrefixOriginManual              = 1
	IpPrefixOriginWellKnown           = 2
	IpPrefixOriginDhcp                = 3
	IpPrefixOriginRouterAdvertisement = 4
	IpPrefixOriginUnchanged           = 1 << 4
)

Enum NL_PREFIX_ORIGIN for IpAdapterUnicastAddress, see https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_prefix_origin

View Source
const (
	NlsoOther                      = 0
	NlsoManual                     = 1
	NlsoWellKnown                  = 2
	NlsoDhcp                       = 3
	NlsoLinkLayerAddress           = 4
	NlsoRandom                     = 5
	IpSuffixOriginOther            = 0
	IpSuffixOriginManual           = 1
	IpSuffixOriginWellKnown        = 2
	IpSuffixOriginDhcp             = 3
	IpSuffixOriginLinkLayerAddress = 4
	IpSuffixOriginRandom           = 5
	IpSuffixOriginUnchanged        = 1 << 4
)

Enum NL_SUFFIX_ORIGIN for IpAdapterUnicastAddress, see https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_suffix_origin

View Source
const (
	NldsInvalid          = 0
	NldsTentative        = 1
	NldsDuplicate        = 2
	NldsDeprecated       = 3
	NldsPreferred        = 4
	IpDadStateInvalid    = 0
	IpDadStateTentative  = 1
	IpDadStateDuplicate  = 2
	IpDadStateDeprecated = 3
	IpDadStatePreferred  = 4
)

Enum NL_DAD_STATE for IpAdapterUnicastAddress, see https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_dad_state

View Source
const (
	IfOperStatusUp             = 1
	IfOperStatusDown           = 2
	IfOperStatusTesting        = 3
	IfOperStatusUnknown        = 4
	IfOperStatusDormant        = 5
	IfOperStatusNotPresent     = 6
	IfOperStatusLowerLayerDown = 7
)
View Source
const (
	ENABLE_PROCESSED_INPUT        = 0x1
	ENABLE_LINE_INPUT             = 0x2
	ENABLE_ECHO_INPUT             = 0x4
	ENABLE_WINDOW_INPUT           = 0x8
	ENABLE_MOUSE_INPUT            = 0x10
	ENABLE_INSERT_MODE            = 0x20
	ENABLE_QUICK_EDIT_MODE        = 0x40
	ENABLE_EXTENDED_FLAGS         = 0x80
	ENABLE_AUTO_POSITION          = 0x100
	ENABLE_VIRTUAL_TERMINAL_INPUT = 0x200

	ENABLE_PROCESSED_OUTPUT            = 0x1
	ENABLE_WRAP_AT_EOL_OUTPUT          = 0x2
	ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4
	DISABLE_NEWLINE_AUTO_RETURN        = 0x8
	ENABLE_LVB_GRID_WORLDWIDE          = 0x10
)
View Source
const (
	// flags for JOBOBJECT_BASIC_LIMIT_INFORMATION.LimitFlags
	JOB_OBJECT_LIMIT_ACTIVE_PROCESS             = 0x00000008
	JOB_OBJECT_LIMIT_AFFINITY                   = 0x00000010
	JOB_OBJECT_LIMIT_BREAKAWAY_OK               = 0x00000800
	JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 0x00000400
	JOB_OBJECT_LIMIT_JOB_MEMORY                 = 0x00000200
	JOB_OBJECT_LIMIT_JOB_TIME                   = 0x00000004
	JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE          = 0x00002000
	JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME          = 0x00000040
	JOB_OBJECT_LIMIT_PRIORITY_CLASS             = 0x00000020
	JOB_OBJECT_LIMIT_PROCESS_MEMORY             = 0x00000100
	JOB_OBJECT_LIMIT_PROCESS_TIME               = 0x00000002
	JOB_OBJECT_LIMIT_SCHEDULING_CLASS           = 0x00000080
	JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK        = 0x00001000
	JOB_OBJECT_LIMIT_SUBSET_AFFINITY            = 0x00004000
	JOB_OBJECT_LIMIT_WORKINGSET                 = 0x00000001
)
View Source
const (
	// UIRestrictionsClass
	JOB_OBJECT_UILIMIT_DESKTOP          = 0x00000040
	JOB_OBJECT_UILIMIT_DISPLAYSETTINGS  = 0x00000010
	JOB_OBJECT_UILIMIT_EXITWINDOWS      = 0x00000080
	JOB_OBJECT_UILIMIT_GLOBALATOMS      = 0x00000020
	JOB_OBJECT_UILIMIT_HANDLES          = 0x00000001
	JOB_OBJECT_UILIMIT_READCLIPBOARD    = 0x00000002
	JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = 0x00000008
	JOB_OBJECT_UILIMIT_WRITECLIPBOARD   = 0x00000004
)
View Source
const (
	// JobObjectInformationClass for QueryInformationJobObject and SetInformationJobObject
	JobObjectAssociateCompletionPortInformation = 7
	JobObjectBasicAccountingInformation         = 1
	JobObjectBasicAndIoAccountingInformation    = 8
	JobObjectBasicLimitInformation              = 2
	JobObjectBasicProcessIdList                 = 3
	JobObjectBasicUIRestrictions                = 4
	JobObjectCpuRateControlInformation          = 15
	JobObjectEndOfJobTimeInformation            = 6
	JobObjectExtendedLimitInformation           = 9
	JobObjectGroupInformation                   = 11
	JobObjectGroupInformationEx                 = 14
	JobObjectLimitViolationInformation          = 13
	JobObjectLimitViolationInformation2         = 34
	JobObjectNetRateControlInformation          = 32
	JobObjectNotificationLimitInformation       = 12
	JobObjectNotificationLimitInformation2      = 33
	JobObjectSecurityLimitInformation           = 5
)
View Source
const (
	KF_FLAG_DEFAULT                          = 0x00000000
	KF_FLAG_FORCE_APP_DATA_REDIRECTION       = 0x00080000
	KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET = 0x00040000
	KF_FLAG_FORCE_PACKAGE_REDIRECTION        = 0x00020000
	KF_FLAG_NO_PACKAGE_REDIRECTION           = 0x00010000
	KF_FLAG_FORCE_APPCONTAINER_REDIRECTION   = 0x00020000
	KF_FLAG_NO_APPCONTAINER_REDIRECTION      = 0x00010000
	KF_FLAG_CREATE                           = 0x00008000
	KF_FLAG_DONT_VERIFY                      = 0x00004000
	KF_FLAG_DONT_UNEXPAND                    = 0x00002000
	KF_FLAG_NO_ALIAS                         = 0x00001000
	KF_FLAG_INIT                             = 0x00000800
	KF_FLAG_DEFAULT_PATH                     = 0x00000400
	KF_FLAG_NOT_PARENT_RELATIVE              = 0x00000200
	KF_FLAG_SIMPLE_IDLIST                    = 0x00000100
	KF_FLAG_ALIAS_ONLY                       = 0x80000000
)
View Source
const (
	EWX_LOGOFF          = 0x00000000
	EWX_SHUTDOWN        = 0x00000001
	EWX_REBOOT          = 0x00000002
	EWX_FORCE           = 0x00000004
	EWX_POWEROFF        = 0x00000008
	EWX_FORCEIFHUNG     = 0x00000010
	EWX_QUICKRESOLVE    = 0x00000020
	EWX_RESTARTAPPS     = 0x00000040
	EWX_HYBRID_SHUTDOWN = 0x00400000
	EWX_BOOTOPTIONS     = 0x01000000

	SHTDN_REASON_FLAG_COMMENT_REQUIRED          = 0x01000000
	SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED = 0x02000000
	SHTDN_REASON_FLAG_CLEAN_UI                  = 0x04000000
	SHTDN_REASON_FLAG_DIRTY_UI                  = 0x08000000
	SHTDN_REASON_FLAG_USER_DEFINED              = 0x40000000
	SHTDN_REASON_FLAG_PLANNED                   = 0x80000000
	SHTDN_REASON_MAJOR_OTHER                    = 0x00000000
	SHTDN_REASON_MAJOR_NONE                     = 0x00000000
	SHTDN_REASON_MAJOR_HARDWARE                 = 0x00010000
	SHTDN_REASON_MAJOR_OPERATINGSYSTEM          = 0x00020000
	SHTDN_REASON_MAJOR_SOFTWARE                 = 0x00030000
	SHTDN_REASON_MAJOR_APPLICATION              = 0x00040000
	SHTDN_REASON_MAJOR_SYSTEM                   = 0x00050000
	SHTDN_REASON_MAJOR_POWER                    = 0x00060000
	SHTDN_REASON_MAJOR_LEGACY_API               = 0x00070000
	SHTDN_REASON_MINOR_OTHER                    = 0x00000000
	SHTDN_REASON_MINOR_NONE                     = 0x000000ff
	SHTDN_REASON_MINOR_MAINTENANCE              = 0x00000001
	SHTDN_REASON_MINOR_INSTALLATION             = 0x00000002
	SHTDN_REASON_MINOR_UPGRADE                  = 0x00000003
	SHTDN_REASON_MINOR_RECONFIG                 = 0x00000004
	SHTDN_REASON_MINOR_HUNG                     = 0x00000005
	SHTDN_REASON_MINOR_UNSTABLE                 = 0x00000006
	SHTDN_REASON_MINOR_DISK                     = 0x00000007
	SHTDN_REASON_MINOR_PROCESSOR                = 0x00000008
	SHTDN_REASON_MINOR_NETWORKCARD              = 0x00000009
	SHTDN_REASON_MINOR_POWER_SUPPLY             = 0x0000000a
	SHTDN_REASON_MINOR_CORDUNPLUGGED            = 0x0000000b
	SHTDN_REASON_MINOR_ENVIRONMENT              = 0x0000000c
	SHTDN_REASON_MINOR_HARDWARE_DRIVER          = 0x0000000d
	SHTDN_REASON_MINOR_OTHERDRIVER              = 0x0000000e
	SHTDN_REASON_MINOR_BLUESCREEN               = 0x0000000F
	SHTDN_REASON_MINOR_SERVICEPACK              = 0x00000010
	SHTDN_REASON_MINOR_HOTFIX                   = 0x00000011
	SHTDN_REASON_MINOR_SECURITYFIX              = 0x00000012
	SHTDN_REASON_MINOR_SECURITY                 = 0x00000013
	SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY     = 0x00000014
	SHTDN_REASON_MINOR_WMI                      = 0x00000015
	SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL    = 0x00000016
	SHTDN_REASON_MINOR_HOTFIX_UNINSTALL         = 0x00000017
	SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL    = 0x00000018
	SHTDN_REASON_MINOR_MMC                      = 0x00000019
	SHTDN_REASON_MINOR_SYSTEMRESTORE            = 0x0000001a
	SHTDN_REASON_MINOR_TERMSRV                  = 0x00000020
	SHTDN_REASON_MINOR_DC_PROMOTION             = 0x00000021
	SHTDN_REASON_MINOR_DC_DEMOTION              = 0x00000022
	SHTDN_REASON_UNKNOWN                        = SHTDN_REASON_MINOR_NONE
	SHTDN_REASON_LEGACY_API                     = SHTDN_REASON_MAJOR_LEGACY_API | SHTDN_REASON_FLAG_PLANNED
	SHTDN_REASON_VALID_BIT_MASK                 = 0xc0ffffff

	SHUTDOWN_NORETRY = 0x1
)
View Source
const (
	GET_MODULE_HANDLE_EX_FLAG_PIN                = 1
	GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 2
	GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS       = 4
)

Flags used for GetModuleHandleEx

View Source
const (
	MUI_LANGUAGE_ID                    = 0x4
	MUI_LANGUAGE_NAME                  = 0x8
	MUI_MERGE_SYSTEM_FALLBACK          = 0x10
	MUI_MERGE_USER_FALLBACK            = 0x20
	MUI_UI_FALLBACK                    = MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK
	MUI_THREAD_LANGUAGES               = 0x40
	MUI_CONSOLE_FILTER                 = 0x100
	MUI_COMPLEX_SCRIPT_FILTER          = 0x200
	MUI_RESET_FILTERS                  = 0x001
	MUI_USER_PREFERRED_UI_LANGUAGES    = 0x10
	MUI_USE_INSTALLED_LANGUAGES        = 0x20
	MUI_USE_SEARCH_ALL_LANGUAGES       = 0x40
	MUI_LANG_NEUTRAL_PE_FILE           = 0x100
	MUI_NON_LANG_NEUTRAL_FILE          = 0x200
	MUI_MACHINE_LANGUAGE_SETTINGS      = 0x400
	MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL  = 0x001
	MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN = 0x002
	MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI  = 0x004
	MUI_QUERY_TYPE                     = 0x001
	MUI_QUERY_CHECKSUM                 = 0x002
	MUI_QUERY_LANGUAGE_NAME            = 0x004
	MUI_QUERY_RESOURCE_TYPES           = 0x008
	MUI_FILEINFO_VERSION               = 0x001

	MUI_FULL_LANGUAGE      = 0x01
	MUI_PARTIAL_LANGUAGE   = 0x02
	MUI_LIP_LANGUAGE       = 0x04
	MUI_LANGUAGE_INSTALLED = 0x20
	MUI_LANGUAGE_LICENSED  = 0x40
)

MUI function flag values

View Source
const (
	FileBasicInfo                  = 0
	FileStandardInfo               = 1
	FileNameInfo                   = 2
	FileRenameInfo                 = 3
	FileDispositionInfo            = 4
	FileAllocationInfo             = 5
	FileEndOfFileInfo              = 6
	FileStreamInfo                 = 7
	FileCompressionInfo            = 8
	FileAttributeTagInfo           = 9
	FileIdBothDirectoryInfo        = 10
	FileIdBothDirectoryRestartInfo = 11
	FileIoPriorityHintInfo         = 12
	FileRemoteProtocolInfo         = 13
	FileFullDirectoryInfo          = 14
	FileFullDirectoryRestartInfo   = 15
	FileStorageInfo                = 16
	FileAlignmentInfo              = 17
	FileIdInfo                     = 18
	FileIdExtdDirectoryInfo        = 19
	FileIdExtdDirectoryRestartInfo = 20
	FileDispositionInfoEx          = 21
	FileRenameInfoEx               = 22
	FileCaseSensitiveInfo          = 23
	FileNormalizedNameInfo         = 24
)

FILE_INFO_BY_HANDLE_CLASS constants for SetFileInformationByHandle/GetFileInformationByHandleEx

View Source
const (
	DONT_RESOLVE_DLL_REFERENCES               = 0x1
	LOAD_LIBRARY_AS_DATAFILE                  = 0x2
	LOAD_WITH_ALTERED_SEARCH_PATH             = 0x8
	LOAD_IGNORE_CODE_AUTHZ_LEVEL              = 0x10
	LOAD_LIBRARY_AS_IMAGE_RESOURCE            = 0x20
	LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE        = 0x40
	LOAD_LIBRARY_REQUIRE_SIGNED_TARGET        = 0x80
	LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR          = 0x100
	LOAD_LIBRARY_SEARCH_APPLICATION_DIR       = 0x200
	LOAD_LIBRARY_SEARCH_USER_DIRS             = 0x400
	LOAD_LIBRARY_SEARCH_SYSTEM32              = 0x800
	LOAD_LIBRARY_SEARCH_DEFAULT_DIRS          = 0x1000
	LOAD_LIBRARY_SAFE_CURRENT_DIRS            = 0x00002000
	LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = 0x00004000
	LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY      = 0x00008000
)

LoadLibrary flags for determining from where to search for a DLL

View Source
const (
	// REG_NOTIFY_CHANGE_NAME notifies the caller if a subkey is added or deleted.
	REG_NOTIFY_CHANGE_NAME = 0x00000001

	// REG_NOTIFY_CHANGE_ATTRIBUTES notifies the caller of changes to the attributes of the key, such as the security descriptor information.
	REG_NOTIFY_CHANGE_ATTRIBUTES = 0x00000002

	// REG_NOTIFY_CHANGE_LAST_SET notifies the caller of changes to a value of the key. This can include adding or deleting a value, or changing an existing value.
	REG_NOTIFY_CHANGE_LAST_SET = 0x00000004

	// REG_NOTIFY_CHANGE_SECURITY notifies the caller of changes to the security descriptor of the key.
	REG_NOTIFY_CHANGE_SECURITY = 0x00000008

	// REG_NOTIFY_THREAD_AGNOSTIC indicates that the lifetime of the registration must not be tied to the lifetime of the thread issuing the RegNotifyChangeKeyValue call. Note: This flag value is only supported in Windows 8 and later.
	REG_NOTIFY_THREAD_AGNOSTIC = 0x10000000
)

RegNotifyChangeKeyValue notifyFilter flags.

View Source
const (
	OBJ_INHERIT                       = 0x00000002
	OBJ_PERMANENT                     = 0x00000010
	OBJ_EXCLUSIVE                     = 0x00000020
	OBJ_CASE_INSENSITIVE              = 0x00000040
	OBJ_OPENIF                        = 0x00000080
	OBJ_OPENLINK                      = 0x00000100
	OBJ_KERNEL_HANDLE                 = 0x00000200
	OBJ_FORCE_ACCESS_CHECK            = 0x00000400
	OBJ_IGNORE_IMPERSONATED_DEVICEMAP = 0x00000800
	OBJ_DONT_REPARSE                  = 0x00001000
	OBJ_VALID_ATTRIBUTES              = 0x00001FF2
)

Values for the Attributes member of OBJECT_ATTRIBUTES.

View Source
const (
	// CreateDisposition flags for NtCreateFile and NtCreateNamedPipeFile.
	FILE_SUPERSEDE           = 0x00000000
	FILE_OPEN                = 0x00000001
	FILE_CREATE              = 0x00000002
	FILE_OPEN_IF             = 0x00000003
	FILE_OVERWRITE           = 0x00000004
	FILE_OVERWRITE_IF        = 0x00000005
	FILE_MAXIMUM_DISPOSITION = 0x00000005

	// CreateOptions flags for NtCreateFile and NtCreateNamedPipeFile.
	FILE_DIRECTORY_FILE            = 0x00000001
	FILE_WRITE_THROUGH             = 0x00000002
	FILE_SEQUENTIAL_ONLY           = 0x00000004
	FILE_NO_INTERMEDIATE_BUFFERING = 0x00000008
	FILE_SYNCHRONOUS_IO_ALERT      = 0x00000010
	FILE_SYNCHRONOUS_IO_NONALERT   = 0x00000020
	FILE_NON_DIRECTORY_FILE        = 0x00000040
	FILE_CREATE_TREE_CONNECTION    = 0x00000080
	FILE_COMPLETE_IF_OPLOCKED      = 0x00000100
	FILE_NO_EA_KNOWLEDGE           = 0x00000200
	FILE_OPEN_REMOTE_INSTANCE      = 0x00000400
	FILE_RANDOM_ACCESS             = 0x00000800
	FILE_DELETE_ON_CLOSE           = 0x00001000
	FILE_OPEN_BY_FILE_ID           = 0x00002000
	FILE_OPEN_FOR_BACKUP_INTENT    = 0x00004000
	FILE_NO_COMPRESSION            = 0x00008000
	FILE_OPEN_REQUIRING_OPLOCK     = 0x00010000
	FILE_DISALLOW_EXCLUSIVE        = 0x00020000
	FILE_RESERVE_OPFILTER          = 0x00100000
	FILE_OPEN_REPARSE_POINT        = 0x00200000
	FILE_OPEN_NO_RECALL            = 0x00400000
	FILE_OPEN_FOR_FREE_SPACE_QUERY = 0x00800000

	FILE_PIPE_BYTE_STREAM_TYPE = 0x00000000
	FILE_PIPE_MESSAGE_TYPE     = 0x00000001

	FILE_PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000
	FILE_PIPE_REJECT_REMOTE_CLIENTS = 0x00000002

	FILE_PIPE_TYPE_VALID_MASK = 0x00000003

	FILE_PIPE_BYTE_STREAM_MODE = 0x00000000
	FILE_PIPE_MESSAGE_MODE     = 0x00000001

	FILE_PIPE_QUEUE_OPERATION    = 0x00000000
	FILE_PIPE_COMPLETE_OPERATION = 0x00000001

	FILE_PIPE_INBOUND     = 0x00000000
	FILE_PIPE_OUTBOUND    = 0x00000001
	FILE_PIPE_FULL_DUPLEX = 0x00000002

	FILE_PIPE_DISCONNECTED_STATE = 0x00000001
	FILE_PIPE_LISTENING_STATE    = 0x00000002
	FILE_PIPE_CONNECTED_STATE    = 0x00000003
	FILE_PIPE_CLOSING_STATE      = 0x00000004

	FILE_PIPE_CLIENT_END = 0x00000000
	FILE_PIPE_SERVER_END = 0x00000001
)
View Source
const (
	// FileInformationClass for NtSetInformationFile
	FileBasicInformation                         = 4
	FileRenameInformation                        = 10
	FileDispositionInformation                   = 13
	FilePositionInformation                      = 14
	FileEndOfFileInformation                     = 20
	FileValidDataLengthInformation               = 39
	FileShortNameInformation                     = 40
	FileIoPriorityHintInformation                = 43
	FileReplaceCompletionInformation             = 61
	FileDispositionInformationEx                 = 64
	FileCaseSensitiveInformation                 = 71
	FileLinkInformation                          = 72
	FileCaseSensitiveInformationForceAccessCheck = 75
	FileKnownFolderInformation                   = 76

	// Flags for FILE_RENAME_INFORMATION
	FILE_RENAME_REPLACE_IF_EXISTS                    = 0x00000001
	FILE_RENAME_POSIX_SEMANTICS                      = 0x00000002
	FILE_RENAME_SUPPRESS_PIN_STATE_INHERITANCE       = 0x00000004
	FILE_RENAME_SUPPRESS_STORAGE_RESERVE_INHERITANCE = 0x00000008
	FILE_RENAME_NO_INCREASE_AVAILABLE_SPACE          = 0x00000010
	FILE_RENAME_NO_DECREASE_AVAILABLE_SPACE          = 0x00000020
	FILE_RENAME_PRESERVE_AVAILABLE_SPACE             = 0x00000030
	FILE_RENAME_IGNORE_READONLY_ATTRIBUTE            = 0x00000040
	FILE_RENAME_FORCE_RESIZE_TARGET_SR               = 0x00000080
	FILE_RENAME_FORCE_RESIZE_SOURCE_SR               = 0x00000100
	FILE_RENAME_FORCE_RESIZE_SR                      = 0x00000180

	// Flags for FILE_DISPOSITION_INFORMATION_EX
	FILE_DISPOSITION_DO_NOT_DELETE             = 0x00000000
	FILE_DISPOSITION_DELETE                    = 0x00000001
	FILE_DISPOSITION_POSIX_SEMANTICS           = 0x00000002
	FILE_DISPOSITION_FORCE_IMAGE_SECTION_CHECK = 0x00000004
	FILE_DISPOSITION_ON_CLOSE                  = 0x00000008
	FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE = 0x00000010

	// Flags for FILE_CASE_SENSITIVE_INFORMATION
	FILE_CS_FLAG_CASE_SENSITIVE_DIR = 0x00000001

	// Flags for FILE_LINK_INFORMATION
	FILE_LINK_REPLACE_IF_EXISTS                    = 0x00000001
	FILE_LINK_POSIX_SEMANTICS                      = 0x00000002
	FILE_LINK_SUPPRESS_STORAGE_RESERVE_INHERITANCE = 0x00000008
	FILE_LINK_NO_INCREASE_AVAILABLE_SPACE          = 0x00000010
	FILE_LINK_NO_DECREASE_AVAILABLE_SPACE          = 0x00000020
	FILE_LINK_PRESERVE_AVAILABLE_SPACE             = 0x00000030
	FILE_LINK_IGNORE_READONLY_ATTRIBUTE            = 0x00000040
	FILE_LINK_FORCE_RESIZE_TARGET_SR               = 0x00000080
	FILE_LINK_FORCE_RESIZE_SOURCE_SR               = 0x00000100
	FILE_LINK_FORCE_RESIZE_SR                      = 0x00000180
)
View Source
const (
	ProcessBasicInformation = iota
	ProcessQuotaLimits
	ProcessIoCounters
	ProcessVmCounters
	ProcessTimes
	ProcessBasePriority
	ProcessRaisePriority
	ProcessDebugPort
	ProcessExceptionPort
	ProcessAccessToken
	ProcessLdtInformation
	ProcessLdtSize
	ProcessDefaultHardErrorMode
	ProcessIoPortHandlers
	ProcessPooledUsageAndLimits
	ProcessWorkingSetWatch
	ProcessUserModeIOPL
	ProcessEnableAlignmentFaultFixup
	ProcessPriorityClass
	ProcessWx86Information
	ProcessHandleCount
	ProcessAffinityMask
	ProcessPriorityBoost
	ProcessDeviceMap
	ProcessSessionInformation
	ProcessForegroundInformation
	ProcessWow64Information
	ProcessImageFileName
	ProcessLUIDDeviceMapsEnabled
	ProcessBreakOnTermination
	ProcessDebugObjectHandle
	ProcessDebugFlags
	ProcessHandleTracing
	ProcessIoPriority
	ProcessExecuteFlags
	ProcessTlsInformation
	ProcessCookie
	ProcessImageInformation
	ProcessCycleTime
	ProcessPagePriority
	ProcessInstrumentationCallback
	ProcessThreadStackAllocation
	ProcessWorkingSetWatchEx
	ProcessImageFileNameWin32
	ProcessImageFileMapping
	ProcessAffinityUpdateMode
	ProcessMemoryAllocationMode
	ProcessGroupInformation
	ProcessTokenVirtualizationEnabled
	ProcessConsoleHostProcess
	ProcessWindowInformation
	ProcessHandleInformation
	ProcessMitigationPolicy
	ProcessDynamicFunctionTableInformation
	ProcessHandleCheckingMode
	ProcessKeepAliveCount
	ProcessRevokeFileHandles
	ProcessWorkingSetControl
	ProcessHandleTable
	ProcessCheckStackExtentsMode
	ProcessCommandLineInformation
	ProcessProtectionInformation
	ProcessMemoryExhaustion
	ProcessFaultInformation
	ProcessTelemetryIdInformation
	ProcessCommitReleaseInformation
	ProcessDefaultCpuSetsInformation
	ProcessAllowedCpuSetsInformation
	ProcessSubsystemProcess
	ProcessJobMemoryInformation
	ProcessInPrivate
	ProcessRaiseUMExceptionOnInvalidHandleClose
	ProcessIumChallengeResponse
	ProcessChildProcessInformation
	ProcessHighGraphicsPriorityInformation
	ProcessSubsystemInformation
	ProcessEnergyValues
	ProcessActivityThrottleState
	ProcessActivityThrottlePolicy
	ProcessWin32kSyscallFilterInformation
	ProcessDisableSystemAllowedCpuSets
	ProcessWakeInformation
	ProcessEnergyTrackingState
	ProcessManageWritesToExecutableMemory
	ProcessCaptureTrustletLiveDump
	ProcessTelemetryCoverage
	ProcessEnclaveInformation
	ProcessEnableReadWriteVmLogging
	ProcessUptimeInformation
	ProcessImageSection
	ProcessDebugAuthInformation
	ProcessSystemResourceManagement
	ProcessSequenceNumber
	ProcessLoaderDetour
	ProcessSecurityDomainInformation
	ProcessCombineSecurityDomainsInformation
	ProcessEnableLogging
	ProcessLeapSecondInformation
	ProcessFiberShadowStackAllocation
	ProcessFreeFiberShadowStackAllocation
	ProcessAltSystemCallInformation
	ProcessDynamicEHContinuationTargets
	ProcessDynamicEnforcedCetCompatibleRanges
)

ProcessInformationClasses for NtQueryInformationProcess and NtSetInformationProcess.

View Source
const (
	SystemBasicInformation = iota
	SystemProcessorInformation
	SystemPerformanceInformation
	SystemTimeOfDayInformation
	SystemPathInformation
	SystemProcessInformation
	SystemCallCountInformation
	SystemDeviceInformation
	SystemProcessorPerformanceInformation
	SystemFlagsInformation
	SystemCallTimeInformation
	SystemModuleInformation
	SystemLocksInformation
	SystemStackTraceInformation
	SystemPagedPoolInformation
	SystemNonPagedPoolInformation
	SystemHandleInformation
	SystemObjectInformation
	SystemPageFileInformation
	SystemVdmInstemulInformation
	SystemVdmBopInformation
	SystemFileCacheInformation
	SystemPoolTagInformation
	SystemInterruptInformation
	SystemDpcBehaviorInformation
	SystemFullMemoryInformation
	SystemLoadGdiDriverInformation
	SystemUnloadGdiDriverInformation
	SystemTimeAdjustmentInformation
	SystemSummaryMemoryInformation
	SystemMirrorMemoryInformation
	SystemPerformanceTraceInformation

	SystemExceptionInformation
	SystemCrashDumpStateInformation
	SystemKernelDebuggerInformation
	SystemContextSwitchInformation
	SystemRegistryQuotaInformation
	SystemExtendServiceTableInformation
	SystemPrioritySeperation
	SystemVerifierAddDriverInformation
	SystemVerifierRemoveDriverInformation
	SystemProcessorIdleInformation
	SystemLegacyDriverInformation
	SystemCurrentTimeZoneInformation
	SystemLookasideInformation
	SystemTimeSlipNotification
	SystemSessionCreate
	SystemSessionDetach
	SystemSessionInformation
	SystemRangeStartInformation
	SystemVerifierInformation
	SystemVerifierThunkExtend
	SystemSessionProcessInformation
	SystemLoadGdiDriverInSystemSpace
	SystemNumaProcessorMap
	SystemPrefetcherInformation
	SystemExtendedProcessInformation
	SystemRecommendedSharedDataAlignment
	SystemComPlusPackage
	SystemNumaAvailableMemory
	SystemProcessorPowerInformation
	SystemEmulationBasicInformation
	SystemEmulationProcessorInformation
	SystemExtendedHandleInformation
	SystemLostDelayedWriteInformation
	SystemBigPoolInformation
	SystemSessionPoolTagInformation
	SystemSessionMappedViewInformation
	SystemHotpatchInformation
	SystemObjectSecurityMode
	SystemWatchdogTimerHandler
	SystemWatchdogTimerInformation
	SystemLogicalProcessorInformation
	SystemWow64SharedInformationObsolete
	SystemRegisterFirmwareTableInformationHandler
	SystemFirmwareTableInformation
	SystemModuleInformationEx
	SystemVerifierTriageInformation
	SystemSuperfetchInformation
	SystemMemoryListInformation
	SystemFileCacheInformationEx
	SystemThreadPriorityClientIdInformation
	SystemProcessorIdleCycleTimeInformation
	SystemVerifierCancellationInformation
	SystemProcessorPowerInformationEx
	SystemRefTraceInformation
	SystemSpecialPoolInformation
	SystemProcessIdInformation
	SystemErrorPortInformation
	SystemBootEnvironmentInformation
	SystemHypervisorInformation
	SystemVerifierInformationEx
	SystemTimeZoneInformation
	SystemImageFileExecutionOptionsInformation
	SystemCoverageInformation
	SystemPrefetchPatchInformation
	SystemVerifierFaultsInformation
	SystemSystemPartitionInformation
	SystemSystemDiskInformation
	SystemProcessorPerformanceDistribution
	SystemNumaProximityNodeInformation
	SystemDynamicTimeZoneInformation
	SystemCodeIntegrityInformation
	SystemProcessorMicrocodeUpdateInformation
	SystemProcessorBrandString
	SystemVirtualAddressInformation
	SystemLogicalProcessorAndGroupInformation
	SystemProcessorCycleTimeInformation
	SystemStoreInformation
	SystemRegistryAppendString
	SystemAitSamplingValue
	SystemVhdBootInformation
	SystemCpuQuotaInformation
	SystemNativeBasicInformation

	SystemLowPriorityIoInformation
	SystemTpmBootEntropyInformation
	SystemVerifierCountersInformation
	SystemPagedPoolInformationEx
	SystemSystemPtesInformationEx
	SystemNodeDistanceInformation
	SystemAcpiAuditInformation
	SystemBasicPerformanceInformation
	SystemQueryPerformanceCounterInformation
	SystemSessionBigPoolInformation
	SystemBootGraphicsInformation
	SystemScrubPhysicalMemoryInformation
	SystemBadPageInformation
	SystemProcessorProfileControlArea
	SystemCombinePhysicalMemoryInformation
	SystemEntropyInterruptTimingCallback
	SystemConsoleInformation
	SystemPlatformBinaryInformation
	SystemThrottleNotificationInformation
	SystemHypervisorProcessorCountInformation
	SystemDeviceDataInformation
	SystemDeviceDataEnumerationInformation
	SystemMemoryTopologyInformation
	SystemMemoryChannelInformation
	SystemBootLogoInformation
	SystemProcessorPerformanceInformationEx

	SystemSecureBootPolicyInformation
	SystemPageFileInformationEx
	SystemSecureBootInformation
	SystemEntropyInterruptTimingRawInformation
	SystemPortableWorkspaceEfiLauncherInformation
	SystemFullProcessInformation
	SystemKernelDebuggerInformationEx
	SystemBootMetadataInformation
	SystemSoftRebootInformation
	SystemElamCertificateInformation
	SystemOfflineDumpConfigInformation
	SystemProcessorFeaturesInformation
	SystemRegistryReconciliationInformation
	SystemEdidInformation
	SystemManufacturingInformation
	SystemEnergyEstimationConfigInformation
	SystemHypervisorDetailInformation
	SystemProcessorCycleStatsInformation
	SystemVmGenerationCountInformation
	SystemTrustedPlatformModuleInformation
	SystemKernelDebuggerFlags
	SystemCodeIntegrityPolicyInformation
	SystemIsolatedUserModeInformation
	SystemHardwareSecurityTestInterfaceResultsInformation
	SystemSingleModuleInformation
	SystemAllowedCpuSetsInformation
	SystemDmaProtectionInformation
	SystemInterruptCpuSetsInformation
	SystemSecureBootPolicyFullInformation
	SystemCodeIntegrityPolicyFullInformation
	SystemAffinitizedInterruptProcessorInformation
	SystemRootSiloInformation
)

SystemInformationClasses for NtQuerySystemInformation and NtSetSystemInformation

View Source
const (
	LMEM_FIXED          = 0x0
	LMEM_MOVEABLE       = 0x2
	LMEM_NOCOMPACT      = 0x10
	LMEM_NODISCARD      = 0x20
	LMEM_ZEROINIT       = 0x40
	LMEM_MODIFY         = 0x80
	LMEM_DISCARDABLE    = 0xf00
	LMEM_VALID_FLAGS    = 0xf72
	LMEM_INVALID_HANDLE = 0x8000
	LHND                = LMEM_MOVEABLE | LMEM_ZEROINIT
	LPTR                = LMEM_FIXED | LMEM_ZEROINIT
	NONZEROLHND         = LMEM_MOVEABLE
	NONZEROLPTR         = LMEM_FIXED
)

Constants for LocalAlloc flags.

View Source
const (
	PIPE_ACCESS_INBOUND  = 0x1
	PIPE_ACCESS_OUTBOUND = 0x2
	PIPE_ACCESS_DUPLEX   = 0x3

	PIPE_CLIENT_END = 0x0
	PIPE_SERVER_END = 0x1

	PIPE_WAIT                  = 0x0
	PIPE_NOWAIT                = 0x1
	PIPE_READMODE_BYTE         = 0x0
	PIPE_READMODE_MESSAGE      = 0x2
	PIPE_TYPE_BYTE             = 0x0
	PIPE_TYPE_MESSAGE          = 0x4
	PIPE_ACCEPT_REMOTE_CLIENTS = 0x0
	PIPE_REJECT_REMOTE_CLIENTS = 0x8

	PIPE_UNLIMITED_INSTANCES = 255
)

Constants for the CreateNamedPipe-family of functions.

View Source
const (
	SECURITY_ANONYMOUS      = SecurityAnonymous << 16
	SECURITY_IDENTIFICATION = SecurityIdentification << 16
	SECURITY_IMPERSONATION  = SecurityImpersonation << 16
	SECURITY_DELEGATION     = SecurityDelegation << 16

	SECURITY_CONTEXT_TRACKING = 0x40000
	SECURITY_EFFECTIVE_ONLY   = 0x80000

	SECURITY_SQOS_PRESENT     = 0x100000
	SECURITY_VALID_SQOS_FLAGS = 0x1f0000
)

Constants for security attributes when opening named pipes.

View Source
const (
	CLSCTX_INPROC_SERVER          = 0x1
	CLSCTX_INPROC_HANDLER         = 0x2
	CLSCTX_LOCAL_SERVER           = 0x4
	CLSCTX_INPROC_SERVER16        = 0x8
	CLSCTX_REMOTE_SERVER          = 0x10
	CLSCTX_INPROC_HANDLER16       = 0x20
	CLSCTX_RESERVED1              = 0x40
	CLSCTX_RESERVED2              = 0x80
	CLSCTX_RESERVED3              = 0x100
	CLSCTX_RESERVED4              = 0x200
	CLSCTX_NO_CODE_DOWNLOAD       = 0x400
	CLSCTX_RESERVED5              = 0x800
	CLSCTX_NO_CUSTOM_MARSHAL      = 0x1000
	CLSCTX_ENABLE_CODE_DOWNLOAD   = 0x2000
	CLSCTX_NO_FAILURE_LOG         = 0x4000
	CLSCTX_DISABLE_AAA            = 0x8000
	CLSCTX_ENABLE_AAA             = 0x10000
	CLSCTX_FROM_DEFAULT_CONTEXT   = 0x20000
	CLSCTX_ACTIVATE_32_BIT_SERVER = 0x40000
	CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000
	CLSCTX_ENABLE_CLOAKING        = 0x100000
	CLSCTX_APPCONTAINER           = 0x400000
	CLSCTX_ACTIVATE_AAA_AS_IU     = 0x800000
	CLSCTX_PS_DLL                 = 0x80000000

	COINIT_MULTITHREADED     = 0x0
	COINIT_APARTMENTTHREADED = 0x2
	COINIT_DISABLE_OLE1DDE   = 0x4
	COINIT_SPEED_OVER_MEMORY = 0x8
)
View Source
const (
	DWMWA_NCRENDERING_ENABLED            = 1
	DWMWA_NCRENDERING_POLICY             = 2
	DWMWA_TRANSITIONS_FORCEDISABLED      = 3
	DWMWA_ALLOW_NCPAINT                  = 4
	DWMWA_CAPTION_BUTTON_BOUNDS          = 5
	DWMWA_NONCLIENT_RTL_LAYOUT           = 6
	DWMWA_FORCE_ICONIC_REPRESENTATION    = 7
	DWMWA_FLIP3D_POLICY                  = 8
	DWMWA_EXTENDED_FRAME_BOUNDS          = 9
	DWMWA_HAS_ICONIC_BITMAP              = 10
	DWMWA_DISALLOW_PEEK                  = 11
	DWMWA_EXCLUDED_FROM_PEEK             = 12
	DWMWA_CLOAK                          = 13
	DWMWA_CLOAKED                        = 14
	DWMWA_FREEZE_REPRESENTATION          = 15
	DWMWA_PASSIVE_UPDATE_MODE            = 16
	DWMWA_USE_HOSTBACKDROPBRUSH          = 17
	DWMWA_USE_IMMERSIVE_DARK_MODE        = 20
	DWMWA_WINDOW_CORNER_PREFERENCE       = 33
	DWMWA_BORDER_COLOR                   = 34
	DWMWA_CAPTION_COLOR                  = 35
	DWMWA_TEXT_COLOR                     = 36
	DWMWA_VISIBLE_FRAME_BORDER_THICKNESS = 37
)
View Source
const (
	KLF_ACTIVATE      = 0x00000001
	KLF_SUBSTITUTE_OK = 0x00000002
	KLF_REORDER       = 0x00000008
	KLF_REPLACELANG   = 0x00000010
	KLF_NOTELLSHELL   = 0x00000080
	KLF_SETFORPROCESS = 0x00000100
)

Keyboard Layout Flags. See https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadkeyboardlayoutw

View Source
const (
	FACILITY_NULL                                                                           = 0
	FACILITY_RPC                                                                            = 1
	FACILITY_DISPATCH                                                                       = 2
	FACILITY_STORAGE                                                                        = 3
	FACILITY_ITF                                                                            = 4
	FACILITY_WIN32                                                                          = 7
	FACILITY_WINDOWS                                                                        = 8
	FACILITY_SSPI                                                                           = 9
	FACILITY_SECURITY                                                                       = 9
	FACILITY_CONTROL                                                                        = 10
	FACILITY_CERT                                                                           = 11
	FACILITY_INTERNET                                                                       = 12
	FACILITY_MEDIASERVER                                                                    = 13
	FACILITY_MSMQ                                                                           = 14
	FACILITY_SETUPAPI                                                                       = 15
	FACILITY_SCARD                                                                          = 16
	FACILITY_COMPLUS                                                                        = 17
	FACILITY_AAF                                                                            = 18
	FACILITY_URT                                                                            = 19
	FACILITY_ACS                                                                            = 20
	FACILITY_DPLAY                                                                          = 21
	FACILITY_UMI                                                                            = 22
	FACILITY_SXS                                                                            = 23
	FACILITY_WINDOWS_CE                                                                     = 24
	FACILITY_HTTP                                                                           = 25
	FACILITY_USERMODE_COMMONLOG                                                             = 26
	FACILITY_WER                                                                            = 27
	FACILITY_USERMODE_FILTER_MANAGER                                                        = 31
	FACILITY_BACKGROUNDCOPY                                                                 = 32
	FACILITY_CONFIGURATION                                                                  = 33
	FACILITY_WIA                                                                            = 33
	FACILITY_STATE_MANAGEMENT                                                               = 34
	FACILITY_METADIRECTORY                                                                  = 35
	FACILITY_WINDOWSUPDATE                                                                  = 36
	FACILITY_DIRECTORYSERVICE                                                               = 37
	FACILITY_GRAPHICS                                                                       = 38
	FACILITY_SHELL                                                                          = 39
	FACILITY_NAP                                                                            = 39
	FACILITY_TPM_SERVICES                                                                   = 40
	FACILITY_TPM_SOFTWARE                                                                   = 41
	FACILITY_UI                                                                             = 42
	FACILITY_XAML                                                                           = 43
	FACILITY_ACTION_QUEUE                                                                   = 44
	FACILITY_PLA                                                                            = 48
	FACILITY_WINDOWS_SETUP                                                                  = 48
	FACILITY_FVE                                                                            = 49
	FACILITY_FWP                                                                            = 50
	FACILITY_WINRM                                                                          = 51
	FACILITY_NDIS                                                                           = 52
	FACILITY_USERMODE_HYPERVISOR                                                            = 53
	FACILITY_CMI                                                                            = 54
	FACILITY_USERMODE_VIRTUALIZATION                                                        = 55
	FACILITY_USERMODE_VOLMGR                                                                = 56
	FACILITY_BCD                                                                            = 57
	FACILITY_USERMODE_VHD                                                                   = 58
	FACILITY_USERMODE_HNS                                                                   = 59
	FACILITY_SDIAG                                                                          = 60
	FACILITY_WEBSERVICES                                                                    = 61
	FACILITY_WINPE                                                                          = 61
	FACILITY_WPN                                                                            = 62
	FACILITY_WINDOWS_STORE                                                                  = 63
	FACILITY_INPUT                                                                          = 64
	FACILITY_EAP                                                                            = 66
	FACILITY_WINDOWS_DEFENDER                                                               = 80
	FACILITY_OPC                                                                            = 81
	FACILITY_XPS                                                                            = 82
	FACILITY_MBN                                                                            = 84
	FACILITY_POWERSHELL                                                                     = 84
	FACILITY_RAS                                                                            = 83
	FACILITY_P2P_INT                                                                        = 98
	FACILITY_P2P                                                                            = 99
	FACILITY_DAF                                                                            = 100
	FACILITY_BLUETOOTH_ATT                                                                  = 101
	FACILITY_AUDIO                                                                          = 102
	FACILITY_STATEREPOSITORY                                                                = 103
	FACILITY_VISUALCPP                                                                      = 109
	FACILITY_SCRIPT                                                                         = 112
	FACILITY_PARSE                                                                          = 113
	FACILITY_BLB                                                                            = 120
	FACILITY_BLB_CLI                                                                        = 121
	FACILITY_WSBAPP                                                                         = 122
	FACILITY_BLBUI                                                                          = 128
	FACILITY_USN                                                                            = 129
	FACILITY_USERMODE_VOLSNAP                                                               = 130
	FACILITY_TIERING                                                                        = 131
	FACILITY_WSB_ONLINE                                                                     = 133
	FACILITY_ONLINE_ID                                                                      = 134
	FACILITY_DEVICE_UPDATE_AGENT                                                            = 135
	FACILITY_DRVSERVICING                                                                   = 136
	FACILITY_DLS                                                                            = 153
	FACILITY_DELIVERY_OPTIMIZATION                                                          = 208
	FACILITY_USERMODE_SPACES                                                                = 231
	FACILITY_USER_MODE_SECURITY_CORE                                                        = 232
	FACILITY_USERMODE_LICENSING                                                             = 234
	FACILITY_SOS                                                                            = 160
	FACILITY_DEBUGGERS                                                                      = 176
	FACILITY_SPP                                                                            = 256
	FACILITY_RESTORE                                                                        = 256
	FACILITY_DMSERVER                                                                       = 256
	FACILITY_DEPLOYMENT_SERVICES_SERVER                                                     = 257
	FACILITY_DEPLOYMENT_SERVICES_IMAGING                                                    = 258
	FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT                                                 = 259
	FACILITY_DEPLOYMENT_SERVICES_UTIL                                                       = 260
	FACILITY_DEPLOYMENT_SERVICES_BINLSVC                                                    = 261
	FACILITY_DEPLOYMENT_SERVICES_PXE                                                        = 263
	FACILITY_DEPLOYMENT_SERVICES_TFTP                                                       = 264
	FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT                                       = 272
	FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING                                        = 278
	FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER                                           = 289
	FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT                                           = 290
	FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER                                           = 293
	FACILITY_LINGUISTIC_SERVICES                                                            = 305
	FACILITY_AUDIOSTREAMING                                                                 = 1094
	FACILITY_ACCELERATOR                                                                    = 1536
	FACILITY_WMAAECMA                                                                       = 1996
	FACILITY_DIRECTMUSIC                                                                    = 2168
	FACILITY_DIRECT3D10                                                                     = 2169
	FACILITY_DXGI                                                                           = 2170
	FACILITY_DXGI_DDI                                                                       = 2171
	FACILITY_DIRECT3D11                                                                     = 2172
	FACILITY_DIRECT3D11_DEBUG                                                               = 2173
	FACILITY_DIRECT3D12                                                                     = 2174
	FACILITY_DIRECT3D12_DEBUG                                                               = 2175
	FACILITY_LEAP                                                                           = 2184
	FACILITY_AUDCLNT                                                                        = 2185
	FACILITY_WINCODEC_DWRITE_DWM                                                            = 2200
	FACILITY_WINML                                                                          = 2192
	FACILITY_DIRECT2D                                                                       = 2201
	FACILITY_DEFRAG                                                                         = 2304
	FACILITY_USERMODE_SDBUS                                                                 = 2305
	FACILITY_JSCRIPT                                                                        = 2306
	FACILITY_PIDGENX                                                                        = 2561
	FACILITY_EAS                                                                            = 85
	FACILITY_WEB                                                                            = 885
	FACILITY_WEB_SOCKET                                                                     = 886
	FACILITY_MOBILE                                                                         = 1793
	FACILITY_SQLITE                                                                         = 1967
	FACILITY_UTC                                                                            = 1989
	FACILITY_WEP                                                                            = 2049
	FACILITY_SYNCENGINE                                                                     = 2050
	FACILITY_XBOX                                                                           = 2339
	FACILITY_GAME                                                                           = 2340
	FACILITY_PIX                                                                            = 2748
	ERROR_SUCCESS                                                             syscall.Errno = 0
	NO_ERROR                                                                                = 0
	SEC_E_OK                                                                  Handle        = 0x00000000
	ERROR_INVALID_FUNCTION                                                    syscall.Errno = 1
	ERROR_FILE_NOT_FOUND                                                      syscall.Errno = 2
	ERROR_PATH_NOT_FOUND                                                      syscall.Errno = 3
	ERROR_TOO_MANY_OPEN_FILES                                                 syscall.Errno = 4
	ERROR_ACCESS_DENIED                                                       syscall.Errno = 5
	ERROR_INVALID_HANDLE                                                      syscall.Errno = 6
	ERROR_ARENA_TRASHED                                                       syscall.Errno = 7
	ERROR_NOT_ENOUGH_MEMORY                                                   syscall.Errno = 8
	ERROR_INVALID_BLOCK                                                       syscall.Errno = 9
	ERROR_BAD_ENVIRONMENT                                                     syscall.Errno = 10
	ERROR_BAD_FORMAT                                                          syscall.Errno = 11
	ERROR_INVALID_ACCESS                                                      syscall.Errno = 12
	ERROR_INVALID_DATA                                                        syscall.Errno = 13
	ERROR_OUTOFMEMORY                                                         syscall.Errno = 14
	ERROR_INVALID_DRIVE                                                       syscall.Errno = 15
	ERROR_CURRENT_DIRECTORY                                                   syscall.Errno = 16
	ERROR_NOT_SAME_DEVICE                                                     syscall.Errno = 17
	ERROR_NO_MORE_FILES                                                       syscall.Errno = 18
	ERROR_WRITE_PROTECT                                                       syscall.Errno = 19
	ERROR_BAD_UNIT                                                            syscall.Errno = 20
	ERROR_NOT_READY                                                           syscall.Errno = 21
	ERROR_BAD_COMMAND                                                         syscall.Errno = 22
	ERROR_CRC                                                                 syscall.Errno = 23
	ERROR_BAD_LENGTH                                                          syscall.Errno = 24
	ERROR_SEEK                                                                syscall.Errno = 25
	ERROR_NOT_DOS_DISK                                                        syscall.Errno = 26
	ERROR_SECTOR_NOT_FOUND                                                    syscall.Errno = 27
	ERROR_OUT_OF_PAPER                                                        syscall.Errno = 28
	ERROR_WRITE_FAULT                                                         syscall.Errno = 29
	ERROR_READ_FAULT                                                          syscall.Errno = 30
	ERROR_GEN_FAILURE                                                         syscall.Errno = 31
	ERROR_SHARING_VIOLATION                                                   syscall.Errno = 32
	ERROR_LOCK_VIOLATION                                                      syscall.Errno = 33
	ERROR_WRONG_DISK                                                          syscall.Errno = 34
	ERROR_SHARING_BUFFER_EXCEEDED                                             syscall.Errno = 36
	ERROR_HANDLE_EOF                                                          syscall.Errno = 38
	ERROR_HANDLE_DISK_FULL                                                    syscall.Errno = 39
	ERROR_NOT_SUPPORTED                                                       syscall.Errno = 50
	ERROR_REM_NOT_LIST                                                        syscall.Errno = 51
	ERROR_DUP_NAME                                                            syscall.Errno = 52
	ERROR_BAD_NETPATH                                                         syscall.Errno = 53
	ERROR_NETWORK_BUSY                                                        syscall.Errno = 54
	ERROR_DEV_NOT_EXIST                                                       syscall.Errno = 55
	ERROR_TOO_MANY_CMDS                                                       syscall.Errno = 56
	ERROR_ADAP_HDW_ERR                                                        syscall.Errno = 57
	ERROR_BAD_NET_RESP                                                        syscall.Errno = 58
	ERROR_UNEXP_NET_ERR                                                       syscall.Errno = 59
	ERROR_BAD_REM_ADAP                                                        syscall.Errno = 60
	ERROR_PRINTQ_FULL                                                         syscall.Errno = 61
	ERROR_NO_SPOOL_SPACE                                                      syscall.Errno = 62
	ERROR_PRINT_CANCELLED                                                     syscall.Errno = 63
	ERROR_NETNAME_DELETED                                                     syscall.Errno = 64
	ERROR_NETWORK_ACCESS_DENIED                                               syscall.Errno = 65
	ERROR_BAD_DEV_TYPE                                                        syscall.Errno = 66
	ERROR_BAD_NET_NAME                                                        syscall.Errno = 67
	ERROR_TOO_MANY_NAMES                                                      syscall.Errno = 68
	ERROR_TOO_MANY_SESS                                                       syscall.Errno = 69
	ERROR_SHARING_PAUSED                                                      syscall.Errno = 70
	ERROR_REQ_NOT_ACCEP                                                       syscall.Errno = 71
	ERROR_REDIR_PAUSED                                                        syscall.Errno = 72
	ERROR_FILE_EXISTS                                                         syscall.Errno = 80
	ERROR_CANNOT_MAKE                                                         syscall.Errno = 82
	ERROR_FAIL_I24                                                            syscall.Errno = 83
	ERROR_OUT_OF_STRUCTURES                                                   syscall.Errno = 84
	ERROR_ALREADY_ASSIGNED                                                    syscall.Errno = 85
	ERROR_INVALID_PASSWORD                                                    syscall.Errno = 86
	ERROR_INVALID_PARAMETER                                                   syscall.Errno = 87
	ERROR_NET_WRITE_FAULT                                                     syscall.Errno = 88
	ERROR_NO_PROC_SLOTS                                                       syscall.Errno = 89
	ERROR_TOO_MANY_SEMAPHORES                                                 syscall.Errno = 100
	ERROR_EXCL_SEM_ALREADY_OWNED                                              syscall.Errno = 101
	ERROR_SEM_IS_SET                                                          syscall.Errno = 102
	ERROR_TOO_MANY_SEM_REQUESTS                                               syscall.Errno = 103
	ERROR_INVALID_AT_INTERRUPT_TIME                                           syscall.Errno = 104
	ERROR_SEM_OWNER_DIED                                                      syscall.Errno = 105
	ERROR_SEM_USER_LIMIT                                                      syscall.Errno = 106
	ERROR_DISK_CHANGE                                                         syscall.Errno = 107
	ERROR_DRIVE_LOCKED                                                        syscall.Errno = 108
	ERROR_BROKEN_PIPE                                                         syscall.Errno = 109
	ERROR_OPEN_FAILED                                                         syscall.Errno = 110
	ERROR_BUFFER_OVERFLOW                                                     syscall.Errno = 111
	ERROR_DISK_FULL                                                           syscall.Errno = 112
	ERROR_NO_MORE_SEARCH_HANDLES                                              syscall.Errno = 113
	ERROR_INVALID_TARGET_HANDLE                                               syscall.Errno = 114
	ERROR_INVALID_CATEGORY                                                    syscall.Errno = 117
	ERROR_INVALID_VERIFY_SWITCH                                               syscall.Errno = 118
	ERROR_BAD_DRIVER_LEVEL                                                    syscall.Errno = 119
	ERROR_CALL_NOT_IMPLEMENTED                                                syscall.Errno = 120
	ERROR_SEM_TIMEOUT                                                         syscall.Errno = 121
	ERROR_INSUFFICIENT_BUFFER                                                 syscall.Errno = 122
	ERROR_INVALID_NAME                                                        syscall.Errno = 123
	ERROR_INVALID_LEVEL                                                       syscall.Errno = 124
	ERROR_NO_VOLUME_LABEL                                                     syscall.Errno = 125
	ERROR_MOD_NOT_FOUND                                                       syscall.Errno = 126
	ERROR_PROC_NOT_FOUND                                                      syscall.Errno = 127
	ERROR_WAIT_NO_CHILDREN                                                    syscall.Errno = 128
	ERROR_CHILD_NOT_COMPLETE                                                  syscall.Errno = 129
	ERROR_DIRECT_ACCESS_HANDLE                                                syscall.Errno = 130
	ERROR_NEGATIVE_SEEK                                                       syscall.Errno = 131
	ERROR_SEEK_ON_DEVICE                                                      syscall.Errno = 132
	ERROR_IS_JOIN_TARGET                                                      syscall.Errno = 133
	ERROR_IS_JOINED                                                           syscall.Errno = 134
	ERROR_IS_SUBSTED                                                          syscall.Errno = 135
	ERROR_NOT_JOINED                                                          syscall.Errno = 136
	ERROR_NOT_SUBSTED                                                         syscall.Errno = 137
	ERROR_JOIN_TO_JOIN                                                        syscall.Errno = 138
	ERROR_SUBST_TO_SUBST                                                      syscall.Errno = 139
	ERROR_JOIN_TO_SUBST                                                       syscall.Errno = 140
	ERROR_SUBST_TO_JOIN                                                       syscall.Errno = 141
	ERROR_BUSY_DRIVE                                                          syscall.Errno = 142
	ERROR_SAME_DRIVE                                                          syscall.Errno = 143
	ERROR_DIR_NOT_ROOT                                                        syscall.Errno = 144
	ERROR_DIR_NOT_EMPTY                                                       syscall.Errno = 145
	ERROR_IS_SUBST_PATH                                                       syscall.Errno = 146
	ERROR_IS_JOIN_PATH                                                        syscall.Errno = 147
	ERROR_PATH_BUSY                                                           syscall.Errno = 148
	ERROR_IS_SUBST_TARGET                                                     syscall.Errno = 149
	ERROR_SYSTEM_TRACE                                                        syscall.Errno = 150
	ERROR_INVALID_EVENT_COUNT                                                 syscall.Errno = 151
	ERROR_TOO_MANY_MUXWAITERS                                                 syscall.Errno = 152
	ERROR_INVALID_LIST_FORMAT                                                 syscall.Errno = 153
	ERROR_LABEL_TOO_LONG                                                      syscall.Errno = 154
	ERROR_TOO_MANY_TCBS                                                       syscall.Errno = 155
	ERROR_SIGNAL_REFUSED                                                      syscall.Errno = 156
	ERROR_DISCARDED                                                           syscall.Errno = 157
	ERROR_NOT_LOCKED                                                          syscall.Errno = 158
	ERROR_BAD_THREADID_ADDR                                                   syscall.Errno = 159
	ERROR_BAD_ARGUMENTS                                                       syscall.Errno = 160
	ERROR_BAD_PATHNAME                                                        syscall.Errno = 161
	ERROR_SIGNAL_PENDING                                                      syscall.Errno = 162
	ERROR_MAX_THRDS_REACHED                                                   syscall.Errno = 164
	ERROR_LOCK_FAILED                                                         syscall.Errno = 167
	ERROR_BUSY                                                                syscall.Errno = 170
	ERROR_DEVICE_SUPPORT_IN_PROGRESS                                          syscall.Errno = 171
	ERROR_CANCEL_VIOLATION                                                    syscall.Errno = 173
	ERROR_ATOMIC_LOCKS_NOT_SUPPORTED                                          syscall.Errno = 174
	ERROR_INVALID_SEGMENT_NUMBER                                              syscall.Errno = 180
	ERROR_INVALID_ORDINAL                                                     syscall.Errno = 182
	ERROR_ALREADY_EXISTS                                                      syscall.Errno = 183
	ERROR_INVALID_FLAG_NUMBER                                                 syscall.Errno = 186
	ERROR_SEM_NOT_FOUND                                                       syscall.Errno = 187
	ERROR_INVALID_STARTING_CODESEG                                            syscall.Errno = 188
	ERROR_INVALID_STACKSEG                                                    syscall.Errno = 189
	ERROR_INVALID_MODULETYPE                                                  syscall.Errno = 190
	ERROR_INVALID_EXE_SIGNATURE                                               syscall.Errno = 191
	ERROR_EXE_MARKED_INVALID                                                  syscall.Errno = 192
	ERROR_BAD_EXE_FORMAT                                                      syscall.Errno = 193
	ERROR_ITERATED_DATA_EXCEEDS_64k                                           syscall.Errno = 194
	ERROR_INVALID_MINALLOCSIZE                                                syscall.Errno = 195
	ERROR_DYNLINK_FROM_INVALID_RING                                           syscall.Errno = 196
	ERROR_IOPL_NOT_ENABLED                                                    syscall.Errno = 197
	ERROR_INVALID_SEGDPL                                                      syscall.Errno = 198
	ERROR_AUTODATASEG_EXCEEDS_64k                                             syscall.Errno = 199
	ERROR_RING2SEG_MUST_BE_MOVABLE                                            syscall.Errno = 200
	ERROR_RELOC_CHAIN_XEEDS_SEGLIM                                            syscall.Errno = 201
	ERROR_INFLOOP_IN_RELOC_CHAIN                                              syscall.Errno = 202
	ERROR_ENVVAR_NOT_FOUND                                                    syscall.Errno = 203
	ERROR_NO_SIGNAL_SENT                                                      syscall.Errno = 205
	ERROR_FILENAME_EXCED_RANGE                                                syscall.Errno = 206
	ERROR_RING2_STACK_IN_USE                                                  syscall.Errno = 207
	ERROR_META_EXPANSION_TOO_LONG                                             syscall.Errno = 208
	ERROR_INVALID_SIGNAL_NUMBER                                               syscall.Errno = 209
	ERROR_THREAD_1_INACTIVE                                                   syscall.Errno = 210
	ERROR_LOCKED                                                              syscall.Errno = 212
	ERROR_TOO_MANY_MODULES                                                    syscall.Errno = 214
	ERROR_NESTING_NOT_ALLOWED                                                 syscall.Errno = 215
	ERROR_EXE_MACHINE_TYPE_MISMATCH                                           syscall.Errno = 216
	ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY                                     syscall.Errno = 217
	ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY                              syscall.Errno = 218
	ERROR_FILE_CHECKED_OUT                                                    syscall.Errno = 220
	ERROR_CHECKOUT_REQUIRED                                                   syscall.Errno = 221
	ERROR_BAD_FILE_TYPE                                                       syscall.Errno = 222
	ERROR_FILE_TOO_LARGE                                                      syscall.Errno = 223
	ERROR_FORMS_AUTH_REQUIRED                                                 syscall.Errno = 224
	ERROR_VIRUS_INFECTED                                                      syscall.Errno = 225
	ERROR_VIRUS_DELETED                                                       syscall.Errno = 226
	ERROR_PIPE_LOCAL                                                          syscall.Errno = 229
	ERROR_BAD_PIPE                                                            syscall.Errno = 230
	ERROR_PIPE_BUSY                                                           syscall.Errno = 231
	ERROR_NO_DATA                                                             syscall.Errno = 232
	ERROR_PIPE_NOT_CONNECTED                                                  syscall.Errno = 233
	ERROR_MORE_DATA                                                           syscall.Errno = 234
	ERROR_NO_WORK_DONE                                                        syscall.Errno = 235
	ERROR_VC_DISCONNECTED                                                     syscall.Errno = 240
	ERROR_INVALID_EA_NAME                                                     syscall.Errno = 254
	ERROR_EA_LIST_INCONSISTENT                                                syscall.Errno = 255
	WAIT_TIMEOUT                                                              syscall.Errno = 258
	ERROR_NO_MORE_ITEMS                                                       syscall.Errno = 259
	ERROR_CANNOT_COPY                                                         syscall.Errno = 266
	ERROR_DIRECTORY                                                           syscall.Errno = 267
	ERROR_EAS_DIDNT_FIT                                                       syscall.Errno = 275
	ERROR_EA_FILE_CORRUPT                                                     syscall.Errno = 276
	ERROR_EA_TABLE_FULL                                                       syscall.Errno = 277
	ERROR_INVALID_EA_HANDLE                                                   syscall.Errno = 278
	ERROR_EAS_NOT_SUPPORTED                                                   syscall.Errno = 282
	ERROR_NOT_OWNER                                                           syscall.Errno = 288
	ERROR_TOO_MANY_POSTS                                                      syscall.Errno = 298
	ERROR_PARTIAL_COPY                                                        syscall.Errno = 299
	ERROR_OPLOCK_NOT_GRANTED                                                  syscall.Errno = 300
	ERROR_INVALID_OPLOCK_PROTOCOL                                             syscall.Errno = 301
	ERROR_DISK_TOO_FRAGMENTED                                                 syscall.Errno = 302
	ERROR_DELETE_PENDING                                                      syscall.Errno = 303
	ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING                syscall.Errno = 304
	ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME                                   syscall.Errno = 305
	ERROR_SECURITY_STREAM_IS_INCONSISTENT                                     syscall.Errno = 306
	ERROR_INVALID_LOCK_RANGE                                                  syscall.Errno = 307
	ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT                                         syscall.Errno = 308
	ERROR_NOTIFICATION_GUID_ALREADY_DEFINED                                   syscall.Errno = 309
	ERROR_INVALID_EXCEPTION_HANDLER                                           syscall.Errno = 310
	ERROR_DUPLICATE_PRIVILEGES                                                syscall.Errno = 311
	ERROR_NO_RANGES_PROCESSED                                                 syscall.Errno = 312
	ERROR_NOT_ALLOWED_ON_SYSTEM_FILE                                          syscall.Errno = 313
	ERROR_DISK_RESOURCES_EXHAUSTED                                            syscall.Errno = 314
	ERROR_INVALID_TOKEN                                                       syscall.Errno = 315
	ERROR_DEVICE_FEATURE_NOT_SUPPORTED                                        syscall.Errno = 316
	ERROR_MR_MID_NOT_FOUND                                                    syscall.Errno = 317
	ERROR_SCOPE_NOT_FOUND                                                     syscall.Errno = 318
	ERROR_UNDEFINED_SCOPE                                                     syscall.Errno = 319
	ERROR_INVALID_CAP                                                         syscall.Errno = 320
	ERROR_DEVICE_UNREACHABLE                                                  syscall.Errno = 321
	ERROR_DEVICE_NO_RESOURCES                                                 syscall.Errno = 322
	ERROR_DATA_CHECKSUM_ERROR                                                 syscall.Errno = 323
	ERROR_INTERMIXED_KERNEL_EA_OPERATION                                      syscall.Errno = 324
	ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED                                       syscall.Errno = 326
	ERROR_OFFSET_ALIGNMENT_VIOLATION                                          syscall.Errno = 327
	ERROR_INVALID_FIELD_IN_PARAMETER_LIST                                     syscall.Errno = 328
	ERROR_OPERATION_IN_PROGRESS                                               syscall.Errno = 329
	ERROR_BAD_DEVICE_PATH                                                     syscall.Errno = 330
	ERROR_TOO_MANY_DESCRIPTORS                                                syscall.Errno = 331
	ERROR_SCRUB_DATA_DISABLED                                                 syscall.Errno = 332
	ERROR_NOT_REDUNDANT_STORAGE                                               syscall.Errno = 333
	ERROR_RESIDENT_FILE_NOT_SUPPORTED                                         syscall.Errno = 334
	ERROR_COMPRESSED_FILE_NOT_SUPPORTED                                       syscall.Errno = 335
	ERROR_DIRECTORY_NOT_SUPPORTED                                             syscall.Errno = 336
	ERROR_NOT_READ_FROM_COPY                                                  syscall.Errno = 337
	ERROR_FT_WRITE_FAILURE                                                    syscall.Errno = 338
	ERROR_FT_DI_SCAN_REQUIRED                                                 syscall.Errno = 339
	ERROR_INVALID_KERNEL_INFO_VERSION                                         syscall.Errno = 340
	ERROR_INVALID_PEP_INFO_VERSION                                            syscall.Errno = 341
	ERROR_OBJECT_NOT_EXTERNALLY_BACKED                                        syscall.Errno = 342
	ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN                                   syscall.Errno = 343
	ERROR_COMPRESSION_NOT_BENEFICIAL                                          syscall.Errno = 344
	ERROR_STORAGE_TOPOLOGY_ID_MISMATCH                                        syscall.Errno = 345
	ERROR_BLOCKED_BY_PARENTAL_CONTROLS                                        syscall.Errno = 346
	ERROR_BLOCK_TOO_MANY_REFERENCES                                           syscall.Errno = 347
	ERROR_MARKED_TO_DISALLOW_WRITES                                           syscall.Errno = 348
	ERROR_ENCLAVE_FAILURE                                                     syscall.Errno = 349
	ERROR_FAIL_NOACTION_REBOOT                                                syscall.Errno = 350
	ERROR_FAIL_SHUTDOWN                                                       syscall.Errno = 351
	ERROR_FAIL_RESTART                                                        syscall.Errno = 352
	ERROR_MAX_SESSIONS_REACHED                                                syscall.Errno = 353
	ERROR_NETWORK_ACCESS_DENIED_EDP                                           syscall.Errno = 354
	ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL                                   syscall.Errno = 355
	ERROR_EDP_POLICY_DENIES_OPERATION                                         syscall.Errno = 356
	ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED                                    syscall.Errno = 357
	ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT                               syscall.Errno = 358
	ERROR_DEVICE_IN_MAINTENANCE                                               syscall.Errno = 359
	ERROR_NOT_SUPPORTED_ON_DAX                                                syscall.Errno = 360
	ERROR_DAX_MAPPING_EXISTS                                                  syscall.Errno = 361
	ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING                                     syscall.Errno = 362
	ERROR_CLOUD_FILE_METADATA_CORRUPT                                         syscall.Errno = 363
	ERROR_CLOUD_FILE_METADATA_TOO_LARGE                                       syscall.Errno = 364
	ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE                                  syscall.Errno = 365
	ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH                          syscall.Errno = 366
	ERROR_CHILD_PROCESS_BLOCKED                                               syscall.Errno = 367
	ERROR_STORAGE_LOST_DATA_PERSISTENCE                                       syscall.Errno = 368
	ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE                              syscall.Errno = 369
	ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT                         syscall.Errno = 370
	ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY                                     syscall.Errno = 371
	ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN                         syscall.Errno = 372
	ERROR_GDI_HANDLE_LEAK                                                     syscall.Errno = 373
	ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS                                  syscall.Errno = 374
	ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED                           syscall.Errno = 375
	ERROR_NOT_A_CLOUD_FILE                                                    syscall.Errno = 376
	ERROR_CLOUD_FILE_NOT_IN_SYNC                                              syscall.Errno = 377
	ERROR_CLOUD_FILE_ALREADY_CONNECTED                                        syscall.Errno = 378
	ERROR_CLOUD_FILE_NOT_SUPPORTED                                            syscall.Errno = 379
	ERROR_CLOUD_FILE_INVALID_REQUEST                                          syscall.Errno = 380
	ERROR_CLOUD_FILE_READ_ONLY_VOLUME                                         syscall.Errno = 381
	ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY                                  syscall.Errno = 382
	ERROR_CLOUD_FILE_VALIDATION_FAILED                                        syscall.Errno = 383
	ERROR_SMB1_NOT_AVAILABLE                                                  syscall.Errno = 384
	ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION                        syscall.Errno = 385
	ERROR_CLOUD_FILE_AUTHENTICATION_FAILED                                    syscall.Errno = 386
	ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES                                   syscall.Errno = 387
	ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE                                      syscall.Errno = 388
	ERROR_CLOUD_FILE_UNSUCCESSFUL                                             syscall.Errno = 389
	ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT                                      syscall.Errno = 390
	ERROR_CLOUD_FILE_IN_USE                                                   syscall.Errno = 391
	ERROR_CLOUD_FILE_PINNED                                                   syscall.Errno = 392
	ERROR_CLOUD_FILE_REQUEST_ABORTED                                          syscall.Errno = 393
	ERROR_CLOUD_FILE_PROPERTY_CORRUPT                                         syscall.Errno = 394
	ERROR_CLOUD_FILE_ACCESS_DENIED                                            syscall.Errno = 395
	ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS                                   syscall.Errno = 396
	ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT                                   syscall.Errno = 397
	ERROR_CLOUD_FILE_REQUEST_CANCELED                                         syscall.Errno = 398
	ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED                                       syscall.Errno = 399
	ERROR_THREAD_MODE_ALREADY_BACKGROUND                                      syscall.Errno = 400
	ERROR_THREAD_MODE_NOT_BACKGROUND                                          syscall.Errno = 401
	ERROR_PROCESS_MODE_ALREADY_BACKGROUND                                     syscall.Errno = 402
	ERROR_PROCESS_MODE_NOT_BACKGROUND                                         syscall.Errno = 403
	ERROR_CLOUD_FILE_PROVIDER_TERMINATED                                      syscall.Errno = 404
	ERROR_NOT_A_CLOUD_SYNC_ROOT                                               syscall.Errno = 405
	ERROR_FILE_PROTECTED_UNDER_DPL                                            syscall.Errno = 406
	ERROR_VOLUME_NOT_CLUSTER_ALIGNED                                          syscall.Errno = 407
	ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND                              syscall.Errno = 408
	ERROR_APPX_FILE_NOT_ENCRYPTED                                             syscall.Errno = 409
	ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED                                  syscall.Errno = 410
	ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET                        syscall.Errno = 411
	ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE                         syscall.Errno = 412
	ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER                         syscall.Errno = 413
	ERROR_LINUX_SUBSYSTEM_NOT_PRESENT                                         syscall.Errno = 414
	ERROR_FT_READ_FAILURE                                                     syscall.Errno = 415
	ERROR_STORAGE_RESERVE_ID_INVALID                                          syscall.Errno = 416
	ERROR_STORAGE_RESERVE_DOES_NOT_EXIST                                      syscall.Errno = 417
	ERROR_STORAGE_RESERVE_ALREADY_EXISTS                                      syscall.Errno = 418
	ERROR_STORAGE_RESERVE_NOT_EMPTY                                           syscall.Errno = 419
	ERROR_NOT_A_DAX_VOLUME                                                    syscall.Errno = 420
	ERROR_NOT_DAX_MAPPABLE                                                    syscall.Errno = 421
	ERROR_TIME_SENSITIVE_THREAD                                               syscall.Errno = 422
	ERROR_DPL_NOT_SUPPORTED_FOR_USER                                          syscall.Errno = 423
	ERROR_CASE_DIFFERING_NAMES_IN_DIR                                         syscall.Errno = 424
	ERROR_FILE_NOT_SUPPORTED                                                  syscall.Errno = 425
	ERROR_CLOUD_FILE_REQUEST_TIMEOUT                                          syscall.Errno = 426
	ERROR_NO_TASK_QUEUE                                                       syscall.Errno = 427
	ERROR_SRC_SRV_DLL_LOAD_FAILED                                             syscall.Errno = 428
	ERROR_NOT_SUPPORTED_WITH_BTT                                              syscall.Errno = 429
	ERROR_ENCRYPTION_DISABLED                                                 syscall.Errno = 430
	ERROR_ENCRYPTING_METADATA_DISALLOWED                                      syscall.Errno = 431
	ERROR_CANT_CLEAR_ENCRYPTION_FLAG                                          syscall.Errno = 432
	ERROR_NO_SUCH_DEVICE                                                      syscall.Errno = 433
	ERROR_CAPAUTHZ_NOT_DEVUNLOCKED                                            syscall.Errno = 450
	ERROR_CAPAUTHZ_CHANGE_TYPE                                                syscall.Errno = 451
	ERROR_CAPAUTHZ_NOT_PROVISIONED                                            syscall.Errno = 452
	ERROR_CAPAUTHZ_NOT_AUTHORIZED                                             syscall.Errno = 453
	ERROR_CAPAUTHZ_NO_POLICY                                                  syscall.Errno = 454
	ERROR_CAPAUTHZ_DB_CORRUPTED                                               syscall.Errno = 455
	ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG                                       syscall.Errno = 456
	ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY                                        syscall.Errno = 457
	ERROR_CAPAUTHZ_SCCD_PARSE_ERROR                                           syscall.Errno = 458
	ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED                                     syscall.Errno = 459
	ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH                                   syscall.Errno = 460
	ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT                                     syscall.Errno = 480
	ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT                             syscall.Errno = 481
	ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT                           syscall.Errno = 482
	ERROR_DEVICE_HARDWARE_ERROR                                               syscall.Errno = 483
	ERROR_INVALID_ADDRESS                                                     syscall.Errno = 487
	ERROR_VRF_CFG_ENABLED                                                     syscall.Errno = 1183
	ERROR_PARTITION_TERMINATING                                               syscall.Errno = 1184
	ERROR_USER_PROFILE_LOAD                                                   syscall.Errno = 500
	ERROR_ARITHMETIC_OVERFLOW                                                 syscall.Errno = 534
	ERROR_PIPE_CONNECTED                                                      syscall.Errno = 535
	ERROR_PIPE_LISTENING                                                      syscall.Errno = 536
	ERROR_VERIFIER_STOP                                                       syscall.Errno = 537
	ERROR_ABIOS_ERROR                                                         syscall.Errno = 538
	ERROR_WX86_WARNING                                                        syscall.Errno = 539
	ERROR_WX86_ERROR                                                          syscall.Errno = 540
	ERROR_TIMER_NOT_CANCELED                                                  syscall.Errno = 541
	ERROR_UNWIND                                                              syscall.Errno = 542
	ERROR_BAD_STACK                                                           syscall.Errno = 543
	ERROR_INVALID_UNWIND_TARGET                                               syscall.Errno = 544
	ERROR_INVALID_PORT_ATTRIBUTES                                             syscall.Errno = 545
	ERROR_PORT_MESSAGE_TOO_LONG                                               syscall.Errno = 546
	ERROR_INVALID_QUOTA_LOWER                                                 syscall.Errno = 547
	ERROR_DEVICE_ALREADY_ATTACHED                                             syscall.Errno = 548
	ERROR_INSTRUCTION_MISALIGNMENT                                            syscall.Errno = 549
	ERROR_PROFILING_NOT_STARTED                                               syscall.Errno = 550
	ERROR_PROFILING_NOT_STOPPED                                               syscall.Errno = 551
	ERROR_COULD_NOT_INTERPRET                                                 syscall.Errno = 552
	ERROR_PROFILING_AT_LIMIT                                                  syscall.Errno = 553
	ERROR_CANT_WAIT                                                           syscall.Errno = 554
	ERROR_CANT_TERMINATE_SELF                                                 syscall.Errno = 555
	ERROR_UNEXPECTED_MM_CREATE_ERR                                            syscall.Errno = 556
	ERROR_UNEXPECTED_MM_MAP_ERROR                                             syscall.Errno = 557
	ERROR_UNEXPECTED_MM_EXTEND_ERR                                            syscall.Errno = 558
	ERROR_BAD_FUNCTION_TABLE                                                  syscall.Errno = 559
	ERROR_NO_GUID_TRANSLATION                                                 syscall.Errno = 560
	ERROR_INVALID_LDT_SIZE                                                    syscall.Errno = 561
	ERROR_INVALID_LDT_OFFSET                                                  syscall.Errno = 563
	ERROR_INVALID_LDT_DESCRIPTOR                                              syscall.Errno = 564
	ERROR_TOO_MANY_THREADS                                                    syscall.Errno = 565
	ERROR_THREAD_NOT_IN_PROCESS                                               syscall.Errno = 566
	ERROR_PAGEFILE_QUOTA_EXCEEDED                                             syscall.Errno = 567
	ERROR_LOGON_SERVER_CONFLICT                                               syscall.Errno = 568
	ERROR_SYNCHRONIZATION_REQUIRED                                            syscall.Errno = 569
	ERROR_NET_OPEN_FAILED                                                     syscall.Errno = 570
	ERROR_IO_PRIVILEGE_FAILED                                                 syscall.Errno = 571
	ERROR_CONTROL_C_EXIT                                                      syscall.Errno = 572
	ERROR_MISSING_SYSTEMFILE                                                  syscall.Errno = 573
	ERROR_UNHANDLED_EXCEPTION                                                 syscall.Errno = 574
	ERROR_APP_INIT_FAILURE                                                    syscall.Errno = 575
	ERROR_PAGEFILE_CREATE_FAILED                                              syscall.Errno = 576
	ERROR_INVALID_IMAGE_HASH                                                  syscall.Errno = 577
	ERROR_NO_PAGEFILE                                                         syscall.Errno = 578
	ERROR_ILLEGAL_FLOAT_CONTEXT                                               syscall.Errno = 579
	ERROR_NO_EVENT_PAIR                                                       syscall.Errno = 580
	ERROR_DOMAIN_CTRLR_CONFIG_ERROR                                           syscall.Errno = 581
	ERROR_ILLEGAL_CHARACTER                                                   syscall.Errno = 582
	ERROR_UNDEFINED_CHARACTER                                                 syscall.Errno = 583
	ERROR_FLOPPY_VOLUME                                                       syscall.Errno = 584
	ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT                                    syscall.Errno = 585
	ERROR_BACKUP_CONTROLLER                                                   syscall.Errno = 586
	ERROR_MUTANT_LIMIT_EXCEEDED                                               syscall.Errno = 587
	ERROR_FS_DRIVER_REQUIRED                                                  syscall.Errno = 588
	ERROR_CANNOT_LOAD_REGISTRY_FILE                                           syscall.Errno = 589
	ERROR_DEBUG_ATTACH_FAILED                                                 syscall.Errno = 590
	ERROR_SYSTEM_PROCESS_TERMINATED                                           syscall.Errno = 591
	ERROR_DATA_NOT_ACCEPTED                                                   syscall.Errno = 592
	ERROR_VDM_HARD_ERROR                                                      syscall.Errno = 593
	ERROR_DRIVER_CANCEL_TIMEOUT                                               syscall.Errno = 594
	ERROR_REPLY_MESSAGE_MISMATCH                                              syscall.Errno = 595
	ERROR_LOST_WRITEBEHIND_DATA                                               syscall.Errno = 596
	ERROR_CLIENT_SERVER_PARAMETERS_INVALID                                    syscall.Errno = 597
	ERROR_NOT_TINY_STREAM                                                     syscall.Errno = 598
	ERROR_STACK_OVERFLOW_READ                                                 syscall.Errno = 599
	ERROR_CONVERT_TO_LARGE                                                    syscall.Errno = 600
	ERROR_FOUND_OUT_OF_SCOPE                                                  syscall.Errno = 601
	ERROR_ALLOCATE_BUCKET                                                     syscall.Errno = 602
	ERROR_MARSHALL_OVERFLOW                                                   syscall.Errno = 603
	ERROR_INVALID_VARIANT                                                     syscall.Errno = 604
	ERROR_BAD_COMPRESSION_BUFFER                                              syscall.Errno = 605
	ERROR_AUDIT_FAILED                                                        syscall.Errno = 606
	ERROR_TIMER_RESOLUTION_NOT_SET                                            syscall.Errno = 607
	ERROR_INSUFFICIENT_LOGON_INFO                                             syscall.Errno = 608
	ERROR_BAD_DLL_ENTRYPOINT                                                  syscall.Errno = 609
	ERROR_BAD_SERVICE_ENTRYPOINT                                              syscall.Errno = 610
	ERROR_IP_ADDRESS_CONFLICT1                                                syscall.Errno = 611
	ERROR_IP_ADDRESS_CONFLICT2                                                syscall.Errno = 612
	ERROR_REGISTRY_QUOTA_LIMIT                                                syscall.Errno = 613
	ERROR_NO_CALLBACK_ACTIVE                                                  syscall.Errno = 614
	ERROR_PWD_TOO_SHORT                                                       syscall.Errno = 615
	ERROR_PWD_TOO_RECENT                                                      syscall.Errno = 616
	ERROR_PWD_HISTORY_CONFLICT                                                syscall.Errno = 617
	ERROR_UNSUPPORTED_COMPRESSION                                             syscall.Errno = 618
	ERROR_INVALID_HW_PROFILE                                                  syscall.Errno = 619
	ERROR_INVALID_PLUGPLAY_DEVICE_PATH                                        syscall.Errno = 620
	ERROR_QUOTA_LIST_INCONSISTENT                                             syscall.Errno = 621
	ERROR_EVALUATION_EXPIRATION                                               syscall.Errno = 622
	ERROR_ILLEGAL_DLL_RELOCATION                                              syscall.Errno = 623
	ERROR_DLL_INIT_FAILED_LOGOFF                                              syscall.Errno = 624
	ERROR_VALIDATE_CONTINUE                                                   syscall.Errno = 625
	ERROR_NO_MORE_MATCHES                                                     syscall.Errno = 626
	ERROR_RANGE_LIST_CONFLICT                                                 syscall.Errno = 627
	ERROR_SERVER_SID_MISMATCH                                                 syscall.Errno = 628
	ERROR_CANT_ENABLE_DENY_ONLY                                               syscall.Errno = 629
	ERROR_FLOAT_MULTIPLE_FAULTS                                               syscall.Errno = 630
	ERROR_FLOAT_MULTIPLE_TRAPS                                                syscall.Errno = 631
	ERROR_NOINTERFACE                                                         syscall.Errno = 632
	ERROR_DRIVER_FAILED_SLEEP                                                 syscall.Errno = 633
	ERROR_CORRUPT_SYSTEM_FILE                                                 syscall.Errno = 634
	ERROR_COMMITMENT_MINIMUM                                                  syscall.Errno = 635
	ERROR_PNP_RESTART_ENUMERATION                                             syscall.Errno = 636
	ERROR_SYSTEM_IMAGE_BAD_SIGNATURE                                          syscall.Errno = 637
	ERROR_PNP_REBOOT_REQUIRED                                                 syscall.Errno = 638
	ERROR_INSUFFICIENT_POWER                                                  syscall.Errno = 639
	ERROR_MULTIPLE_FAULT_VIOLATION                                            syscall.Errno = 640
	ERROR_SYSTEM_SHUTDOWN                                                     syscall.Errno = 641
	ERROR_PORT_NOT_SET                                                        syscall.Errno = 642
	ERROR_DS_VERSION_CHECK_FAILURE                                            syscall.Errno = 643
	ERROR_RANGE_NOT_FOUND                                                     syscall.Errno = 644
	ERROR_NOT_SAFE_MODE_DRIVER                                                syscall.Errno = 646
	ERROR_FAILED_DRIVER_ENTRY                                                 syscall.Errno = 647
	ERROR_DEVICE_ENUMERATION_ERROR                                            syscall.Errno = 648
	ERROR_MOUNT_POINT_NOT_RESOLVED                                            syscall.Errno = 649
	ERROR_INVALID_DEVICE_OBJECT_PARAMETER                                     syscall.Errno = 650
	ERROR_MCA_OCCURED                                                         syscall.Errno = 651
	ERROR_DRIVER_DATABASE_ERROR                                               syscall.Errno = 652
	ERROR_SYSTEM_HIVE_TOO_LARGE                                               syscall.Errno = 653
	ERROR_DRIVER_FAILED_PRIOR_UNLOAD                                          syscall.Errno = 654
	ERROR_VOLSNAP_PREPARE_HIBERNATE                                           syscall.Errno = 655
	ERROR_HIBERNATION_FAILURE                                                 syscall.Errno = 656
	ERROR_PWD_TOO_LONG                                                        syscall.Errno = 657
	ERROR_FILE_SYSTEM_LIMITATION                                              syscall.Errno = 665
	ERROR_ASSERTION_FAILURE                                                   syscall.Errno = 668
	ERROR_ACPI_ERROR                                                          syscall.Errno = 669
	ERROR_WOW_ASSERTION                                                       syscall.Errno = 670
	ERROR_PNP_BAD_MPS_TABLE                                                   syscall.Errno = 671
	ERROR_PNP_TRANSLATION_FAILED                                              syscall.Errno = 672
	ERROR_PNP_IRQ_TRANSLATION_FAILED                                          syscall.Errno = 673
	ERROR_PNP_INVALID_ID                                                      syscall.Errno = 674
	ERROR_WAKE_SYSTEM_DEBUGGER                                                syscall.Errno = 675
	ERROR_HANDLES_CLOSED                                                      syscall.Errno = 676
	ERROR_EXTRANEOUS_INFORMATION                                              syscall.Errno = 677
	ERROR_RXACT_COMMIT_NECESSARY                                              syscall.Errno = 678
	ERROR_MEDIA_CHECK                                                         syscall.Errno = 679
	ERROR_GUID_SUBSTITUTION_MADE                                              syscall.Errno = 680
	ERROR_STOPPED_ON_SYMLINK                                                  syscall.Errno = 681
	ERROR_LONGJUMP                                                            syscall.Errno = 682
	ERROR_PLUGPLAY_QUERY_VETOED                                               syscall.Errno = 683
	ERROR_UNWIND_CONSOLIDATE                                                  syscall.Errno = 684
	ERROR_REGISTRY_HIVE_RECOVERED                                             syscall.Errno = 685
	ERROR_DLL_MIGHT_BE_INSECURE                                               syscall.Errno = 686
	ERROR_DLL_MIGHT_BE_INCOMPATIBLE                                           syscall.Errno = 687
	ERROR_DBG_EXCEPTION_NOT_HANDLED                                           syscall.Errno = 688
	ERROR_DBG_REPLY_LATER                                                     syscall.Errno = 689
	ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE                                        syscall.Errno = 690
	ERROR_DBG_TERMINATE_THREAD                                                syscall.Errno = 691
	ERROR_DBG_TERMINATE_PROCESS                                               syscall.Errno = 692
	ERROR_DBG_CONTROL_C                                                       syscall.Errno = 693
	ERROR_DBG_PRINTEXCEPTION_C                                                syscall.Errno = 694
	ERROR_DBG_RIPEXCEPTION                                                    syscall.Errno = 695
	ERROR_DBG_CONTROL_BREAK                                                   syscall.Errno = 696
	ERROR_DBG_COMMAND_EXCEPTION                                               syscall.Errno = 697
	ERROR_OBJECT_NAME_EXISTS                                                  syscall.Errno = 698
	ERROR_THREAD_WAS_SUSPENDED                                                syscall.Errno = 699
	ERROR_IMAGE_NOT_AT_BASE                                                   syscall.Errno = 700
	ERROR_RXACT_STATE_CREATED                                                 syscall.Errno = 701
	ERROR_SEGMENT_NOTIFICATION                                                syscall.Errno = 702
	ERROR_BAD_CURRENT_DIRECTORY                                               syscall.Errno = 703
	ERROR_FT_READ_RECOVERY_FROM_BACKUP                                        syscall.Errno = 704
	ERROR_FT_WRITE_RECOVERY                                                   syscall.Errno = 705
	ERROR_IMAGE_MACHINE_TYPE_MISMATCH                                         syscall.Errno = 706
	ERROR_RECEIVE_PARTIAL                                                     syscall.Errno = 707
	ERROR_RECEIVE_EXPEDITED                                                   syscall.Errno = 708
	ERROR_RECEIVE_PARTIAL_EXPEDITED                                           syscall.Errno = 709
	ERROR_EVENT_DONE                                                          syscall.Errno = 710
	ERROR_EVENT_PENDING                                                       syscall.Errno = 711
	ERROR_CHECKING_FILE_SYSTEM                                                syscall.Errno = 712
	ERROR_FATAL_APP_EXIT                                                      syscall.Errno = 713
	ERROR_PREDEFINED_HANDLE                                                   syscall.Errno = 714
	ERROR_WAS_UNLOCKED                                                        syscall.Errno = 715
	ERROR_SERVICE_NOTIFICATION                                                syscall.Errno = 716
	ERROR_WAS_LOCKED                                                          syscall.Errno = 717
	ERROR_LOG_HARD_ERROR                                                      syscall.Errno = 718
	ERROR_ALREADY_WIN32                                                       syscall.Errno = 719
	ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE                                     syscall.Errno = 720
	ERROR_NO_YIELD_PERFORMED                                                  syscall.Errno = 721
	ERROR_TIMER_RESUME_IGNORED                                                syscall.Errno = 722
	ERROR_ARBITRATION_UNHANDLED                                               syscall.Errno = 723
	ERROR_CARDBUS_NOT_SUPPORTED                                               syscall.Errno = 724
	ERROR_MP_PROCESSOR_MISMATCH                                               syscall.Errno = 725
	ERROR_HIBERNATED                                                          syscall.Errno = 726
	ERROR_RESUME_HIBERNATION                                                  syscall.Errno = 727
	ERROR_FIRMWARE_UPDATED                                                    syscall.Errno = 728
	ERROR_DRIVERS_LEAKING_LOCKED_PAGES                                        syscall.Errno = 729
	ERROR_WAKE_SYSTEM                                                         syscall.Errno = 730
	ERROR_WAIT_1                                                              syscall.Errno = 731
	ERROR_WAIT_2                                                              syscall.Errno = 732
	ERROR_WAIT_3                                                              syscall.Errno = 733
	ERROR_WAIT_63                                                             syscall.Errno = 734
	ERROR_ABANDONED_WAIT_0                                                    syscall.Errno = 735
	ERROR_ABANDONED_WAIT_63                                                   syscall.Errno = 736
	ERROR_USER_APC                                                            syscall.Errno = 737
	ERROR_KERNEL_APC                                                          syscall.Errno = 738
	ERROR_ALERTED                                                             syscall.Errno = 739
	ERROR_ELEVATION_REQUIRED                                                  syscall.Errno = 740
	ERROR_REPARSE                                                             syscall.Errno = 741
	ERROR_OPLOCK_BREAK_IN_PROGRESS                                            syscall.Errno = 742
	ERROR_VOLUME_MOUNTED                                                      syscall.Errno = 743
	ERROR_RXACT_COMMITTED                                                     syscall.Errno = 744
	ERROR_NOTIFY_CLEANUP                                                      syscall.Errno = 745
	ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED                                    syscall.Errno = 746
	ERROR_PAGE_FAULT_TRANSITION                                               syscall.Errno = 747
	ERROR_PAGE_FAULT_DEMAND_ZERO                                              syscall.Errno = 748
	ERROR_PAGE_FAULT_COPY_ON_WRITE                                            syscall.Errno = 749
	ERROR_PAGE_FAULT_GUARD_PAGE                                               syscall.Errno = 750
	ERROR_PAGE_FAULT_PAGING_FILE                                              syscall.Errno = 751
	ERROR_CACHE_PAGE_LOCKED                                                   syscall.Errno = 752
	ERROR_CRASH_DUMP                                                          syscall.Errno = 753
	ERROR_BUFFER_ALL_ZEROS                                                    syscall.Errno = 754
	ERROR_REPARSE_OBJECT                                                      syscall.Errno = 755
	ERROR_RESOURCE_REQUIREMENTS_CHANGED                                       syscall.Errno = 756
	ERROR_TRANSLATION_COMPLETE                                                syscall.Errno = 757
	ERROR_NOTHING_TO_TERMINATE                                                syscall.Errno = 758
	ERROR_PROCESS_NOT_IN_JOB                                                  syscall.Errno = 759
	ERROR_PROCESS_IN_JOB                                                      syscall.Errno = 760
	ERROR_VOLSNAP_HIBERNATE_READY                                             syscall.Errno = 761
	ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY                                  syscall.Errno = 762
	ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED                                  syscall.Errno = 763
	ERROR_INTERRUPT_STILL_CONNECTED                                           syscall.Errno = 764
	ERROR_WAIT_FOR_OPLOCK                                                     syscall.Errno = 765
	ERROR_DBG_EXCEPTION_HANDLED                                               syscall.Errno = 766
	ERROR_DBG_CONTINUE                                                        syscall.Errno = 767
	ERROR_CALLBACK_POP_STACK                                                  syscall.Errno = 768
	ERROR_COMPRESSION_DISABLED                                                syscall.Errno = 769
	ERROR_CANTFETCHBACKWARDS                                                  syscall.Errno = 770
	ERROR_CANTSCROLLBACKWARDS                                                 syscall.Errno = 771
	ERROR_ROWSNOTRELEASED                                                     syscall.Errno = 772
	ERROR_BAD_ACCESSOR_FLAGS                                                  syscall.Errno = 773
	ERROR_ERRORS_ENCOUNTERED                                                  syscall.Errno = 774
	ERROR_NOT_CAPABLE                                                         syscall.Errno = 775
	ERROR_REQUEST_OUT_OF_SEQUENCE                                             syscall.Errno = 776
	ERROR_VERSION_PARSE_ERROR                                                 syscall.Errno = 777
	ERROR_BADSTARTPOSITION                                                    syscall.Errno = 778
	ERROR_MEMORY_HARDWARE                                                     syscall.Errno = 779
	ERROR_DISK_REPAIR_DISABLED                                                syscall.Errno = 780
	ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE             syscall.Errno = 781
	ERROR_SYSTEM_POWERSTATE_TRANSITION                                        syscall.Errno = 782
	ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION                                syscall.Errno = 783
	ERROR_MCA_EXCEPTION                                                       syscall.Errno = 784
	ERROR_ACCESS_AUDIT_BY_POLICY                                              syscall.Errno = 785
	ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY                               syscall.Errno = 786
	ERROR_ABANDON_HIBERFILE                                                   syscall.Errno = 787
	ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED                          syscall.Errno = 788
	ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR                          syscall.Errno = 789
	ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR                              syscall.Errno = 790
	ERROR_BAD_MCFG_TABLE                                                      syscall.Errno = 791
	ERROR_DISK_REPAIR_REDIRECTED                                              syscall.Errno = 792
	ERROR_DISK_REPAIR_UNSUCCESSFUL                                            syscall.Errno = 793
	ERROR_CORRUPT_LOG_OVERFULL                                                syscall.Errno = 794
	ERROR_CORRUPT_LOG_CORRUPTED                                               syscall.Errno = 795
	ERROR_CORRUPT_LOG_UNAVAILABLE                                             syscall.Errno = 796
	ERROR_CORRUPT_LOG_DELETED_FULL                                            syscall.Errno = 797
	ERROR_CORRUPT_LOG_CLEARED                                                 syscall.Errno = 798
	ERROR_ORPHAN_NAME_EXHAUSTED                                               syscall.Errno = 799
	ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE                                       syscall.Errno = 800
	ERROR_CANNOT_GRANT_REQUESTED_OPLOCK                                       syscall.Errno = 801
	ERROR_CANNOT_BREAK_OPLOCK                                                 syscall.Errno = 802
	ERROR_OPLOCK_HANDLE_CLOSED                                                syscall.Errno = 803
	ERROR_NO_ACE_CONDITION                                                    syscall.Errno = 804
	ERROR_INVALID_ACE_CONDITION                                               syscall.Errno = 805
	ERROR_FILE_HANDLE_REVOKED                                                 syscall.Errno = 806
	ERROR_IMAGE_AT_DIFFERENT_BASE                                             syscall.Errno = 807
	ERROR_ENCRYPTED_IO_NOT_POSSIBLE                                           syscall.Errno = 808
	ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS                              syscall.Errno = 809
	ERROR_QUOTA_ACTIVITY                                                      syscall.Errno = 810
	ERROR_HANDLE_REVOKED                                                      syscall.Errno = 811
	ERROR_CALLBACK_INVOKE_INLINE                                              syscall.Errno = 812
	ERROR_CPU_SET_INVALID                                                     syscall.Errno = 813
	ERROR_ENCLAVE_NOT_TERMINATED                                              syscall.Errno = 814
	ERROR_ENCLAVE_VIOLATION                                                   syscall.Errno = 815
	ERROR_EA_ACCESS_DENIED                                                    syscall.Errno = 994
	ERROR_OPERATION_ABORTED                                                   syscall.Errno = 995
	ERROR_IO_INCOMPLETE                                                       syscall.Errno = 996
	ERROR_IO_PENDING                                                          syscall.Errno = 997
	ERROR_NOACCESS                                                            syscall.Errno = 998
	ERROR_SWAPERROR                                                           syscall.Errno = 999
	ERROR_STACK_OVERFLOW                                                      syscall.Errno = 1001
	ERROR_INVALID_MESSAGE                                                     syscall.Errno = 1002
	ERROR_CAN_NOT_COMPLETE                                                    syscall.Errno = 1003
	ERROR_INVALID_FLAGS                                                       syscall.Errno = 1004
	ERROR_UNRECOGNIZED_VOLUME                                                 syscall.Errno = 1005
	ERROR_FILE_INVALID                                                        syscall.Errno = 1006
	ERROR_FULLSCREEN_MODE                                                     syscall.Errno = 1007
	ERROR_NO_TOKEN                                                            syscall.Errno = 1008
	ERROR_BADDB                                                               syscall.Errno = 1009
	ERROR_BADKEY                                                              syscall.Errno = 1010
	ERROR_CANTOPEN                                                            syscall.Errno = 1011
	ERROR_CANTREAD                                                            syscall.Errno = 1012
	ERROR_CANTWRITE                                                           syscall.Errno = 1013
	ERROR_REGISTRY_RECOVERED                                                  syscall.Errno = 1014
	ERROR_REGISTRY_CORRUPT                                                    syscall.Errno = 1015
	ERROR_REGISTRY_IO_FAILED                                                  syscall.Errno = 1016
	ERROR_NOT_REGISTRY_FILE                                                   syscall.Errno = 1017
	ERROR_KEY_DELETED                                                         syscall.Errno = 1018
	ERROR_NO_LOG_SPACE                                                        syscall.Errno = 1019
	ERROR_KEY_HAS_CHILDREN                                                    syscall.Errno = 1020
	ERROR_CHILD_MUST_BE_VOLATILE                                              syscall.Errno = 1021
	ERROR_NOTIFY_ENUM_DIR                                                     syscall.Errno = 1022
	ERROR_DEPENDENT_SERVICES_RUNNING                                          syscall.Errno = 1051
	ERROR_INVALID_SERVICE_CONTROL                                             syscall.Errno = 1052
	ERROR_SERVICE_REQUEST_TIMEOUT                                             syscall.Errno = 1053
	ERROR_SERVICE_NO_THREAD                                                   syscall.Errno = 1054
	ERROR_SERVICE_DATABASE_LOCKED                                             syscall.Errno = 1055
	ERROR_SERVICE_ALREADY_RUNNING                                             syscall.Errno = 1056
	ERROR_INVALID_SERVICE_ACCOUNT                                             syscall.Errno = 1057
	ERROR_SERVICE_DISABLED                                                    syscall.Errno = 1058
	ERROR_CIRCULAR_DEPENDENCY                                                 syscall.Errno = 1059
	ERROR_SERVICE_DOES_NOT_EXIST                                              syscall.Errno = 1060
	ERROR_SERVICE_CANNOT_ACCEPT_CTRL                                          syscall.Errno = 1061
	ERROR_SERVICE_NOT_ACTIVE                                                  syscall.Errno = 1062
	ERROR_FAILED_SERVICE_CONTROLLER_CONNECT                                   syscall.Errno = 1063
	ERROR_EXCEPTION_IN_SERVICE                                                syscall.Errno = 1064
	ERROR_DATABASE_DOES_NOT_EXIST                                             syscall.Errno = 1065
	ERROR_SERVICE_SPECIFIC_ERROR                                              syscall.Errno = 1066
	ERROR_PROCESS_ABORTED                                                     syscall.Errno = 1067
	ERROR_SERVICE_DEPENDENCY_FAIL                                             syscall.Errno = 1068
	ERROR_SERVICE_LOGON_FAILED                                                syscall.Errno = 1069
	ERROR_SERVICE_START_HANG                                                  syscall.Errno = 1070
	ERROR_INVALID_SERVICE_LOCK                                                syscall.Errno = 1071
	ERROR_SERVICE_MARKED_FOR_DELETE                                           syscall.Errno = 1072
	ERROR_SERVICE_EXISTS                                                      syscall.Errno = 1073
	ERROR_ALREADY_RUNNING_LKG                                                 syscall.Errno = 1074
	ERROR_SERVICE_DEPENDENCY_DELETED                                          syscall.Errno = 1075
	ERROR_BOOT_ALREADY_ACCEPTED                                               syscall.Errno = 1076
	ERROR_SERVICE_NEVER_STARTED                                               syscall.Errno = 1077
	ERROR_DUPLICATE_SERVICE_NAME                                              syscall.Errno = 1078
	ERROR_DIFFERENT_SERVICE_ACCOUNT                                           syscall.Errno = 1079
	ERROR_CANNOT_DETECT_DRIVER_FAILURE                                        syscall.Errno = 1080
	ERROR_CANNOT_DETECT_PROCESS_ABORT                                         syscall.Errno = 1081
	ERROR_NO_RECOVERY_PROGRAM                                                 syscall.Errno = 1082
	ERROR_SERVICE_NOT_IN_EXE                                                  syscall.Errno = 1083
	ERROR_NOT_SAFEBOOT_SERVICE                                                syscall.Errno = 1084
	ERROR_END_OF_MEDIA                                                        syscall.Errno = 1100
	ERROR_FILEMARK_DETECTED                                                   syscall.Errno = 1101
	ERROR_BEGINNING_OF_MEDIA                                                  syscall.Errno = 1102
	ERROR_SETMARK_DETECTED                                                    syscall.Errno = 1103
	ERROR_NO_DATA_DETECTED                                                    syscall.Errno = 1104
	ERROR_PARTITION_FAILURE                                                   syscall.Errno = 1105
	ERROR_INVALID_BLOCK_LENGTH                                                syscall.Errno = 1106
	ERROR_DEVICE_NOT_PARTITIONED                                              syscall.Errno = 1107
	ERROR_UNABLE_TO_LOCK_MEDIA                                                syscall.Errno = 1108
	ERROR_UNABLE_TO_UNLOAD_MEDIA                                              syscall.Errno = 1109
	ERROR_MEDIA_CHANGED                                                       syscall.Errno = 1110
	ERROR_BUS_RESET                                                           syscall.Errno = 1111
	ERROR_NO_MEDIA_IN_DRIVE                                                   syscall.Errno = 1112
	ERROR_NO_UNICODE_TRANSLATION                                              syscall.Errno = 1113
	ERROR_DLL_INIT_FAILED                                                     syscall.Errno = 1114
	ERROR_SHUTDOWN_IN_PROGRESS                                                syscall.Errno = 1115
	ERROR_NO_SHUTDOWN_IN_PROGRESS                                             syscall.Errno = 1116
	ERROR_IO_DEVICE                                                           syscall.Errno = 1117
	ERROR_SERIAL_NO_DEVICE                                                    syscall.Errno = 1118
	ERROR_IRQ_BUSY                                                            syscall.Errno = 1119
	ERROR_MORE_WRITES                                                         syscall.Errno = 1120
	ERROR_COUNTER_TIMEOUT                                                     syscall.Errno = 1121
	ERROR_FLOPPY_ID_MARK_NOT_FOUND                                            syscall.Errno = 1122
	ERROR_FLOPPY_WRONG_CYLINDER                                               syscall.Errno = 1123
	ERROR_FLOPPY_UNKNOWN_ERROR                                                syscall.Errno = 1124
	ERROR_FLOPPY_BAD_REGISTERS                                                syscall.Errno = 1125
	ERROR_DISK_RECALIBRATE_FAILED                                             syscall.Errno = 1126
	ERROR_DISK_OPERATION_FAILED                                               syscall.Errno = 1127
	ERROR_DISK_RESET_FAILED                                                   syscall.Errno = 1128
	ERROR_EOM_OVERFLOW                                                        syscall.Errno = 1129
	ERROR_NOT_ENOUGH_SERVER_MEMORY                                            syscall.Errno = 1130
	ERROR_POSSIBLE_DEADLOCK                                                   syscall.Errno = 1131
	ERROR_MAPPED_ALIGNMENT                                                    syscall.Errno = 1132
	ERROR_SET_POWER_STATE_VETOED                                              syscall.Errno = 1140
	ERROR_SET_POWER_STATE_FAILED                                              syscall.Errno = 1141
	ERROR_TOO_MANY_LINKS                                                      syscall.Errno = 1142
	ERROR_OLD_WIN_VERSION                                                     syscall.Errno = 1150
	ERROR_APP_WRONG_OS                                                        syscall.Errno = 1151
	ERROR_SINGLE_INSTANCE_APP                                                 syscall.Errno = 1152
	ERROR_RMODE_APP                                                           syscall.Errno = 1153
	ERROR_INVALID_DLL                                                         syscall.Errno = 1154
	ERROR_NO_ASSOCIATION                                                      syscall.Errno = 1155
	ERROR_DDE_FAIL                                                            syscall.Errno = 1156
	ERROR_DLL_NOT_FOUND                                                       syscall.Errno = 1157
	ERROR_NO_MORE_USER_HANDLES                                                syscall.Errno = 1158
	ERROR_MESSAGE_SYNC_ONLY                                                   syscall.Errno = 1159
	ERROR_SOURCE_ELEMENT_EMPTY                                                syscall.Errno = 1160
	ERROR_DESTINATION_ELEMENT_FULL                                            syscall.Errno = 1161
	ERROR_ILLEGAL_ELEMENT_ADDRESS                                             syscall.Errno = 1162
	ERROR_MAGAZINE_NOT_PRESENT                                                syscall.Errno = 1163
	ERROR_DEVICE_REINITIALIZATION_NEEDED                                      syscall.Errno = 1164
	ERROR_DEVICE_REQUIRES_CLEANING                                            syscall.Errno = 1165
	ERROR_DEVICE_DOOR_OPEN                                                    syscall.Errno = 1166
	ERROR_DEVICE_NOT_CONNECTED                                                syscall.Errno = 1167
	ERROR_NOT_FOUND                                                           syscall.Errno = 1168
	ERROR_NO_MATCH                                                            syscall.Errno = 1169
	ERROR_SET_NOT_FOUND                                                       syscall.Errno = 1170
	ERROR_POINT_NOT_FOUND                                                     syscall.Errno = 1171
	ERROR_NO_TRACKING_SERVICE                                                 syscall.Errno = 1172
	ERROR_NO_VOLUME_ID                                                        syscall.Errno = 1173
	ERROR_UNABLE_TO_REMOVE_REPLACED                                           syscall.Errno = 1175
	ERROR_UNABLE_TO_MOVE_REPLACEMENT                                          syscall.Errno = 1176
	ERROR_UNABLE_TO_MOVE_REPLACEMENT_2                                        syscall.Errno = 1177
	ERROR_JOURNAL_DELETE_IN_PROGRESS                                          syscall.Errno = 1178
	ERROR_JOURNAL_NOT_ACTIVE                                                  syscall.Errno = 1179
	ERROR_POTENTIAL_FILE_FOUND                                                syscall.Errno = 1180
	ERROR_JOURNAL_ENTRY_DELETED                                               syscall.Errno = 1181
	ERROR_SHUTDOWN_IS_SCHEDULED                                               syscall.Errno = 1190
	ERROR_SHUTDOWN_USERS_LOGGED_ON                                            syscall.Errno = 1191
	ERROR_BAD_DEVICE                                                          syscall.Errno = 1200
	ERROR_CONNECTION_UNAVAIL                                                  syscall.Errno = 1201
	ERROR_DEVICE_ALREADY_REMEMBERED                                           syscall.Errno = 1202
	ERROR_NO_NET_OR_BAD_PATH                                                  syscall.Errno = 1203
	ERROR_BAD_PROVIDER                                                        syscall.Errno = 1204
	ERROR_CANNOT_OPEN_PROFILE                                                 syscall.Errno = 1205
	ERROR_BAD_PROFILE                                                         syscall.Errno = 1206
	ERROR_NOT_CONTAINER                                                       syscall.Errno = 1207
	ERROR_EXTENDED_ERROR                                                      syscall.Errno = 1208
	ERROR_INVALID_GROUPNAME                                                   syscall.Errno = 1209
	ERROR_INVALID_COMPUTERNAME                                                syscall.Errno = 1210
	ERROR_INVALID_EVENTNAME                                                   syscall.Errno = 1211
	ERROR_INVALID_DOMAINNAME                                                  syscall.Errno = 1212
	ERROR_INVALID_SERVICENAME                                                 syscall.Errno = 1213
	ERROR_INVALID_NETNAME                                                     syscall.Errno = 1214
	ERROR_INVALID_SHARENAME                                                   syscall.Errno = 1215
	ERROR_INVALID_PASSWORDNAME                                                syscall.Errno = 1216
	ERROR_INVALID_MESSAGENAME                                                 syscall.Errno = 1217
	ERROR_INVALID_MESSAGEDEST                                                 syscall.Errno = 1218
	ERROR_SESSION_CREDENTIAL_CONFLICT                                         syscall.Errno = 1219
	ERROR_REMOTE_SESSION_LIMIT_EXCEEDED                                       syscall.Errno = 1220
	ERROR_DUP_DOMAINNAME                                                      syscall.Errno = 1221
	ERROR_NO_NETWORK                                                          syscall.Errno = 1222
	ERROR_CANCELLED                                                           syscall.Errno = 1223
	ERROR_USER_MAPPED_FILE                                                    syscall.Errno = 1224
	ERROR_CONNECTION_REFUSED                                                  syscall.Errno = 1225
	ERROR_GRACEFUL_DISCONNECT                                                 syscall.Errno = 1226
	ERROR_ADDRESS_ALREADY_ASSOCIATED                                          syscall.Errno = 1227
	ERROR_ADDRESS_NOT_ASSOCIATED                                              syscall.Errno = 1228
	ERROR_CONNECTION_INVALID                                                  syscall.Errno = 1229
	ERROR_CONNECTION_ACTIVE                                                   syscall.Errno = 1230
	ERROR_NETWORK_UNREACHABLE                                                 syscall.Errno = 1231
	ERROR_HOST_UNREACHABLE                                                    syscall.Errno = 1232
	ERROR_PROTOCOL_UNREACHABLE                                                syscall.Errno = 1233
	ERROR_PORT_UNREACHABLE                                                    syscall.Errno = 1234
	ERROR_REQUEST_ABORTED                                                     syscall.Errno = 1235
	ERROR_CONNECTION_ABORTED                                                  syscall.Errno = 1236
	ERROR_RETRY                                                               syscall.Errno = 1237
	ERROR_CONNECTION_COUNT_LIMIT                                              syscall.Errno = 1238
	ERROR_LOGIN_TIME_RESTRICTION                                              syscall.Errno = 1239
	ERROR_LOGIN_WKSTA_RESTRICTION                                             syscall.Errno = 1240
	ERROR_INCORRECT_ADDRESS                                                   syscall.Errno = 1241
	ERROR_ALREADY_REGISTERED                                                  syscall.Errno = 1242
	ERROR_SERVICE_NOT_FOUND                                                   syscall.Errno = 1243
	ERROR_NOT_AUTHENTICATED                                                   syscall.Errno = 1244
	ERROR_NOT_LOGGED_ON                                                       syscall.Errno = 1245
	ERROR_CONTINUE                                                            syscall.Errno = 1246
	ERROR_ALREADY_INITIALIZED                                                 syscall.Errno = 1247
	ERROR_NO_MORE_DEVICES                                                     syscall.Errno = 1248
	ERROR_NO_SUCH_SITE                                                        syscall.Errno = 1249
	ERROR_DOMAIN_CONTROLLER_EXISTS                                            syscall.Errno = 1250
	ERROR_ONLY_IF_CONNECTED                                                   syscall.Errno = 1251
	ERROR_OVERRIDE_NOCHANGES                                                  syscall.Errno = 1252
	ERROR_BAD_USER_PROFILE                                                    syscall.Errno = 1253
	ERROR_NOT_SUPPORTED_ON_SBS                                                syscall.Errno = 1254
	ERROR_SERVER_SHUTDOWN_IN_PROGRESS                                         syscall.Errno = 1255
	ERROR_HOST_DOWN                                                           syscall.Errno = 1256
	ERROR_NON_ACCOUNT_SID                                                     syscall.Errno = 1257
	ERROR_NON_DOMAIN_SID                                                      syscall.Errno = 1258
	ERROR_APPHELP_BLOCK                                                       syscall.Errno = 1259
	ERROR_ACCESS_DISABLED_BY_POLICY                                           syscall.Errno = 1260
	ERROR_REG_NAT_CONSUMPTION                                                 syscall.Errno = 1261
	ERROR_CSCSHARE_OFFLINE                                                    syscall.Errno = 1262
	ERROR_PKINIT_FAILURE                                                      syscall.Errno = 1263
	ERROR_SMARTCARD_SUBSYSTEM_FAILURE                                         syscall.Errno = 1264
	ERROR_DOWNGRADE_DETECTED                                                  syscall.Errno = 1265
	ERROR_MACHINE_LOCKED                                                      syscall.Errno = 1271
	ERROR_SMB_GUEST_LOGON_BLOCKED                                             syscall.Errno = 1272
	ERROR_CALLBACK_SUPPLIED_INVALID_DATA                                      syscall.Errno = 1273
	ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED                                    syscall.Errno = 1274
	ERROR_DRIVER_BLOCKED                                                      syscall.Errno = 1275
	ERROR_INVALID_IMPORT_OF_NON_DLL                                           syscall.Errno = 1276
	ERROR_ACCESS_DISABLED_WEBBLADE                                            syscall.Errno = 1277
	ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER                                     syscall.Errno = 1278
	ERROR_RECOVERY_FAILURE                                                    syscall.Errno = 1279
	ERROR_ALREADY_FIBER                                                       syscall.Errno = 1280
	ERROR_ALREADY_THREAD                                                      syscall.Errno = 1281
	ERROR_STACK_BUFFER_OVERRUN                                                syscall.Errno = 1282
	ERROR_PARAMETER_QUOTA_EXCEEDED                                            syscall.Errno = 1283
	ERROR_DEBUGGER_INACTIVE                                                   syscall.Errno = 1284
	ERROR_DELAY_LOAD_FAILED                                                   syscall.Errno = 1285
	ERROR_VDM_DISALLOWED                                                      syscall.Errno = 1286
	ERROR_UNIDENTIFIED_ERROR                                                  syscall.Errno = 1287
	ERROR_INVALID_CRUNTIME_PARAMETER                                          syscall.Errno = 1288
	ERROR_BEYOND_VDL                                                          syscall.Errno = 1289
	ERROR_INCOMPATIBLE_SERVICE_SID_TYPE                                       syscall.Errno = 1290
	ERROR_DRIVER_PROCESS_TERMINATED                                           syscall.Errno = 1291
	ERROR_IMPLEMENTATION_LIMIT                                                syscall.Errno = 1292
	ERROR_PROCESS_IS_PROTECTED                                                syscall.Errno = 1293
	ERROR_SERVICE_NOTIFY_CLIENT_LAGGING                                       syscall.Errno = 1294
	ERROR_DISK_QUOTA_EXCEEDED                                                 syscall.Errno = 1295
	ERROR_CONTENT_BLOCKED                                                     syscall.Errno = 1296
	ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE                                      syscall.Errno = 1297
	ERROR_APP_HANG                                                            syscall.Errno = 1298
	ERROR_INVALID_LABEL                                                       syscall.Errno = 1299
	ERROR_NOT_ALL_ASSIGNED                                                    syscall.Errno = 1300
	ERROR_SOME_NOT_MAPPED                                                     syscall.Errno = 1301
	ERROR_NO_QUOTAS_FOR_ACCOUNT                                               syscall.Errno = 1302
	ERROR_LOCAL_USER_SESSION_KEY                                              syscall.Errno = 1303
	ERROR_NULL_LM_PASSWORD                                                    syscall.Errno = 1304
	ERROR_UNKNOWN_REVISION                                                    syscall.Errno = 1305
	ERROR_REVISION_MISMATCH                                                   syscall.Errno = 1306
	ERROR_INVALID_OWNER                                                       syscall.Errno = 1307
	ERROR_INVALID_PRIMARY_GROUP                                               syscall.Errno = 1308
	ERROR_NO_IMPERSONATION_TOKEN                                              syscall.Errno = 1309
	ERROR_CANT_DISABLE_MANDATORY                                              syscall.Errno = 1310
	ERROR_NO_LOGON_SERVERS                                                    syscall.Errno = 1311
	ERROR_NO_SUCH_LOGON_SESSION                                               syscall.Errno = 1312
	ERROR_NO_SUCH_PRIVILEGE                                                   syscall.Errno = 1313
	ERROR_PRIVILEGE_NOT_HELD                                                  syscall.Errno = 1314
	ERROR_INVALID_ACCOUNT_NAME                                                syscall.Errno = 1315
	ERROR_USER_EXISTS                                                         syscall.Errno = 1316
	ERROR_NO_SUCH_USER                                                        syscall.Errno = 1317
	ERROR_GROUP_EXISTS                                                        syscall.Errno = 1318
	ERROR_NO_SUCH_GROUP                                                       syscall.Errno = 1319
	ERROR_MEMBER_IN_GROUP                                                     syscall.Errno = 1320
	ERROR_MEMBER_NOT_IN_GROUP                                                 syscall.Errno = 1321
	ERROR_LAST_ADMIN                                                          syscall.Errno = 1322
	ERROR_WRONG_PASSWORD                                                      syscall.Errno = 1323
	ERROR_ILL_FORMED_PASSWORD                                                 syscall.Errno = 1324
	ERROR_PASSWORD_RESTRICTION                                                syscall.Errno = 1325
	ERROR_LOGON_FAILURE                                                       syscall.Errno = 1326
	ERROR_ACCOUNT_RESTRICTION                                                 syscall.Errno = 1327
	ERROR_INVALID_LOGON_HOURS                                                 syscall.Errno = 1328
	ERROR_INVALID_WORKSTATION                                                 syscall.Errno = 1329
	ERROR_PASSWORD_EXPIRED                                                    syscall.Errno = 1330
	ERROR_ACCOUNT_DISABLED                                                    syscall.Errno = 1331
	ERROR_NONE_MAPPED                                                         syscall.Errno = 1332
	ERROR_TOO_MANY_LUIDS_REQUESTED                                            syscall.Errno = 1333
	ERROR_LUIDS_EXHAUSTED                                                     syscall.Errno = 1334
	ERROR_INVALID_SUB_AUTHORITY                                               syscall.Errno = 1335
	ERROR_INVALID_ACL                                                         syscall.Errno = 1336
	ERROR_INVALID_SID                                                         syscall.Errno = 1337
	ERROR_INVALID_SECURITY_DESCR                                              syscall.Errno = 1338
	ERROR_BAD_INHERITANCE_ACL                                                 syscall.Errno = 1340
	ERROR_SERVER_DISABLED                                                     syscall.Errno = 1341
	ERROR_SERVER_NOT_DISABLED                                                 syscall.Errno = 1342
	ERROR_INVALID_ID_AUTHORITY                                                syscall.Errno = 1343
	ERROR_ALLOTTED_SPACE_EXCEEDED                                             syscall.Errno = 1344
	ERROR_INVALID_GROUP_ATTRIBUTES                                            syscall.Errno = 1345
	ERROR_BAD_IMPERSONATION_LEVEL                                             syscall.Errno = 1346
	ERROR_CANT_OPEN_ANONYMOUS                                                 syscall.Errno = 1347
	ERROR_BAD_VALIDATION_CLASS                                                syscall.Errno = 1348
	ERROR_BAD_TOKEN_TYPE                                                      syscall.Errno = 1349
	ERROR_NO_SECURITY_ON_OBJECT                                               syscall.Errno = 1350
	ERROR_CANT_ACCESS_DOMAIN_INFO                                             syscall.Errno = 1351
	ERROR_INVALID_SERVER_STATE                                                syscall.Errno = 1352
	ERROR_INVALID_DOMAIN_STATE                                                syscall.Errno = 1353
	ERROR_INVALID_DOMAIN_ROLE                                                 syscall.Errno = 1354
	ERROR_NO_SUCH_DOMAIN                                                      syscall.Errno = 1355
	ERROR_DOMAIN_EXISTS                                                       syscall.Errno = 1356
	ERROR_DOMAIN_LIMIT_EXCEEDED                                               syscall.Errno = 1357
	ERROR_INTERNAL_DB_CORRUPTION                                              syscall.Errno = 1358
	ERROR_INTERNAL_ERROR                                                      syscall.Errno = 1359
	ERROR_GENERIC_NOT_MAPPED                                                  syscall.Errno = 1360
	ERROR_BAD_DESCRIPTOR_FORMAT                                               syscall.Errno = 1361
	ERROR_NOT_LOGON_PROCESS                                                   syscall.Errno = 1362
	ERROR_LOGON_SESSION_EXISTS                                                syscall.Errno = 1363
	ERROR_NO_SUCH_PACKAGE                                                     syscall.Errno = 1364
	ERROR_BAD_LOGON_SESSION_STATE                                             syscall.Errno = 1365
	ERROR_LOGON_SESSION_COLLISION                                             syscall.Errno = 1366
	ERROR_INVALID_LOGON_TYPE                                                  syscall.Errno = 1367
	ERROR_CANNOT_IMPERSONATE                                                  syscall.Errno = 1368
	ERROR_RXACT_INVALID_STATE                                                 syscall.Errno = 1369
	ERROR_RXACT_COMMIT_FAILURE                                                syscall.Errno = 1370
	ERROR_SPECIAL_ACCOUNT                                                     syscall.Errno = 1371
	ERROR_SPECIAL_GROUP                                                       syscall.Errno = 1372
	ERROR_SPECIAL_USER                                                        syscall.Errno = 1373
	ERROR_MEMBERS_PRIMARY_GROUP                                               syscall.Errno = 1374
	ERROR_TOKEN_ALREADY_IN_USE                                                syscall.Errno = 1375
	ERROR_NO_SUCH_ALIAS                                                       syscall.Errno = 1376
	ERROR_MEMBER_NOT_IN_ALIAS                                                 syscall.Errno = 1377
	ERROR_MEMBER_IN_ALIAS                                                     syscall.Errno = 1378
	ERROR_ALIAS_EXISTS                                                        syscall.Errno = 1379
	ERROR_LOGON_NOT_GRANTED                                                   syscall.Errno = 1380
	ERROR_TOO_MANY_SECRETS                                                    syscall.Errno = 1381
	ERROR_SECRET_TOO_LONG                                                     syscall.Errno = 1382
	ERROR_INTERNAL_DB_ERROR                                                   syscall.Errno = 1383
	ERROR_TOO_MANY_CONTEXT_IDS                                                syscall.Errno = 1384
	ERROR_LOGON_TYPE_NOT_GRANTED                                              syscall.Errno = 1385
	ERROR_NT_CROSS_ENCRYPTION_REQUIRED                                        syscall.Errno = 1386
	ERROR_NO_SUCH_MEMBER                                                      syscall.Errno = 1387
	ERROR_INVALID_MEMBER                                                      syscall.Errno = 1388
	ERROR_TOO_MANY_SIDS                                                       syscall.Errno = 1389
	ERROR_LM_CROSS_ENCRYPTION_REQUIRED                                        syscall.Errno = 1390
	ERROR_NO_INHERITANCE                                                      syscall.Errno = 1391
	ERROR_FILE_CORRUPT                                                        syscall.Errno = 1392
	ERROR_DISK_CORRUPT                                                        syscall.Errno = 1393
	ERROR_NO_USER_SESSION_KEY                                                 syscall.Errno = 1394
	ERROR_LICENSE_QUOTA_EXCEEDED                                              syscall.Errno = 1395
	ERROR_WRONG_TARGET_NAME                                                   syscall.Errno = 1396
	ERROR_MUTUAL_AUTH_FAILED                                                  syscall.Errno = 1397
	ERROR_TIME_SKEW                                                           syscall.Errno = 1398
	ERROR_CURRENT_DOMAIN_NOT_ALLOWED                                          syscall.Errno = 1399
	ERROR_INVALID_WINDOW_HANDLE                                               syscall.Errno = 1400
	ERROR_INVALID_MENU_HANDLE                                                 syscall.Errno = 1401
	ERROR_INVALID_CURSOR_HANDLE                                               syscall.Errno = 1402
	ERROR_INVALID_ACCEL_HANDLE                                                syscall.Errno = 1403
	ERROR_INVALID_HOOK_HANDLE                                                 syscall.Errno = 1404
	ERROR_INVALID_DWP_HANDLE                                                  syscall.Errno = 1405
	ERROR_TLW_WITH_WSCHILD                                                    syscall.Errno = 1406
	ERROR_CANNOT_FIND_WND_CLASS                                               syscall.Errno = 1407
	ERROR_WINDOW_OF_OTHER_THREAD                                              syscall.Errno = 1408
	ERROR_HOTKEY_ALREADY_REGISTERED                                           syscall.Errno = 1409
	ERROR_CLASS_ALREADY_EXISTS                                                syscall.Errno = 1410
	ERROR_CLASS_DOES_NOT_EXIST                                                syscall.Errno = 1411
	ERROR_CLASS_HAS_WINDOWS                                                   syscall.Errno = 1412
	ERROR_INVALID_INDEX                                                       syscall.Errno = 1413
	ERROR_INVALID_ICON_HANDLE                                                 syscall.Errno = 1414
	ERROR_PRIVATE_DIALOG_INDEX                                                syscall.Errno = 1415
	ERROR_LISTBOX_ID_NOT_FOUND                                                syscall.Errno = 1416
	ERROR_NO_WILDCARD_CHARACTERS                                              syscall.Errno = 1417
	ERROR_CLIPBOARD_NOT_OPEN                                                  syscall.Errno = 1418
	ERROR_HOTKEY_NOT_REGISTERED                                               syscall.Errno = 1419
	ERROR_WINDOW_NOT_DIALOG                                                   syscall.Errno = 1420
	ERROR_CONTROL_ID_NOT_FOUND                                                syscall.Errno = 1421
	ERROR_INVALID_COMBOBOX_MESSAGE                                            syscall.Errno = 1422
	ERROR_WINDOW_NOT_COMBOBOX                                                 syscall.Errno = 1423
	ERROR_INVALID_EDIT_HEIGHT                                                 syscall.Errno = 1424
	ERROR_DC_NOT_FOUND                                                        syscall.Errno = 1425
	ERROR_INVALID_HOOK_FILTER                                                 syscall.Errno = 1426
	ERROR_INVALID_FILTER_PROC                                                 syscall.Errno = 1427
	ERROR_HOOK_NEEDS_HMOD                                                     syscall.Errno = 1428
	ERROR_GLOBAL_ONLY_HOOK                                                    syscall.Errno = 1429
	ERROR_JOURNAL_HOOK_SET                                                    syscall.Errno = 1430
	ERROR_HOOK_NOT_INSTALLED                                                  syscall.Errno = 1431
	ERROR_INVALID_LB_MESSAGE                                                  syscall.Errno = 1432
	ERROR_SETCOUNT_ON_BAD_LB                                                  syscall.Errno = 1433
	ERROR_LB_WITHOUT_TABSTOPS                                                 syscall.Errno = 1434
	ERROR_DESTROY_OBJECT_OF_OTHER_THREAD                                      syscall.Errno = 1435
	ERROR_CHILD_WINDOW_MENU                                                   syscall.Errno = 1436
	ERROR_NO_SYSTEM_MENU                                                      syscall.Errno = 1437
	ERROR_INVALID_MSGBOX_STYLE                                                syscall.Errno = 1438
	ERROR_INVALID_SPI_VALUE                                                   syscall.Errno = 1439
	ERROR_SCREEN_ALREADY_LOCKED                                               syscall.Errno = 1440
	ERROR_HWNDS_HAVE_DIFF_PARENT                                              syscall.Errno = 1441
	ERROR_NOT_CHILD_WINDOW                                                    syscall.Errno = 1442
	ERROR_INVALID_GW_COMMAND                                                  syscall.Errno = 1443
	ERROR_INVALID_THREAD_ID                                                   syscall.Errno = 1444
	ERROR_NON_MDICHILD_WINDOW                                                 syscall.Errno = 1445
	ERROR_POPUP_ALREADY_ACTIVE                                                syscall.Errno = 1446
	ERROR_NO_SCROLLBARS                                                       syscall.Errno = 1447
	ERROR_INVALID_SCROLLBAR_RANGE                                             syscall.Errno = 1448
	ERROR_INVALID_SHOWWIN_COMMAND                                             syscall.Errno = 1449
	ERROR_NO_SYSTEM_RESOURCES                                                 syscall.Errno = 1450
	ERROR_NONPAGED_SYSTEM_RESOURCES                                           syscall.Errno = 1451
	ERROR_PAGED_SYSTEM_RESOURCES                                              syscall.Errno = 1452
	ERROR_WORKING_SET_QUOTA                                                   syscall.Errno = 1453
	ERROR_PAGEFILE_QUOTA                                                      syscall.Errno = 1454
	ERROR_COMMITMENT_LIMIT                                                    syscall.Errno = 1455
	ERROR_MENU_ITEM_NOT_FOUND                                                 syscall.Errno = 1456
	ERROR_INVALID_KEYBOARD_HANDLE                                             syscall.Errno = 1457
	ERROR_HOOK_TYPE_NOT_ALLOWED                                               syscall.Errno = 1458
	ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION                                  syscall.Errno = 1459
	ERROR_TIMEOUT                                                             syscall.Errno = 1460
	ERROR_INVALID_MONITOR_HANDLE                                              syscall.Errno = 1461
	ERROR_INCORRECT_SIZE                                                      syscall.Errno = 1462
	ERROR_SYMLINK_CLASS_DISABLED                                              syscall.Errno = 1463
	ERROR_SYMLINK_NOT_SUPPORTED                                               syscall.Errno = 1464
	ERROR_XML_PARSE_ERROR                                                     syscall.Errno = 1465
	ERROR_XMLDSIG_ERROR                                                       syscall.Errno = 1466
	ERROR_RESTART_APPLICATION                                                 syscall.Errno = 1467
	ERROR_WRONG_COMPARTMENT                                                   syscall.Errno = 1468
	ERROR_AUTHIP_FAILURE                                                      syscall.Errno = 1469
	ERROR_NO_NVRAM_RESOURCES                                                  syscall.Errno = 1470
	ERROR_NOT_GUI_PROCESS                                                     syscall.Errno = 1471
	ERROR_EVENTLOG_FILE_CORRUPT                                               syscall.Errno = 1500
	ERROR_EVENTLOG_CANT_START                                                 syscall.Errno = 1501
	ERROR_LOG_FILE_FULL                                                       syscall.Errno = 1502
	ERROR_EVENTLOG_FILE_CHANGED                                               syscall.Errno = 1503
	ERROR_CONTAINER_ASSIGNED                                                  syscall.Errno = 1504
	ERROR_JOB_NO_CONTAINER                                                    syscall.Errno = 1505
	ERROR_INVALID_TASK_NAME                                                   syscall.Errno = 1550
	ERROR_INVALID_TASK_INDEX                                                  syscall.Errno = 1551
	ERROR_THREAD_ALREADY_IN_TASK                                              syscall.Errno = 1552
	ERROR_INSTALL_SERVICE_FAILURE                                             syscall.Errno = 1601
	ERROR_INSTALL_USEREXIT                                                    syscall.Errno = 1602
	ERROR_INSTALL_FAILURE                                                     syscall.Errno = 1603
	ERROR_INSTALL_SUSPEND                                                     syscall.Errno = 1604
	ERROR_UNKNOWN_PRODUCT                                                     syscall.Errno = 1605
	ERROR_UNKNOWN_FEATURE                                                     syscall.Errno = 1606
	ERROR_UNKNOWN_COMPONENT                                                   syscall.Errno = 1607
	ERROR_UNKNOWN_PROPERTY                                                    syscall.Errno = 1608
	ERROR_INVALID_HANDLE_STATE                                                syscall.Errno = 1609
	ERROR_BAD_CONFIGURATION                                                   syscall.Errno = 1610
	ERROR_INDEX_ABSENT                                                        syscall.Errno = 1611
	ERROR_INSTALL_SOURCE_ABSENT                                               syscall.Errno = 1612
	ERROR_INSTALL_PACKAGE_VERSION                                             syscall.Errno = 1613
	ERROR_PRODUCT_UNINSTALLED                                                 syscall.Errno = 1614
	ERROR_BAD_QUERY_SYNTAX                                                    syscall.Errno = 1615
	ERROR_INVALID_FIELD                                                       syscall.Errno = 1616
	ERROR_DEVICE_REMOVED                                                      syscall.Errno = 1617
	ERROR_INSTALL_ALREADY_RUNNING                                             syscall.Errno = 1618
	ERROR_INSTALL_PACKAGE_OPEN_FAILED                                         syscall.Errno = 1619
	ERROR_INSTALL_PACKAGE_INVALID                                             syscall.Errno = 1620
	ERROR_INSTALL_UI_FAILURE                                                  syscall.Errno = 1621
	ERROR_INSTALL_LOG_FAILURE                                                 syscall.Errno = 1622
	ERROR_INSTALL_LANGUAGE_UNSUPPORTED                                        syscall.Errno = 1623
	ERROR_INSTALL_TRANSFORM_FAILURE                                           syscall.Errno = 1624
	ERROR_INSTALL_PACKAGE_REJECTED                                            syscall.Errno = 1625
	ERROR_FUNCTION_NOT_CALLED                                                 syscall.Errno = 1626
	ERROR_FUNCTION_FAILED                                                     syscall.Errno = 1627
	ERROR_INVALID_TABLE                                                       syscall.Errno = 1628
	ERROR_DATATYPE_MISMATCH                                                   syscall.Errno = 1629
	ERROR_UNSUPPORTED_TYPE                                                    syscall.Errno = 1630
	ERROR_CREATE_FAILED                                                       syscall.Errno = 1631
	ERROR_INSTALL_TEMP_UNWRITABLE                                             syscall.Errno = 1632
	ERROR_INSTALL_PLATFORM_UNSUPPORTED                                        syscall.Errno = 1633
	ERROR_INSTALL_NOTUSED                                                     syscall.Errno = 1634
	ERROR_PATCH_PACKAGE_OPEN_FAILED                                           syscall.Errno = 1635
	ERROR_PATCH_PACKAGE_INVALID                                               syscall.Errno = 1636
	ERROR_PATCH_PACKAGE_UNSUPPORTED                                           syscall.Errno = 1637
	ERROR_PRODUCT_VERSION                                                     syscall.Errno = 1638
	ERROR_INVALID_COMMAND_LINE                                                syscall.Errno = 1639
	ERROR_INSTALL_REMOTE_DISALLOWED                                           syscall.Errno = 1640
	ERROR_SUCCESS_REBOOT_INITIATED                                            syscall.Errno = 1641
	ERROR_PATCH_TARGET_NOT_FOUND                                              syscall.Errno = 1642
	ERROR_PATCH_PACKAGE_REJECTED                                              syscall.Errno = 1643
	ERROR_INSTALL_TRANSFORM_REJECTED                                          syscall.Errno = 1644
	ERROR_INSTALL_REMOTE_PROHIBITED                                           syscall.Errno = 1645
	ERROR_PATCH_REMOVAL_UNSUPPORTED                                           syscall.Errno = 1646
	ERROR_UNKNOWN_PATCH                                                       syscall.Errno = 1647
	ERROR_PATCH_NO_SEQUENCE                                                   syscall.Errno = 1648
	ERROR_PATCH_REMOVAL_DISALLOWED                                            syscall.Errno = 1649
	ERROR_INVALID_PATCH_XML                                                   syscall.Errno = 1650
	ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT                                    syscall.Errno = 1651
	ERROR_INSTALL_SERVICE_SAFEBOOT                                            syscall.Errno = 1652
	ERROR_FAIL_FAST_EXCEPTION                                                 syscall.Errno = 1653
	ERROR_INSTALL_REJECTED                                                    syscall.Errno = 1654
	ERROR_DYNAMIC_CODE_BLOCKED                                                syscall.Errno = 1655
	ERROR_NOT_SAME_OBJECT                                                     syscall.Errno = 1656
	ERROR_STRICT_CFG_VIOLATION                                                syscall.Errno = 1657
	ERROR_SET_CONTEXT_DENIED                                                  syscall.Errno = 1660
	ERROR_CROSS_PARTITION_VIOLATION                                           syscall.Errno = 1661
	RPC_S_INVALID_STRING_BINDING                                              syscall.Errno = 1700
	RPC_S_WRONG_KIND_OF_BINDING                                               syscall.Errno = 1701
	RPC_S_INVALID_BINDING                                                     syscall.Errno = 1702
	RPC_S_PROTSEQ_NOT_SUPPORTED                                               syscall.Errno = 1703
	RPC_S_INVALID_RPC_PROTSEQ                                                 syscall.Errno = 1704
	RPC_S_INVALID_STRING_UUID                                                 syscall.Errno = 1705
	RPC_S_INVALID_ENDPOINT_FORMAT                                             syscall.Errno = 1706
	RPC_S_INVALID_NET_ADDR                                                    syscall.Errno = 1707
	RPC_S_NO_ENDPOINT_FOUND                                                   syscall.Errno = 1708
	RPC_S_INVALID_TIMEOUT                                                     syscall.Errno = 1709
	RPC_S_OBJECT_NOT_FOUND                                                    syscall.Errno = 1710
	RPC_S_ALREADY_REGISTERED                                                  syscall.Errno = 1711
	RPC_S_TYPE_ALREADY_REGISTERED                                             syscall.Errno = 1712
	RPC_S_ALREADY_LISTENING                                                   syscall.Errno = 1713
	RPC_S_NO_PROTSEQS_REGISTERED                                              syscall.Errno = 1714
	RPC_S_NOT_LISTENING                                                       syscall.Errno = 1715
	RPC_S_UNKNOWN_MGR_TYPE                                                    syscall.Errno = 1716
	RPC_S_UNKNOWN_IF                                                          syscall.Errno = 1717
	RPC_S_NO_BINDINGS                                                         syscall.Errno = 1718
	RPC_S_NO_PROTSEQS                                                         syscall.Errno = 1719
	RPC_S_CANT_CREATE_ENDPOINT                                                syscall.Errno = 1720
	RPC_S_OUT_OF_RESOURCES                                                    syscall.Errno = 1721
	RPC_S_SERVER_UNAVAILABLE                                                  syscall.Errno = 1722
	RPC_S_SERVER_TOO_BUSY                                                     syscall.Errno = 1723
	RPC_S_INVALID_NETWORK_OPTIONS                                             syscall.Errno = 1724
	RPC_S_NO_CALL_ACTIVE                                                      syscall.Errno = 1725
	RPC_S_CALL_FAILED                                                         syscall.Errno = 1726
	RPC_S_CALL_FAILED_DNE                                                     syscall.Errno = 1727
	RPC_S_PROTOCOL_ERROR                                                      syscall.Errno = 1728
	RPC_S_PROXY_ACCESS_DENIED                                                 syscall.Errno = 1729
	RPC_S_UNSUPPORTED_TRANS_SYN                                               syscall.Errno = 1730
	RPC_S_UNSUPPORTED_TYPE                                                    syscall.Errno = 1732
	RPC_S_INVALID_TAG                                                         syscall.Errno = 1733
	RPC_S_INVALID_BOUND                                                       syscall.Errno = 1734
	RPC_S_NO_ENTRY_NAME                                                       syscall.Errno = 1735
	RPC_S_INVALID_NAME_SYNTAX                                                 syscall.Errno = 1736
	RPC_S_UNSUPPORTED_NAME_SYNTAX                                             syscall.Errno = 1737
	RPC_S_UUID_NO_ADDRESS                                                     syscall.Errno = 1739
	RPC_S_DUPLICATE_ENDPOINT                                                  syscall.Errno = 1740
	RPC_S_UNKNOWN_AUTHN_TYPE                                                  syscall.Errno = 1741
	RPC_S_MAX_CALLS_TOO_SMALL                                                 syscall.Errno = 1742
	RPC_S_STRING_TOO_LONG                                                     syscall.Errno = 1743
	RPC_S_PROTSEQ_NOT_FOUND                                                   syscall.Errno = 1744
	RPC_S_PROCNUM_OUT_OF_RANGE                                                syscall.Errno = 1745
	RPC_S_BINDING_HAS_NO_AUTH                                                 syscall.Errno = 1746
	RPC_S_UNKNOWN_AUTHN_SERVICE                                               syscall.Errno = 1747
	RPC_S_UNKNOWN_AUTHN_LEVEL                                                 syscall.Errno = 1748
	RPC_S_INVALID_AUTH_IDENTITY                                               syscall.Errno = 1749
	RPC_S_UNKNOWN_AUTHZ_SERVICE                                               syscall.Errno = 1750
	EPT_S_INVALID_ENTRY                                                       syscall.Errno = 1751
	EPT_S_CANT_PERFORM_OP                                                     syscall.Errno = 1752
	EPT_S_NOT_REGISTERED                                                      syscall.Errno = 1753
	RPC_S_NOTHING_TO_EXPORT                                                   syscall.Errno = 1754
	RPC_S_INCOMPLETE_NAME                                                     syscall.Errno = 1755
	RPC_S_INVALID_VERS_OPTION                                                 syscall.Errno = 1756
	RPC_S_NO_MORE_MEMBERS                                                     syscall.Errno = 1757
	RPC_S_NOT_ALL_OBJS_UNEXPORTED                                             syscall.Errno = 1758
	RPC_S_INTERFACE_NOT_FOUND                                                 syscall.Errno = 1759
	RPC_S_ENTRY_ALREADY_EXISTS                                                syscall.Errno = 1760
	RPC_S_ENTRY_NOT_FOUND                                                     syscall.Errno = 1761
	RPC_S_NAME_SERVICE_UNAVAILABLE                                            syscall.Errno = 1762
	RPC_S_INVALID_NAF_ID                                                      syscall.Errno = 1763
	RPC_S_CANNOT_SUPPORT                                                      syscall.Errno = 1764
	RPC_S_NO_CONTEXT_AVAILABLE                                                syscall.Errno = 1765
	RPC_S_INTERNAL_ERROR                                                      syscall.Errno = 1766
	RPC_S_ZERO_DIVIDE                                                         syscall.Errno = 1767
	RPC_S_ADDRESS_ERROR                                                       syscall.Errno = 1768
	RPC_S_FP_DIV_ZERO                                                         syscall.Errno = 1769
	RPC_S_FP_UNDERFLOW                                                        syscall.Errno = 1770
	RPC_S_FP_OVERFLOW                                                         syscall.Errno = 1771
	RPC_X_NO_MORE_ENTRIES                                                     syscall.Errno = 1772
	RPC_X_SS_CHAR_TRANS_OPEN_FAIL                                             syscall.Errno = 1773
	RPC_X_SS_CHAR_TRANS_SHORT_FILE                                            syscall.Errno = 1774
	RPC_X_SS_IN_NULL_CONTEXT                                                  syscall.Errno = 1775
	RPC_X_SS_CONTEXT_DAMAGED                                                  syscall.Errno = 1777
	RPC_X_SS_HANDLES_MISMATCH                                                 syscall.Errno = 1778
	RPC_X_SS_CANNOT_GET_CALL_HANDLE                                           syscall.Errno = 1779
	RPC_X_NULL_REF_POINTER                                                    syscall.Errno = 1780
	RPC_X_ENUM_VALUE_OUT_OF_RANGE                                             syscall.Errno = 1781
	RPC_X_BYTE_COUNT_TOO_SMALL                                                syscall.Errno = 1782
	RPC_X_BAD_STUB_DATA                                                       syscall.Errno = 1783
	ERROR_INVALID_USER_BUFFER                                                 syscall.Errno = 1784
	ERROR_UNRECOGNIZED_MEDIA                                                  syscall.Errno = 1785
	ERROR_NO_TRUST_LSA_SECRET                                                 syscall.Errno = 1786
	ERROR_NO_TRUST_SAM_ACCOUNT                                                syscall.Errno = 1787
	ERROR_TRUSTED_DOMAIN_FAILURE                                              syscall.Errno = 1788
	ERROR_TRUSTED_RELATIONSHIP_FAILURE                                        syscall.Errno = 1789
	ERROR_TRUST_FAILURE                                                       syscall.Errno = 1790
	RPC_S_CALL_IN_PROGRESS                                                    syscall.Errno = 1791
	ERROR_NETLOGON_NOT_STARTED                                                syscall.Errno = 1792
	ERROR_ACCOUNT_EXPIRED                                                     syscall.Errno = 1793
	ERROR_REDIRECTOR_HAS_OPEN_HANDLES                                         syscall.Errno = 1794
	ERROR_PRINTER_DRIVER_ALREADY_INSTALLED                                    syscall.Errno = 1795
	ERROR_UNKNOWN_PORT                                                        syscall.Errno = 1796
	ERROR_UNKNOWN_PRINTER_DRIVER                                              syscall.Errno = 1797
	ERROR_UNKNOWN_PRINTPROCESSOR                                              syscall.Errno = 1798
	ERROR_INVALID_SEPARATOR_FILE                                              syscall.Errno = 1799
	ERROR_INVALID_PRIORITY                                                    syscall.Errno = 1800
	ERROR_INVALID_PRINTER_NAME                                                syscall.Errno = 1801
	ERROR_PRINTER_ALREADY_EXISTS                                              syscall.Errno = 1802
	ERROR_INVALID_PRINTER_COMMAND                                             syscall.Errno = 1803
	ERROR_INVALID_DATATYPE                                                    syscall.Errno = 1804
	ERROR_INVALID_ENVIRONMENT                                                 syscall.Errno = 1805
	RPC_S_NO_MORE_BINDINGS                                                    syscall.Errno = 1806
	ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT                                   syscall.Errno = 1807
	ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT                                   syscall.Errno = 1808
	ERROR_NOLOGON_SERVER_TRUST_ACCOUNT                                        syscall.Errno = 1809
	ERROR_DOMAIN_TRUST_INCONSISTENT                                           syscall.Errno = 1810
	ERROR_SERVER_HAS_OPEN_HANDLES                                             syscall.Errno = 1811
	ERROR_RESOURCE_DATA_NOT_FOUND                                             syscall.Errno = 1812
	ERROR_RESOURCE_TYPE_NOT_FOUND                                             syscall.Errno = 1813
	ERROR_RESOURCE_NAME_NOT_FOUND                                             syscall.Errno = 1814
	ERROR_RESOURCE_LANG_NOT_FOUND                                             syscall.Errno = 1815
	ERROR_NOT_ENOUGH_QUOTA                                                    syscall.Errno = 1816
	RPC_S_NO_INTERFACES                                                       syscall.Errno = 1817
	RPC_S_CALL_CANCELLED                                                      syscall.Errno = 1818
	RPC_S_BINDING_INCOMPLETE                                                  syscall.Errno = 1819
	RPC_S_COMM_FAILURE                                                        syscall.Errno = 1820
	RPC_S_UNSUPPORTED_AUTHN_LEVEL                                             syscall.Errno = 1821
	RPC_S_NO_PRINC_NAME                                                       syscall.Errno = 1822
	RPC_S_NOT_RPC_ERROR                                                       syscall.Errno = 1823
	RPC_S_UUID_LOCAL_ONLY                                                     syscall.Errno = 1824
	RPC_S_SEC_PKG_ERROR                                                       syscall.Errno = 1825
	RPC_S_NOT_CANCELLED                                                       syscall.Errno = 1826
	RPC_X_INVALID_ES_ACTION                                                   syscall.Errno = 1827
	RPC_X_WRONG_ES_VERSION                                                    syscall.Errno = 1828
	RPC_X_WRONG_STUB_VERSION                                                  syscall.Errno = 1829
	RPC_X_INVALID_PIPE_OBJECT                                                 syscall.Errno = 1830
	RPC_X_WRONG_PIPE_ORDER                                                    syscall.Errno = 1831
	RPC_X_WRONG_PIPE_VERSION                                                  syscall.Errno = 1832
	RPC_S_COOKIE_AUTH_FAILED                                                  syscall.Errno = 1833
	RPC_S_DO_NOT_DISTURB                                                      syscall.Errno = 1834
	RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED                                        syscall.Errno = 1835
	RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH                                         syscall.Errno = 1836
	RPC_S_GROUP_MEMBER_NOT_FOUND                                              syscall.Errno = 1898
	EPT_S_CANT_CREATE                                                         syscall.Errno = 1899
	RPC_S_INVALID_OBJECT                                                      syscall.Errno = 1900
	ERROR_INVALID_TIME                                                        syscall.Errno = 1901
	ERROR_INVALID_FORM_NAME                                                   syscall.Errno = 1902
	ERROR_INVALID_FORM_SIZE                                                   syscall.Errno = 1903
	ERROR_ALREADY_WAITING                                                     syscall.Errno = 1904
	ERROR_PRINTER_DELETED                                                     syscall.Errno = 1905
	ERROR_INVALID_PRINTER_STATE                                               syscall.Errno = 1906
	ERROR_PASSWORD_MUST_CHANGE                                                syscall.Errno = 1907
	ERROR_DOMAIN_CONTROLLER_NOT_FOUND                                         syscall.Errno = 1908
	ERROR_ACCOUNT_LOCKED_OUT                                                  syscall.Errno = 1909
	OR_INVALID_OXID                                                           syscall.Errno = 1910
	OR_INVALID_OID                                                            syscall.Errno = 1911
	OR_INVALID_SET                                                            syscall.Errno = 1912
	RPC_S_SEND_INCOMPLETE                                                     syscall.Errno = 1913
	RPC_S_INVALID_ASYNC_HANDLE                                                syscall.Errno = 1914
	RPC_S_INVALID_ASYNC_CALL                                                  syscall.Errno = 1915
	RPC_X_PIPE_CLOSED                                                         syscall.Errno = 1916
	RPC_X_PIPE_DISCIPLINE_ERROR                                               syscall.Errno = 1917
	RPC_X_PIPE_EMPTY                                                          syscall.Errno = 1918
	ERROR_NO_SITENAME                                                         syscall.Errno = 1919
	ERROR_CANT_ACCESS_FILE                                                    syscall.Errno = 1920
	ERROR_CANT_RESOLVE_FILENAME                                               syscall.Errno = 1921
	RPC_S_ENTRY_TYPE_MISMATCH                                                 syscall.Errno = 1922
	RPC_S_NOT_ALL_OBJS_EXPORTED                                               syscall.Errno = 1923
	RPC_S_INTERFACE_NOT_EXPORTED                                              syscall.Errno = 1924
	RPC_S_PROFILE_NOT_ADDED                                                   syscall.Errno = 1925
	RPC_S_PRF_ELT_NOT_ADDED                                                   syscall.Errno = 1926
	RPC_S_PRF_ELT_NOT_REMOVED                                                 syscall.Errno = 1927
	RPC_S_GRP_ELT_NOT_ADDED                                                   syscall.Errno = 1928
	RPC_S_GRP_ELT_NOT_REMOVED                                                 syscall.Errno = 1929
	ERROR_KM_DRIVER_BLOCKED                                                   syscall.Errno = 1930
	ERROR_CONTEXT_EXPIRED                                                     syscall.Errno = 1931
	ERROR_PER_USER_TRUST_QUOTA_EXCEEDED                                       syscall.Errno = 1932
	ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED                                       syscall.Errno = 1933
	ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED                                    syscall.Errno = 1934
	ERROR_AUTHENTICATION_FIREWALL_FAILED                                      syscall.Errno = 1935
	ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED                                    syscall.Errno = 1936
	ERROR_NTLM_BLOCKED                                                        syscall.Errno = 1937
	ERROR_PASSWORD_CHANGE_REQUIRED                                            syscall.Errno = 1938
	ERROR_LOST_MODE_LOGON_RESTRICTION                                         syscall.Errno = 1939
	ERROR_INVALID_PIXEL_FORMAT                                                syscall.Errno = 2000
	ERROR_BAD_DRIVER                                                          syscall.Errno = 2001
	ERROR_INVALID_WINDOW_STYLE                                                syscall.Errno = 2002
	ERROR_METAFILE_NOT_SUPPORTED                                              syscall.Errno = 2003
	ERROR_TRANSFORM_NOT_SUPPORTED                                             syscall.Errno = 2004
	ERROR_CLIPPING_NOT_SUPPORTED                                              syscall.Errno = 2005
	ERROR_INVALID_CMM                                                         syscall.Errno = 2010
	ERROR_INVALID_PROFILE                                                     syscall.Errno = 2011
	ERROR_TAG_NOT_FOUND                                                       syscall.Errno = 2012
	ERROR_TAG_NOT_PRESENT                                                     syscall.Errno = 2013
	ERROR_DUPLICATE_TAG                                                       syscall.Errno = 2014
	ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE                                  syscall.Errno = 2015
	ERROR_PROFILE_NOT_FOUND                                                   syscall.Errno = 2016
	ERROR_INVALID_COLORSPACE                                                  syscall.Errno = 2017
	ERROR_ICM_NOT_ENABLED                                                     syscall.Errno = 2018
	ERROR_DELETING_ICM_XFORM                                                  syscall.Errno = 2019
	ERROR_INVALID_TRANSFORM                                                   syscall.Errno = 2020
	ERROR_COLORSPACE_MISMATCH                                                 syscall.Errno = 2021
	ERROR_INVALID_COLORINDEX                                                  syscall.Errno = 2022
	ERROR_PROFILE_DOES_NOT_MATCH_DEVICE                                       syscall.Errno = 2023
	ERROR_CONNECTED_OTHER_PASSWORD                                            syscall.Errno = 2108
	ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT                                    syscall.Errno = 2109
	ERROR_BAD_USERNAME                                                        syscall.Errno = 2202
	ERROR_NOT_CONNECTED                                                       syscall.Errno = 2250
	ERROR_OPEN_FILES                                                          syscall.Errno = 2401
	ERROR_ACTIVE_CONNECTIONS                                                  syscall.Errno = 2402
	ERROR_DEVICE_IN_USE                                                       syscall.Errno = 2404
	ERROR_UNKNOWN_PRINT_MONITOR                                               syscall.Errno = 3000
	ERROR_PRINTER_DRIVER_IN_USE                                               syscall.Errno = 3001
	ERROR_SPOOL_FILE_NOT_FOUND                                                syscall.Errno = 3002
	ERROR_SPL_NO_STARTDOC                                                     syscall.Errno = 3003
	ERROR_SPL_NO_ADDJOB                                                       syscall.Errno = 3004
	ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED                                   syscall.Errno = 3005
	ERROR_PRINT_MONITOR_ALREADY_INSTALLED                                     syscall.Errno = 3006
	ERROR_INVALID_PRINT_MONITOR                                               syscall.Errno = 3007
	ERROR_PRINT_MONITOR_IN_USE                                                syscall.Errno = 3008
	ERROR_PRINTER_HAS_JOBS_QUEUED                                             syscall.Errno = 3009
	ERROR_SUCCESS_REBOOT_REQUIRED                                             syscall.Errno = 3010
	ERROR_SUCCESS_RESTART_REQUIRED                                            syscall.Errno = 3011
	ERROR_PRINTER_NOT_FOUND                                                   syscall.Errno = 3012
	ERROR_PRINTER_DRIVER_WARNED                                               syscall.Errno = 3013
	ERROR_PRINTER_DRIVER_BLOCKED                                              syscall.Errno = 3014
	ERROR_PRINTER_DRIVER_PACKAGE_IN_USE                                       syscall.Errno = 3015
	ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND                                       syscall.Errno = 3016
	ERROR_FAIL_REBOOT_REQUIRED                                                syscall.Errno = 3017
	ERROR_FAIL_REBOOT_INITIATED                                               syscall.Errno = 3018
	ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED                                      syscall.Errno = 3019
	ERROR_PRINT_JOB_RESTART_REQUIRED                                          syscall.Errno = 3020
	ERROR_INVALID_PRINTER_DRIVER_MANIFEST                                     syscall.Errno = 3021
	ERROR_PRINTER_NOT_SHAREABLE                                               syscall.Errno = 3022
	ERROR_REQUEST_PAUSED                                                      syscall.Errno = 3050
	ERROR_APPEXEC_CONDITION_NOT_SATISFIED                                     syscall.Errno = 3060
	ERROR_APPEXEC_HANDLE_INVALIDATED                                          syscall.Errno = 3061
	ERROR_APPEXEC_INVALID_HOST_GENERATION                                     syscall.Errno = 3062
	ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION                             syscall.Errno = 3063
	ERROR_APPEXEC_INVALID_HOST_STATE                                          syscall.Errno = 3064
	ERROR_APPEXEC_NO_DONOR                                                    syscall.Errno = 3065
	ERROR_APPEXEC_HOST_ID_MISMATCH                                            syscall.Errno = 3066
	ERROR_APPEXEC_UNKNOWN_USER                                                syscall.Errno = 3067
	ERROR_IO_REISSUE_AS_CACHED                                                syscall.Errno = 3950
	ERROR_WINS_INTERNAL                                                       syscall.Errno = 4000
	ERROR_CAN_NOT_DEL_LOCAL_WINS                                              syscall.Errno = 4001
	ERROR_STATIC_INIT                                                         syscall.Errno = 4002
	ERROR_INC_BACKUP                                                          syscall.Errno = 4003
	ERROR_FULL_BACKUP                                                         syscall.Errno = 4004
	ERROR_REC_NON_EXISTENT                                                    syscall.Errno = 4005
	ERROR_RPL_NOT_ALLOWED                                                     syscall.Errno = 4006
	PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED                            syscall.Errno = 4050
	PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO                                   syscall.Errno = 4051
	PEERDIST_ERROR_MISSING_DATA                                               syscall.Errno = 4052
	PEERDIST_ERROR_NO_MORE                                                    syscall.Errno = 4053
	PEERDIST_ERROR_NOT_INITIALIZED                                            syscall.Errno = 4054
	PEERDIST_ERROR_ALREADY_INITIALIZED                                        syscall.Errno = 4055
	PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS                                       syscall.Errno = 4056
	PEERDIST_ERROR_INVALIDATED                                                syscall.Errno = 4057
	PEERDIST_ERROR_ALREADY_EXISTS                                             syscall.Errno = 4058
	PEERDIST_ERROR_OPERATION_NOTFOUND                                         syscall.Errno = 4059
	PEERDIST_ERROR_ALREADY_COMPLETED                                          syscall.Errno = 4060
	PEERDIST_ERROR_OUT_OF_BOUNDS                                              syscall.Errno = 4061
	PEERDIST_ERROR_VERSION_UNSUPPORTED                                        syscall.Errno = 4062
	PEERDIST_ERROR_INVALID_CONFIGURATION                                      syscall.Errno = 4063
	PEERDIST_ERROR_NOT_LICENSED                                               syscall.Errno = 4064
	PEERDIST_ERROR_SERVICE_UNAVAILABLE                                        syscall.Errno = 4065
	PEERDIST_ERROR_TRUST_FAILURE                                              syscall.Errno = 4066
	ERROR_DHCP_ADDRESS_CONFLICT                                               syscall.Errno = 4100
	ERROR_WMI_GUID_NOT_FOUND                                                  syscall.Errno = 4200
	ERROR_WMI_INSTANCE_NOT_FOUND                                              syscall.Errno = 4201
	ERROR_WMI_ITEMID_NOT_FOUND                                                syscall.Errno = 4202
	ERROR_WMI_TRY_AGAIN                                                       syscall.Errno = 4203
	ERROR_WMI_DP_NOT_FOUND                                                    syscall.Errno = 4204
	ERROR_WMI_UNRESOLVED_INSTANCE_REF                                         syscall.Errno = 4205
	ERROR_WMI_ALREADY_ENABLED                                                 syscall.Errno = 4206
	ERROR_WMI_GUID_DISCONNECTED                                               syscall.Errno = 4207
	ERROR_WMI_SERVER_UNAVAILABLE                                              syscall.Errno = 4208
	ERROR_WMI_DP_FAILED                                                       syscall.Errno = 4209
	ERROR_WMI_INVALID_MOF                                                     syscall.Errno = 4210
	ERROR_WMI_INVALID_REGINFO                                                 syscall.Errno = 4211
	ERROR_WMI_ALREADY_DISABLED                                                syscall.Errno = 4212
	ERROR_WMI_READ_ONLY                                                       syscall.Errno = 4213
	ERROR_WMI_SET_FAILURE                                                     syscall.Errno = 4214
	ERROR_NOT_APPCONTAINER                                                    syscall.Errno = 4250
	ERROR_APPCONTAINER_REQUIRED                                               syscall.Errno = 4251
	ERROR_NOT_SUPPORTED_IN_APPCONTAINER                                       syscall.Errno = 4252
	ERROR_INVALID_PACKAGE_SID_LENGTH                                          syscall.Errno = 4253
	ERROR_INVALID_MEDIA                                                       syscall.Errno = 4300
	ERROR_INVALID_LIBRARY                                                     syscall.Errno = 4301
	ERROR_INVALID_MEDIA_POOL                                                  syscall.Errno = 4302
	ERROR_DRIVE_MEDIA_MISMATCH                                                syscall.Errno = 4303
	ERROR_MEDIA_OFFLINE                                                       syscall.Errno = 4304
	ERROR_LIBRARY_OFFLINE                                                     syscall.Errno = 4305
	ERROR_EMPTY                                                               syscall.Errno = 4306
	ERROR_NOT_EMPTY                                                           syscall.Errno = 4307
	ERROR_MEDIA_UNAVAILABLE                                                   syscall.Errno = 4308
	ERROR_RESOURCE_DISABLED                                                   syscall.Errno = 4309
	ERROR_INVALID_CLEANER                                                     syscall.Errno = 4310
	ERROR_UNABLE_TO_CLEAN                                                     syscall.Errno = 4311
	ERROR_OBJECT_NOT_FOUND                                                    syscall.Errno = 4312
	ERROR_DATABASE_FAILURE                                                    syscall.Errno = 4313
	ERROR_DATABASE_FULL                                                       syscall.Errno = 4314
	ERROR_MEDIA_INCOMPATIBLE                                                  syscall.Errno = 4315
	ERROR_RESOURCE_NOT_PRESENT                                                syscall.Errno = 4316
	ERROR_INVALID_OPERATION                                                   syscall.Errno = 4317
	ERROR_MEDIA_NOT_AVAILABLE                                                 syscall.Errno = 4318
	ERROR_DEVICE_NOT_AVAILABLE                                                syscall.Errno = 4319
	ERROR_REQUEST_REFUSED                                                     syscall.Errno = 4320
	ERROR_INVALID_DRIVE_OBJECT                                                syscall.Errno = 4321
	ERROR_LIBRARY_FULL                                                        syscall.Errno = 4322
	ERROR_MEDIUM_NOT_ACCESSIBLE                                               syscall.Errno = 4323
	ERROR_UNABLE_TO_LOAD_MEDIUM                                               syscall.Errno = 4324
	ERROR_UNABLE_TO_INVENTORY_DRIVE                                           syscall.Errno = 4325
	ERROR_UNABLE_TO_INVENTORY_SLOT                                            syscall.Errno = 4326
	ERROR_UNABLE_TO_INVENTORY_TRANSPORT                                       syscall.Errno = 4327
	ERROR_TRANSPORT_FULL                                                      syscall.Errno = 4328
	ERROR_CONTROLLING_IEPORT                                                  syscall.Errno = 4329
	ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA                                       syscall.Errno = 4330
	ERROR_CLEANER_SLOT_SET                                                    syscall.Errno = 4331
	ERROR_CLEANER_SLOT_NOT_SET                                                syscall.Errno = 4332
	ERROR_CLEANER_CARTRIDGE_SPENT                                             syscall.Errno = 4333
	ERROR_UNEXPECTED_OMID                                                     syscall.Errno = 4334
	ERROR_CANT_DELETE_LAST_ITEM                                               syscall.Errno = 4335
	ERROR_MESSAGE_EXCEEDS_MAX_SIZE                                            syscall.Errno = 4336
	ERROR_VOLUME_CONTAINS_SYS_FILES                                           syscall.Errno = 4337
	ERROR_INDIGENOUS_TYPE                                                     syscall.Errno = 4338
	ERROR_NO_SUPPORTING_DRIVES                                                syscall.Errno = 4339
	ERROR_CLEANER_CARTRIDGE_INSTALLED                                         syscall.Errno = 4340
	ERROR_IEPORT_FULL                                                         syscall.Errno = 4341
	ERROR_FILE_OFFLINE                                                        syscall.Errno = 4350
	ERROR_REMOTE_STORAGE_NOT_ACTIVE                                           syscall.Errno = 4351
	ERROR_REMOTE_STORAGE_MEDIA_ERROR                                          syscall.Errno = 4352
	ERROR_NOT_A_REPARSE_POINT                                                 syscall.Errno = 4390
	ERROR_REPARSE_ATTRIBUTE_CONFLICT                                          syscall.Errno = 4391
	ERROR_INVALID_REPARSE_DATA                                                syscall.Errno = 4392
	ERROR_REPARSE_TAG_INVALID                                                 syscall.Errno = 4393
	ERROR_REPARSE_TAG_MISMATCH                                                syscall.Errno = 4394
	ERROR_REPARSE_POINT_ENCOUNTERED                                           syscall.Errno = 4395
	ERROR_APP_DATA_NOT_FOUND                                                  syscall.Errno = 4400
	ERROR_APP_DATA_EXPIRED                                                    syscall.Errno = 4401
	ERROR_APP_DATA_CORRUPT                                                    syscall.Errno = 4402
	ERROR_APP_DATA_LIMIT_EXCEEDED                                             syscall.Errno = 4403
	ERROR_APP_DATA_REBOOT_REQUIRED                                            syscall.Errno = 4404
	ERROR_SECUREBOOT_ROLLBACK_DETECTED                                        syscall.Errno = 4420
	ERROR_SECUREBOOT_POLICY_VIOLATION                                         syscall.Errno = 4421
	ERROR_SECUREBOOT_INVALID_POLICY                                           syscall.Errno = 4422
	ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND                               syscall.Errno = 4423
	ERROR_SECUREBOOT_POLICY_NOT_SIGNED                                        syscall.Errno = 4424
	ERROR_SECUREBOOT_NOT_ENABLED                                              syscall.Errno = 4425
	ERROR_SECUREBOOT_FILE_REPLACED                                            syscall.Errno = 4426
	ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED                                    syscall.Errno = 4427
	ERROR_SECUREBOOT_POLICY_UNKNOWN                                           syscall.Errno = 4428
	ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION                       syscall.Errno = 4429
	ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH                                     syscall.Errno = 4430
	ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED                                 syscall.Errno = 4431
	ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH                                  syscall.Errno = 4432
	ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING                             syscall.Errno = 4433
	ERROR_SECUREBOOT_NOT_BASE_POLICY                                          syscall.Errno = 4434
	ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY                                  syscall.Errno = 4435
	ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED                                      syscall.Errno = 4440
	ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED                                     syscall.Errno = 4441
	ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED                                     syscall.Errno = 4442
	ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED                                    syscall.Errno = 4443
	ERROR_ALREADY_HAS_STREAM_ID                                               syscall.Errno = 4444
	ERROR_SMR_GARBAGE_COLLECTION_REQUIRED                                     syscall.Errno = 4445
	ERROR_WOF_WIM_HEADER_CORRUPT                                              syscall.Errno = 4446
	ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT                                      syscall.Errno = 4447
	ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT                                     syscall.Errno = 4448
	ERROR_VOLUME_NOT_SIS_ENABLED                                              syscall.Errno = 4500
	ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED                                  syscall.Errno = 4550
	ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION                                   syscall.Errno = 4551
	ERROR_SYSTEM_INTEGRITY_INVALID_POLICY                                     syscall.Errno = 4552
	ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED                                  syscall.Errno = 4553
	ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES                                  syscall.Errno = 4554
	ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED                 syscall.Errno = 4555
	ERROR_VSM_NOT_INITIALIZED                                                 syscall.Errno = 4560
	ERROR_VSM_DMA_PROTECTION_NOT_IN_USE                                       syscall.Errno = 4561
	ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED                                    syscall.Errno = 4570
	ERROR_PLATFORM_MANIFEST_INVALID                                           syscall.Errno = 4571
	ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED                               syscall.Errno = 4572
	ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED                            syscall.Errno = 4573
	ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND                               syscall.Errno = 4574
	ERROR_PLATFORM_MANIFEST_NOT_ACTIVE                                        syscall.Errno = 4575
	ERROR_PLATFORM_MANIFEST_NOT_SIGNED                                        syscall.Errno = 4576
	ERROR_DEPENDENT_RESOURCE_EXISTS                                           syscall.Errno = 5001
	ERROR_DEPENDENCY_NOT_FOUND                                                syscall.Errno = 5002
	ERROR_DEPENDENCY_ALREADY_EXISTS                                           syscall.Errno = 5003
	ERROR_RESOURCE_NOT_ONLINE                                                 syscall.Errno = 5004
	ERROR_HOST_NODE_NOT_AVAILABLE                                             syscall.Errno = 5005
	ERROR_RESOURCE_NOT_AVAILABLE                                              syscall.Errno = 5006
	ERROR_RESOURCE_NOT_FOUND                                                  syscall.Errno = 5007
	ERROR_SHUTDOWN_CLUSTER                                                    syscall.Errno = 5008
	ERROR_CANT_EVICT_ACTIVE_NODE                                              syscall.Errno = 5009
	ERROR_OBJECT_ALREADY_EXISTS                                               syscall.Errno = 5010
	ERROR_OBJECT_IN_LIST                                                      syscall.Errno = 5011
	ERROR_GROUP_NOT_AVAILABLE                                                 syscall.Errno = 5012
	ERROR_GROUP_NOT_FOUND                                                     syscall.Errno = 5013
	ERROR_GROUP_NOT_ONLINE                                                    syscall.Errno = 5014
	ERROR_HOST_NODE_NOT_RESOURCE_OWNER                                        syscall.Errno = 5015
	ERROR_HOST_NODE_NOT_GROUP_OWNER                                           syscall.Errno = 5016
	ERROR_RESMON_CREATE_FAILED                                                syscall.Errno = 5017
	ERROR_RESMON_ONLINE_FAILED                                                syscall.Errno = 5018
	ERROR_RESOURCE_ONLINE                                                     syscall.Errno = 5019
	ERROR_QUORUM_RESOURCE                                                     syscall.Errno = 5020
	ERROR_NOT_QUORUM_CAPABLE                                                  syscall.Errno = 5021
	ERROR_CLUSTER_SHUTTING_DOWN                                               syscall.Errno = 5022
	ERROR_INVALID_STATE                                                       syscall.Errno = 5023
	ERROR_RESOURCE_PROPERTIES_STORED                                          syscall.Errno = 5024
	ERROR_NOT_QUORUM_CLASS                                                    syscall.Errno = 5025
	ERROR_CORE_RESOURCE                                                       syscall.Errno = 5026
	ERROR_QUORUM_RESOURCE_ONLINE_FAILED                                       syscall.Errno = 5027
	ERROR_QUORUMLOG_OPEN_FAILED                                               syscall.Errno = 5028
	ERROR_CLUSTERLOG_CORRUPT                                                  syscall.Errno = 5029
	ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE                                   syscall.Errno = 5030
	ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE                                          syscall.Errno = 5031
	ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND                                       syscall.Errno = 5032
	ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE                                         syscall.Errno = 5033
	ERROR_QUORUM_OWNER_ALIVE                                                  syscall.Errno = 5034
	ERROR_NETWORK_NOT_AVAILABLE                                               syscall.Errno = 5035
	ERROR_NODE_NOT_AVAILABLE                                                  syscall.Errno = 5036
	ERROR_ALL_NODES_NOT_AVAILABLE                                             syscall.Errno = 5037
	ERROR_RESOURCE_FAILED                                                     syscall.Errno = 5038
	ERROR_CLUSTER_INVALID_NODE                                                syscall.Errno = 5039
	ERROR_CLUSTER_NODE_EXISTS                                                 syscall.Errno = 5040
	ERROR_CLUSTER_JOIN_IN_PROGRESS                                            syscall.Errno = 5041
	ERROR_CLUSTER_NODE_NOT_FOUND                                              syscall.Errno = 5042
	ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND                                        syscall.Errno = 5043
	ERROR_CLUSTER_NETWORK_EXISTS                                              syscall.Errno = 5044
	ERROR_CLUSTER_NETWORK_NOT_FOUND                                           syscall.Errno = 5045
	ERROR_CLUSTER_NETINTERFACE_EXISTS                                         syscall.Errno = 5046
	ERROR_CLUSTER_NETINTERFACE_NOT_FOUND                                      syscall.Errno = 5047
	ERROR_CLUSTER_INVALID_REQUEST                                             syscall.Errno = 5048
	ERROR_CLUSTER_INVALID_NETWORK_PROVIDER                                    syscall.Errno = 5049
	ERROR_CLUSTER_NODE_DOWN                                                   syscall.Errno = 5050
	ERROR_CLUSTER_NODE_UNREACHABLE                                            syscall.Errno = 5051
	ERROR_CLUSTER_NODE_NOT_MEMBER                                             syscall.Errno = 5052
	ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS                                        syscall.Errno = 5053
	ERROR_CLUSTER_INVALID_NETWORK                                             syscall.Errno = 5054
	ERROR_CLUSTER_NODE_UP                                                     syscall.Errno = 5056
	ERROR_CLUSTER_IPADDR_IN_USE                                               syscall.Errno = 5057
	ERROR_CLUSTER_NODE_NOT_PAUSED                                             syscall.Errno = 5058
	ERROR_CLUSTER_NO_SECURITY_CONTEXT                                         syscall.Errno = 5059
	ERROR_CLUSTER_NETWORK_NOT_INTERNAL                                        syscall.Errno = 5060
	ERROR_CLUSTER_NODE_ALREADY_UP                                             syscall.Errno = 5061
	ERROR_CLUSTER_NODE_ALREADY_DOWN                                           syscall.Errno = 5062
	ERROR_CLUSTER_NETWORK_ALREADY_ONLINE                                      syscall.Errno = 5063
	ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE                                     syscall.Errno = 5064
	ERROR_CLUSTER_NODE_ALREADY_MEMBER                                         syscall.Errno = 5065
	ERROR_CLUSTER_LAST_INTERNAL_NETWORK                                       syscall.Errno = 5066
	ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS