wrappers

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

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
)
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
)
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
)
View Source
const (
	NO_MULTIPLE_TRUSTEE    = 0
	TRUSTEE_IS_IMPERSONATE = 1
)
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
)
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
)
View Source
const (
	E_ADS_BAD_PATHNAME            = 0x80005000
	E_ADS_INVALID_DOMAIN_OBJECT   = 0x80005001
	E_ADS_INVALID_USER_OBJECT     = 0x80005002
	E_ADS_INVALID_COMPUTER_OBJECT = 0x80005003
	E_ADS_INVALID_OBJECT          = 0x80005004
	E_ADS_PROPERTY_NOT_SET        = 0x80005005
	E_ADS_PROPERTY_NOT_SUPPORTED  = 0x80005006
	E_ADS_PROPERTY_INVALID        = 0x80005007
	E_ADS_BAD_PARAMETER           = 0x80005008
	E_ADS_OBJECT_UNBOUND          = 0x80005009
	E_ADS_PROPERTY_NOT_MODIFIED   = 0x8000500A
	E_ADS_PROPERTY_MODIFIED       = 0x8000500B
	E_ADS_CANT_CONVERT_DATATYPE   = 0x8000500C
	E_ADS_PROPERTY_NOT_FOUND      = 0x8000500D
	E_ADS_OBJECT_EXISTS           = 0x8000500E
	E_ADS_SCHEMA_VIOLATION        = 0x8000500F
	E_ADS_COLUMN_NOT_SET          = 0x80005010
	S_ADS_ERRORSOCCURRED          = 0x00005011
	S_ADS_NOMORE_ROWS             = 0x00005012
	S_ADS_NOMORE_COLUMNS          = 0x00005013
	E_ADS_INVALID_FILTER          = 0x80005014
)
View Source
const (
	MAX_ADAPTER_NAME       = 128
	MAX_INTERFACE_NAME_LEN = 256
	MAXLEN_PHYSADDR        = 8
	MAXLEN_IFDESCR         = 256
)
View Source
const (
	RPC_C_AUTHN_DEFAULT       uint32 = 0xFFFFFFFF
	FWPM_SESSION_FLAG_DYNAMIC uint32 = 0x00000001
)
View Source
const (
	FWP_MATCH_EQUAL                  uint32 = 0
	FWP_MATCH_GREATER                       = (FWP_MATCH_EQUAL + 1)
	FWP_MATCH_LESS                          = (FWP_MATCH_GREATER + 1)
	FWP_MATCH_GREATER_OR_EQUAL              = (FWP_MATCH_LESS + 1)
	FWP_MATCH_LESS_OR_EQUAL                 = (FWP_MATCH_GREATER_OR_EQUAL + 1)
	FWP_MATCH_RANGE                         = (FWP_MATCH_LESS_OR_EQUAL + 1)
	FWP_MATCH_FLAGS_ALL_SET                 = (FWP_MATCH_RANGE + 1)
	FWP_MATCH_FLAGS_ANY_SET                 = (FWP_MATCH_FLAGS_ALL_SET + 1)
	FWP_MATCH_FLAGS_NONE_SET                = (FWP_MATCH_FLAGS_ANY_SET + 1)
	FWP_MATCH_EQUAL_CASE_INSENSITIVE        = (FWP_MATCH_FLAGS_NONE_SET + 1)
	FWP_MATCH_NOT_EQUAL                     = (FWP_MATCH_EQUAL_CASE_INSENSITIVE + 1)
	FWP_MATCH_PREFIX                        = (FWP_MATCH_NOT_EQUAL + 1)
	FWP_MATCH_NOT_PREFIX                    = (FWP_MATCH_PREFIX + 1)
	FWP_MATCH_TYPE_MAX                      = (FWP_MATCH_NOT_PREFIX + 1)
)
View Source
const (
	FWP_EMPTY                         uint32 = 0
	FWP_UINT8                                = (FWP_EMPTY + 1)
	FWP_UINT16                               = (FWP_UINT8 + 1)
	FWP_UINT32                               = (FWP_UINT16 + 1)
	FWP_UINT64                               = (FWP_UINT32 + 1)
	FWP_INT8                                 = (FWP_UINT64 + 1)
	FWP_INT16                                = (FWP_INT8 + 1)
	FWP_INT32                                = (FWP_INT16 + 1)
	FWP_INT64                                = (FWP_INT32 + 1)
	FWP_FLOAT                                = (FWP_INT64 + 1)
	FWP_DOUBLE                               = (FWP_FLOAT + 1)
	FWP_BYTE_ARRAY16_TYPE                    = (FWP_DOUBLE + 1)
	FWP_BYTE_BLOB_TYPE                       = (FWP_BYTE_ARRAY16_TYPE + 1)
	FWP_SID                                  = (FWP_BYTE_BLOB_TYPE + 1)
	FWP_SECURITY_DESCRIPTOR_TYPE             = (FWP_SID + 1)
	FWP_TOKEN_INFORMATION_TYPE               = (FWP_SECURITY_DESCRIPTOR_TYPE + 1)
	FWP_TOKEN_ACCESS_INFORMATION_TYPE        = (FWP_TOKEN_INFORMATION_TYPE + 1)
	FWP_UNICODE_STRING_TYPE                  = (FWP_TOKEN_ACCESS_INFORMATION_TYPE + 1)
	FWP_BYTE_ARRAY6_TYPE                     = (FWP_UNICODE_STRING_TYPE + 1)
	FWP_BITMAP_INDEX_TYPE                    = (FWP_BYTE_ARRAY6_TYPE + 1)
	FWP_BITMAP_ARRAY64_TYPE                  = (FWP_BITMAP_INDEX_TYPE + 1)
	FWP_SINGLE_DATA_TYPE_MAX                 = 0xff
	FWP_V4_ADDR_MASK                         = (FWP_SINGLE_DATA_TYPE_MAX + 1)
	FWP_V6_ADDR_MASK                         = (FWP_V4_ADDR_MASK + 1)
	FWP_RANGE_TYPE                           = (FWP_V6_ADDR_MASK + 1)
	FWP_DATA_TYPE_MAX                        = (FWP_RANGE_TYPE + 1)
)
View Source
const (
	FWP_ACTION_FLAG_TERMINATING uint32 = 0x00001000
	FWP_ACTION_BLOCK            uint32 = (0x00000001 | FWP_ACTION_FLAG_TERMINATING)
	FWP_ACTION_PERMIT           uint32 = (0x00000002 | FWP_ACTION_FLAG_TERMINATING)
)
View Source
const (
	FWPM_FILTER_FLAG_NONE                                = 0x00000000
	FWPM_FILTER_FLAG_PERSISTENT                          = 0x00000001
	FWPM_FILTER_FLAG_BOOTTIME                            = 0x00000002
	FWPM_FILTER_FLAG_HAS_PROVIDER_CONTEXT                = 0x00000004
	FWPM_FILTER_FLAG_CLEAR_ACTION_RIGHT                  = 0x00000008
	FWPM_FILTER_FLAG_PERMIT_IF_CALLOUT_UNREGISTERED      = 0x00000010
	FWPM_FILTER_FLAG_DISABLED                            = 0x00000020
	FWPM_FILTER_FLAG_INDEXED                             = 0x00000040
	FWPM_FILTER_FLAG_HAS_SECURITY_REALM_PROVIDER_CONTEXT = 0x00000080
	FWPM_FILTER_FLAG_SYSTEMOS_ONLY                       = 0x00000100
	FWPM_FILTER_FLAG_GAMEOS_ONLY                         = 0x00000200
	FWPM_FILTER_FLAG_SILENT_MODE                         = 0x00000400
	FWPM_FILTER_FLAG_IPSEC_NO_ACQUIRE_INITIATE           = 0x00000800
)
View Source
const (
	GPO_SECTION_ROOT    = 0 // Root
	GPO_SECTION_USER    = 1 // User
	GPO_SECTION_MACHINE = 2 // Machine

)
View Source
const (
	GPO_OPEN_LOAD_REGISTRY = 0x00000001 // Load the registry files
	GPO_OPEN_READ_ONLY     = 0x00000002 // Open the GPO as read only

	GPO_OPTION_DISABLE_USER    = 0x00000001 // The user portion of this GPO is disabled
	GPO_OPTION_DISABLE_MACHINE = 0x00000002 // The machine portion of this GPO is disabled

)
View Source
const (
	ADS_CHASE_REFERRALS_NEVER       = 0x00
	ADS_CHASE_REFERRALS_SUBORDINATE = 0x20
	ADS_CHASE_REFERRALS_EXTERNAL    = 0x40
	ADS_CHASE_REFERRALS_ALWAYS      = ADS_CHASE_REFERRALS_SUBORDINATE | ADS_CHASE_REFERRALS_EXTERNAL
)
View Source
const (
	ADS_NAME_TYPE_1779                    = 1
	ADS_NAME_TYPE_CANONICAL               = 2
	ADS_NAME_TYPE_NT4                     = 3
	ADS_NAME_TYPE_DISPLAY                 = 4
	ADS_NAME_TYPE_DOMAIN_SIMPLE           = 5
	ADS_NAME_TYPE_ENTERPRISE_SIMPLE       = 6
	ADS_NAME_TYPE_GUID                    = 7
	ADS_NAME_TYPE_UNKNOWN                 = 8
	ADS_NAME_TYPE_USER_PRINCIPAL_NAME     = 9
	ADS_NAME_TYPE_CANONICAL_EX            = 10
	ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME  = 11
	ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME = 12
)
View Source
const (
	ADS_NAME_INITTYPE_DOMAIN = 1
	ADS_NAME_INITTYPE_SERVER = 2
	ADS_NAME_INITTYPE_GC     = 3
)
View Source
const (
	NET_FW_PROFILE_DOMAIN   = 0
	NET_FW_PROFILE_STANDARD = 1
	NET_FW_PROFILE_CURRENT  = 2
	NET_FW_PROFILE_TYPE_MAX = 3
)
View Source
const (
	NET_FW_IP_VERSION_V4  = 0
	NET_FW_IP_VERSION_V6  = 1
	NET_FW_IP_VERSION_ANY = 2
	NET_FW_IP_VERSION_MAX = 3
)
View Source
const (
	NET_FW_PROTOCOL_TCP = 6
	NET_FW_PROTOCOL_UDP = 17
	NET_FW_PROTOCOL_ANY = 256
)
View Source
const (
	NET_FW_RULE_DIR_IN  = 1
	NET_FW_RULE_DIR_OUT = 2
	NET_FW_RULE_DIR_MAX = 3
)
View Source
const (
	NET_FW_ACTION_BLOCK = 0
	NET_FW_ACTION_ALLOW = 1
	NET_FW_ACTION_MAX   = 2
)
View Source
const (
	INSTALLMESSAGE_FATALEXIT      = 0x00000000
	INSTALLMESSAGE_ERROR          = 0x01000000
	INSTALLMESSAGE_WARNING        = 0x02000000
	INSTALLMESSAGE_USER           = 0x03000000
	INSTALLMESSAGE_INFO           = 0x04000000
	INSTALLMESSAGE_FILESINUSE     = 0x05000000
	INSTALLMESSAGE_RESOLVESOURCE  = 0x06000000
	INSTALLMESSAGE_OUTOFDISKSPACE = 0x07000000
	INSTALLMESSAGE_ACTIONSTART    = 0x08000000
	INSTALLMESSAGE_ACTIONDATA     = 0x09000000
	INSTALLMESSAGE_PROGRESS       = 0x0A000000
	INSTALLMESSAGE_COMMONDATA     = 0x0B000000
	INSTALLMESSAGE_INITIALIZE     = 0x0C000000
	INSTALLMESSAGE_TERMINATE      = 0x0D000000
	INSTALLMESSAGE_SHOWDIALOG     = 0x0E000000
	INSTALLMESSAGE_RMFILESINUSE   = 0x19000000
	INSTALLMESSAGE_INSTALLSTART   = 0x1A000000
	INSTALLMESSAGE_INSTALLEND     = 0x1B000000
)
View Source
const (
	INSTALLUILEVEL_NOCHANGE = 0
	INSTALLUILEVEL_DEFAULT  = 1
	INSTALLUILEVEL_NONE     = 2
	INSTALLUILEVEL_BASIC    = 3
	INSTALLUILEVEL_REDUCED  = 4
	INSTALLUILEVEL_FULL     = 5

	INSTALLUILEVEL_ENDDIALOG     = 0x0080
	INSTALLUILEVEL_PROGRESSONLY  = 0x0040
	INSTALLUILEVEL_HIDECANCEL    = 0x0020
	INSTALLUILEVEL_SOURCERESONLY = 0x0100
)
View Source
const (
	INSTALLSTATE_BADCONFIG    = -6
	INSTALLSTATE_INCOMPLETE   = -5
	INSTALLSTATE_SOURCEABSENT = -4
	INSTALLSTATE_MOREDATA     = -3
	INSTALLSTATE_INVALIDARG   = -2
	INSTALLSTATE_UNKNOWN      = -1
	INSTALLSTATE_BROKEN       = 0
	INSTALLSTATE_ADVERTISED   = 1
	INSTALLSTATE_ABSENT       = 2
	INSTALLSTATE_LOCAL        = 3
	INSTALLSTATE_SOURCE       = 4
	INSTALLSTATE_DEFAULT      = 5
)
View Source
const (
	INSTALLLEVEL_DEFAULT = 0
	INSTALLLEVEL_MINIMUM = 1
	INSTALLLEVEL_MAXIMUM = 0xFFFF
)
View Source
const (
	INSTALLLOGMODE_FATALEXIT      = 1 << (INSTALLMESSAGE_FATALEXIT >> 24)
	INSTALLLOGMODE_ERROR          = 1 << (INSTALLMESSAGE_ERROR >> 24)
	INSTALLLOGMODE_WARNING        = 1 << (INSTALLMESSAGE_WARNING >> 24)
	INSTALLLOGMODE_USER           = 1 << (INSTALLMESSAGE_USER >> 24)
	INSTALLLOGMODE_INFO           = 1 << (INSTALLMESSAGE_INFO >> 24)
	INSTALLLOGMODE_RESOLVESOURCE  = 1 << (INSTALLMESSAGE_RESOLVESOURCE >> 24)
	INSTALLLOGMODE_OUTOFDISKSPACE = 1 << (INSTALLMESSAGE_OUTOFDISKSPACE >> 24)
	INSTALLLOGMODE_ACTIONSTART    = 1 << (INSTALLMESSAGE_ACTIONSTART >> 24)
	INSTALLLOGMODE_ACTIONDATA     = 1 << (INSTALLMESSAGE_ACTIONDATA >> 24)
	INSTALLLOGMODE_COMMONDATA     = 1 << (INSTALLMESSAGE_COMMONDATA >> 24)
	INSTALLLOGMODE_PROPERTYDUMP   = 1 << (INSTALLMESSAGE_PROGRESS >> 24)
	INSTALLLOGMODE_VERBOSE        = 1 << (INSTALLMESSAGE_INITIALIZE >> 24)
	INSTALLLOGMODE_EXTRADEBUG     = 1 << (INSTALLMESSAGE_TERMINATE >> 24)
	INSTALLLOGMODE_LOGONLYONERROR = 1 << (INSTALLMESSAGE_SHOWDIALOG >> 24)
	INSTALLLOGMODE_PROGRESS       = 1 << (INSTALLMESSAGE_PROGRESS >> 24)
	INSTALLLOGMODE_INITIALIZE     = 1 << (INSTALLMESSAGE_INITIALIZE >> 24)
	INSTALLLOGMODE_TERMINATE      = 1 << (INSTALLMESSAGE_TERMINATE >> 24)
	INSTALLLOGMODE_SHOWDIALOG     = 1 << (INSTALLMESSAGE_SHOWDIALOG >> 24)
	INSTALLLOGMODE_FILESINUSE     = 1 << (INSTALLMESSAGE_FILESINUSE >> 24)
	INSTALLLOGMODE_RMFILESINUSE   = 1 << (INSTALLMESSAGE_RMFILESINUSE >> 24)
	INSTALLLOGMODE_INSTALLSTART   = 1 << (INSTALLMESSAGE_INSTALLSTART >> 24)
	INSTALLLOGMODE_INSTALLEND     = 1 << (INSTALLMESSAGE_INSTALLEND >> 24)
)
View Source
const (
	INSTALLLOGATTRIBUTES_APPEND        = 1 << 0
	INSTALLLOGATTRIBUTES_FLUSHEACHLINE = 1 << 1
)
View Source
const (
	INSTALLPROPERTY_PACKAGENAME          = "PackageName"
	INSTALLPROPERTY_TRANSFORMS           = "Transforms"
	INSTALLPROPERTY_LANGUAGE             = "Language"
	INSTALLPROPERTY_PRODUCTNAME          = "ProductName"
	INSTALLPROPERTY_ASSIGNMENTTYPE       = "AssignmentType"
	INSTALLPROPERTY_INSTANCETYPE         = "InstanceType"
	INSTALLPROPERTY_AUTHORIZED_LUA_APP   = "AuthorizedLUAApp"
	INSTALLPROPERTY_PACKAGECODE          = "PackageCode"
	INSTALLPROPERTY_VERSION              = "Version"
	INSTALLPROPERTY_PRODUCTICON          = "ProductIcon"
	INSTALLPROPERTY_INSTALLEDPRODUCTNAME = "InstalledProductName"
	INSTALLPROPERTY_VERSIONSTRING        = "VersionString"
	INSTALLPROPERTY_HELPLINK             = "HelpLink"
	INSTALLPROPERTY_HELPTELEPHONE        = "HelpTelephone"
	INSTALLPROPERTY_INSTALLLOCATION      = "InstallLocation"
	INSTALLPROPERTY_INSTALLSOURCE        = "InstallSource"
	INSTALLPROPERTY_INSTALLDATE          = "InstallDate"
	INSTALLPROPERTY_PUBLISHER            = "Publisher"
	INSTALLPROPERTY_LOCALPACKAGE         = "LocalPackage"
	INSTALLPROPERTY_URLINFOABOUT         = "URLInfoAbout"
	INSTALLPROPERTY_URLUPDATEINFO        = "URLUpdateInfo"
	INSTALLPROPERTY_VERSIONMINOR         = "VersionMinor"
	INSTALLPROPERTY_VERSIONMAJOR         = "VersionMajor"
	INSTALLPROPERTY_PRODUCTID            = "ProductID"
	INSTALLPROPERTY_REGCOMPANY           = "RegCompany"
	INSTALLPROPERTY_REGOWNER             = "RegOwner"
	INSTALLPROPERTY_INSTALLEDLANGUAGE    = "InstalledLanguage"
)
View Source
const (
	ACCESS_NONE   = 0
	ACCESS_READ   = 0x01
	ACCESS_WRITE  = 0x02
	ACCESS_CREATE = 0x04
	ACCESS_EXEC   = 0x08
	ACCESS_DELETE = 0x10
	ACCESS_ATRIB  = 0x20
	ACCESS_PERM   = 0x40

	ACCESS_GROUP = 0x8000

	STYPE_DISKTREE = 0x00
	ACCESS_ALL     = ACCESS_READ | ACCESS_WRITE | ACCESS_CREATE | ACCESS_EXEC | ACCESS_DELETE | ACCESS_ATRIB | ACCESS_PERM
)
View Source
const (
	USER_PRIV_GUEST = 0
	USER_PRIV_USER  = 1
	USER_PRIV_ADMIN = 2

	UF_SCRIPT                          = 0x0001
	UF_ACCOUNTDISABLE                  = 0x0002
	UF_HOMEDIR_REQUIRED                = 0x0008
	UF_LOCKOUT                         = 0x0010
	UF_PASSWD_NOTREQD                  = 0x0020
	UF_PASSWD_CANT_CHANGE              = 0x0040
	UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED = 0x0080

	UF_TEMP_DUPLICATE_ACCOUNT    = 0x0100
	UF_NORMAL_ACCOUNT            = 0x0200
	UF_INTERDOMAIN_TRUST_ACCOUNT = 0x0800
	UF_WORKSTATION_TRUST_ACCOUNT = 0x1000
	UF_SERVER_TRUST_ACCOUNT      = 0x2000

	UF_ACCOUNT_TYPE_MASK = UF_TEMP_DUPLICATE_ACCOUNT |
		UF_NORMAL_ACCOUNT |
		UF_INTERDOMAIN_TRUST_ACCOUNT |
		UF_WORKSTATION_TRUST_ACCOUNT |
		UF_SERVER_TRUST_ACCOUNT

	UF_DONT_EXPIRE_PASSWD                     = 0x10000
	UF_MNS_LOGON_ACCOUNT                      = 0x20000
	UF_SMARTCARD_REQUIRED                     = 0x40000
	UF_TRUSTED_FOR_DELEGATION                 = 0x80000
	UF_NOT_DELEGATED                          = 0x100000
	UF_USE_DES_KEY_ONLY                       = 0x200000
	UF_DONT_REQUIRE_PREAUTH                   = 0x400000
	UF_PASSWORD_EXPIRED                       = 0x800000
	UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION = 0x1000000
	UF_NO_AUTH_DATA_REQUIRED                  = 0x2000000
	UF_PARTIAL_SECRETS_ACCOUNT                = 0x4000000
	UF_USE_AES_KEYS                           = 0x8000000

	UF_SETTABLE_BITS = UF_SCRIPT |
		UF_ACCOUNTDISABLE |
		UF_LOCKOUT |
		UF_HOMEDIR_REQUIRED |
		UF_PASSWD_NOTREQD |
		UF_PASSWD_CANT_CHANGE |
		UF_ACCOUNT_TYPE_MASK |
		UF_DONT_EXPIRE_PASSWD |
		UF_MNS_LOGON_ACCOUNT |
		UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED |
		UF_SMARTCARD_REQUIRED |
		UF_TRUSTED_FOR_DELEGATION |
		UF_NOT_DELEGATED |
		UF_USE_DES_KEY_ONLY |
		UF_DONT_REQUIRE_PREAUTH |
		UF_PASSWORD_EXPIRED |
		UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION |
		UF_NO_AUTH_DATA_REQUIRED |
		UF_USE_AES_KEYS |
		UF_PARTIAL_SECRETS_ACCOUNT

	FILTER_TEMP_DUPLICATE_ACCOUNT    = uint32(0x0001)
	FILTER_NORMAL_ACCOUNT            = uint32(0x0002)
	FILTER_INTERDOMAIN_TRUST_ACCOUNT = uint32(0x0008)
	FILTER_WORKSTATION_TRUST_ACCOUNT = uint32(0x0010)
	FILTER_SERVER_TRUST_ACCOUNT      = uint32(0x0020)

	LG_INCLUDE_INDIRECT = 0x0001

	// Memory protection constants
	PAGE_EXECUTE           = 0x10
	PAGE_EXECUTE_READ      = 0x20
	PAGE_EXECUTE_READWRITE = 0x40
	PAGE_EXECUTE_WRITECOPY = 0x80
	PAGE_NOACCESS          = 0x1
	PAGE_READONLY          = 0x2
	PAGE_READWRITE         = 0x4
	PAGE_WRITECOPY         = 0x8

	// NtQuerySystemInformation
	SystemHandleInformation = 0x10
	SystemObjectInformation = 0x11

	// NtQueryObject
	ObjectBasicInformation = 0x0
	ObjectNameInformation  = 0x1
	ObjectTypeInformation  = 0x2

	// NtQueryInformationProcess
	ProcessBasicInformation       = 0x0
	ProcessImageFileName          = 27
	ProcessCommandLineInformation = 60

	// NtQueryInformationThread
	ThreadBasicInformation   = 0
	ThreadImpersonationToken = 5

	//PROCESS_QUERY_LIMITED_INFORMATION = 0x1000
	THREAD_QUERY_LIMITED_INFORMATION = 0x0800

	// NtOpenDirectoryObject
	DIRECTORY_QUERY    = 1
	DIRECTORY_TRAVERSE = 2

	SYMBOLIC_LINK_QUERY = 1
)
View Source
const (
	DS_SPN_DNS_HOST  = 0
	DS_SPN_DN_HOST   = 1
	DS_SPN_NB_HOST   = 2
	DS_SPN_DOMAIN    = 3
	DS_SPN_NB_DOMAIN = 4
	DS_SPN_SERVICE   = 5
)
View Source
const (
	DS_SPN_ADD_SPN_OP     = 0
	DS_SPN_REPLACE_SPN_OP = 1
	DS_SPN_DELETE_SPN_OP  = 2
)
View Source
const (
	POLICY_VIEW_LOCAL_INFORMATION   = 0x0001
	POLICY_VIEW_AUDIT_INFORMATION   = 0x0002
	POLICY_GET_PRIVATE_INFORMATION  = 0x0004
	POLICY_TRUST_ADMIN              = 0x0008
	POLICY_CREATE_ACCOUNT           = 0x0010
	POLICY_CREATE_SECRET            = 0x0020
	POLICY_CREATE_PRIVILEGE         = 0x0040
	POLICY_SET_DEFAULT_QUOTA_LIMITS = 0x0080
	POLICY_SET_AUDIT_REQUIREMENTS   = 0x0100
	POLICY_AUDIT_LOG_ADMIN          = 0x0200
	POLICY_SERVER_ADMIN             = 0x0400
	POLICY_LOOKUP_NAMES             = 0x0800
	POLICY_ALL_ACCESS               = STANDARD_RIGHTS_REQUIRED | POLICY_VIEW_LOCAL_INFORMATION | POLICY_VIEW_AUDIT_INFORMATION | POLICY_GET_PRIVATE_INFORMATION | POLICY_TRUST_ADMIN | POLICY_CREATE_ACCOUNT | POLICY_CREATE_SECRET | POLICY_CREATE_PRIVILEGE | POLICY_SET_DEFAULT_QUOTA_LIMITS | POLICY_SET_AUDIT_REQUIREMENTS | POLICY_AUDIT_LOG_ADMIN | POLICY_SERVER_ADMIN | POLICY_LOOKUP_NAMES
)
View Source
const (
	SE_INTERACTIVE_LOGON_NAME             = "SeInteractiveLogonRight"
	SE_NETWORK_LOGON_NAME                 = "SeNetworkLogonRight"
	SE_BATCH_LOGON_NAME                   = "SeBatchLogonRight"
	SE_SERVICE_LOGON_NAME                 = "SeServiceLogonRight"
	SE_DENY_INTERACTIVE_LOGON_NAME        = "SeDenyInteractiveLogonRight"
	SE_DENY_NETWORK_LOGON_NAME            = "SeDenyNetworkLogonRight"
	SE_DENY_BATCH_LOGON_NAME              = "SeDenyBatchLogonRight"
	SE_DENY_SERVICE_LOGON_NAME            = "SeDenyServiceLogonRight"
	SE_REMOTE_INTERACTIVE_LOGON_NAME      = "SeRemoteInteractiveLogonRight"
	SE_DENY_REMOTE_INTERACTIVE_LOGON_NAME = "SeDenyRemoteInteractiveLogonRight"
)
View Source
const (
	COINIT_APARTMENTTHREADED = 0x00000002
	COINIT_MULTITHREADED     = 0x00000000
	COINIT_DISABLE_OLE1DDE   = 0x00000004
	COINIT_SPEED_OVER_MEMORY = 0x00000008
)
View Source
const (
	VARIANT_NOVALUEPROP    = 0x0001
	VARIANT_ALPHABOOL      = 0x0002
	VARIANT_NOUSEROVERRIDE = 0x0004
	VARIANT_LOCALBOOL      = 0x0010
)
View Source
const (
	SHTDN_REASON_FLAG_USER_DEFINED = 0x40000000
	SHTDN_REASON_FLAG_PLANNED      = 0x80000000
)
View Source
const (
	SHTDN_REASON_MAJOR_OTHER           = 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
)
View Source
const (
	SHTDN_REASON_MINOR_OTHER                 = 0x00000000
	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_TERMSRV               = 0x00000020
)
View Source
const (
	FO_MOVE   = 0x0001
	FO_COPY   = 0x0002
	FO_DELETE = 0x0003
	FO_RENAME = 0x0004
)
View Source
const (
	FOF_MULTIDESTFILES        = 0x0001
	FOF_CONFIRMMOUSE          = 0x0002
	FOF_SILENT                = 0x0004
	FOF_RENAMEONCOLLISION     = 0x0008
	FOF_NOCONFIRMATION        = 0x0010
	FOF_WANTMAPPINGHANDLE     = 0x0020
	FOF_ALLOWUNDO             = 0x0040
	FOF_FILESONLY             = 0x0080
	FOF_SIMPLEPROGRESS        = 0x0100
	FOF_NOCONFIRMMKDIR        = 0x0200
	FOF_NOERRORUI             = 0x0400
	FOF_NOCOPYSECURITYATTRIBS = 0x0800
	FOF_NORECURSION           = 0x1000
	FOF_NO_CONNECTED_ELEMENTS = 0x2000
	FOF_WANTNUKEWARNING       = 0x4000
	FOF_NORECURSEREPARSE      = 0x8000
	FOF_NO_UI                 = FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR
)
View Source
const (
	SHGFI_SYSICONINDEX      = 0x4000
	SHGFI_ICON              = 0x000000100
	SHGFI_LARGEICON         = 0x000000000
	SHGFI_USEFILEATTRIBUTES = 0x10
	SHIL_JUMBO              = 0x4
	SHIL_EXTRALARGE         = 0x2
)
View Source
const (
	CSIDL_DESKTOP                 = 0x0000
	CSIDL_INTERNET                = 0x0001
	CSIDL_PROGRAMS                = 0x0002
	CSIDL_CONTROLS                = 0x0003
	CSIDL_PRINTERS                = 0x0004
	CSIDL_PERSONAL                = 0x0005
	CSIDL_FAVORITES               = 0x0006
	CSIDL_STARTUP                 = 0x0007
	CSIDL_RECENT                  = 0x0008
	CSIDL_SENDTO                  = 0x0009
	CSIDL_BITBUCKET               = 0x000a
	CSIDL_STARTMENU               = 0x000b
	CSIDL_MYDOCUMENTS             = CSIDL_PERSONAL
	CSIDL_MYMUSIC                 = 0x000d
	CSIDL_MYVIDEO                 = 0x000e
	CSIDL_DESKTOPDIRECTORY        = 0x0010
	CSIDL_DRIVES                  = 0x0011
	CSIDL_NETWORK                 = 0x0012
	CSIDL_NETHOOD                 = 0x0013
	CSIDL_FONTS                   = 0x0014
	CSIDL_TEMPLATES               = 0x0015
	CSIDL_COMMON_STARTMENU        = 0x0016
	CSIDL_COMMON_PROGRAMS         = 0x0017
	CSIDL_COMMON_STARTUP          = 0x0018
	CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019
	CSIDL_APPDATA                 = 0x001a
	CSIDL_PRINTHOOD               = 0x001b
	CSIDL_LOCAL_APPDATA           = 0x001c
	CSIDL_ALTSTARTUP              = 0x001d
	CSIDL_COMMON_ALTSTARTUP       = 0x001e
	CSIDL_COMMON_FAVORITES        = 0x001f
	CSIDL_INTERNET_CACHE          = 0x0020
	CSIDL_COOKIES                 = 0x0021
	CSIDL_HISTORY                 = 0x0022
	CSIDL_COMMON_APPDATA          = 0x0023
	CSIDL_WINDOWS                 = 0x0024
	CSIDL_SYSTEM                  = 0x0025
	CSIDL_PROGRAM_FILES           = 0x0026
	CSIDL_MYPICTURES              = 0x0027
	CSIDL_PROFILE                 = 0x0028
	CSIDL_SYSTEMX86               = 0x0029
	CSIDL_PROGRAM_FILESX86        = 0x002a
	CSIDL_PROGRAM_FILES_COMMON    = 0x002b
	CSIDL_PROGRAM_FILES_COMMONX86 = 0x002c
	CSIDL_COMMON_TEMPLATES        = 0x002d
	CSIDL_COMMON_DOCUMENTS        = 0x002e
	CSIDL_COMMON_ADMINTOOLS       = 0x002f
	CSIDL_ADMINTOOLS              = 0x0030
	CSIDL_CONNECTIONS             = 0x0031
	CSIDL_COMMON_MUSIC            = 0x0035
	CSIDL_COMMON_PICTURES         = 0x0036
	CSIDL_COMMON_VIDEO            = 0x0037
	CSIDL_RESOURCES               = 0x0038
	CSIDL_RESOURCES_LOCALIZED     = 0x0039
	CSIDL_COMMON_OEM_LINKS        = 0x003a
	CSIDL_CDBURN_AREA             = 0x003b
	CSIDL_COMPUTERSNEARME         = 0x003d

	CSIDL_FLAG_CREATE        = 0x8000
	CSIDL_FLAG_DONT_VERIFY   = 0x4000
	CSIDL_FLAG_UNEXPAND      = 0x2000
	CSIDL_FLAG_NO_ALIAS      = 0x1000
	CSIDL_FLAG_PER_USER_INIT = 0x0800
)
View Source
const (
	SHGFP_TYPE_CURRENT = 0
	SHGFP_TYPE_DEFAULT = 1
)
View Source
const (
	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 (
	MIB_TCP_STATE_CLOSED     = 1
	MIB_TCP_STATE_LISTEN     = 2
	MIB_TCP_STATE_SYN_SENT   = 3
	MIB_TCP_STATE_SYN_RCVD   = 4
	MIB_TCP_STATE_ESTAB      = 5
	MIB_TCP_STATE_FIN_WAIT1  = 6
	MIB_TCP_STATE_FIN_WAIT2  = 7
	MIB_TCP_STATE_CLOSE_WAIT = 8
	MIB_TCP_STATE_CLOSING    = 9
	MIB_TCP_STATE_LAST_ACK   = 10
	MIB_TCP_STATE_TIME_WAIT  = 11
	MIB_TCP_STATE_DELETE_TCB = 12
)
View Source
const (
	TH32CS_SNAPHEAPLIST = 0x00000001
	TH32CS_SNAPPROCESS  = 0x00000002
	TH32CS_SNAPTHREAD   = 0x00000004
	TH32CS_SNAPMODULE   = 0x00000008
	TH32CS_SNAPMODULE32 = 0x00000010
	TH32CS_SNAPALL      = TH32CS_SNAPHEAPLIST | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD | TH32CS_SNAPMODULE
	TH32CS_INHERIT      = 0x80000000
)
View Source
const (
	VS_FF_DEBUG        = 0x00000001
	VS_FF_PRERELEASE   = 0x00000002
	VS_FF_PATCHED      = 0x00000004
	VS_FF_PRIVATEBUILD = 0x00000008
	VS_FF_INFOINFERRED = 0x00000010
	VS_FF_SPECIALBUILD = 0x00000020
)
View Source
const (
	VOS_UNKNOWN       = 0x00000000
	VOS_DOS           = 0x00010000
	VOS_OS216         = 0x00020000
	VOS_OS232         = 0x00030000
	VOS_NT            = 0x00040000
	VOS__WINDOWS16    = 0x00000001
	VOS__PM16         = 0x00000002
	VOS__PM32         = 0x00000003
	VOS__WINDOWS32    = 0x00000004
	VOS_DOS_WINDOWS16 = 0x00010001
	VOS_DOS_WINDOWS32 = 0x00010004
	VOS_OS216_PM16    = 0x00020002
	VOS_OS232_PM32    = 0x00030003
	VOS_NT_WINDOWS32  = 0x00040004
)
View Source
const (
	VFT_UNKNOWN    = 0x00000000
	VFT_APP        = 0x00000001
	VFT_DLL        = 0x00000002
	VFT_DRV        = 0x00000003
	VFT_FONT       = 0x00000004
	VFT_VXD        = 0x00000005
	VFT_STATIC_LIB = 0x00000007
)
View Source
const (
	VFT2_UNKNOWN               = 0x00000000
	VFT2_DRV_PRINTER           = 0x00000001
	VFT2_DRV_KEYBOARD          = 0x00000002
	VFT2_DRV_LANGUAGE          = 0x00000003
	VFT2_DRV_DISPLAY           = 0x00000004
	VFT2_DRV_MOUSE             = 0x00000005
	VFT2_DRV_NETWORK           = 0x00000006
	VFT2_DRV_SYSTEM            = 0x00000007
	VFT2_DRV_INSTALLABLE       = 0x00000008
	VFT2_DRV_SOUND             = 0x00000009
	VFT2_DRV_COMM              = 0x0000000A
	VFT2_DRV_VERSIONED_PRINTER = 0x0000000C
	VFT2_FONT_RASTER           = 0x00000001
	VFT2_FONT_VECTOR           = 0x00000002
	VFT2_FONT_TRUETYPE         = 0x00000003
)
View Source
const (
	INVALID_HANDLE_VALUE    = ^syscall.Handle(0)
	INVALID_FILE_SIZE       = 0xFFFFFFFF
	INVALID_FILE_ATTRIBUTES = 0xFFFFFFFF
)
View Source
const (
	WAIT_FAILED        = 0xFFFFFFFF
	WAIT_OBJECT_0      = STATUS_WAIT_0
	WAIT_ABANDONED     = STATUS_ABANDONED_WAIT_0
	WAIT_ABANDONED_0   = STATUS_ABANDONED_WAIT_0
	WAIT_IO_COMPLETION = STATUS_USER_APC
)
View Source
const (
	FILE_FLAG_WRITE_THROUGH       = 0x80000000
	FILE_FLAG_OVERLAPPED          = 0x40000000
	FILE_FLAG_NO_BUFFERING        = 0x20000000
	FILE_FLAG_RANDOM_ACCESS       = 0x10000000
	FILE_FLAG_SEQUENTIAL_SCAN     = 0x08000000
	FILE_FLAG_DELETE_ON_CLOSE     = 0x04000000
	FILE_FLAG_BACKUP_SEMANTICS    = 0x02000000
	FILE_FLAG_POSIX_SEMANTICS     = 0x01000000
	FILE_FLAG_OPEN_REPARSE_POINT  = 0x00200000
	FILE_FLAG_OPEN_NO_RECALL      = 0x00100000
	FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000
)
View Source
const (
	CREATE_NEW        = 1
	CREATE_ALWAYS     = 2
	OPEN_EXISTING     = 3
	OPEN_ALWAYS       = 4
	TRUNCATE_EXISTING = 5
)
View Source
const (
	SECURITY_ANONYMOUS        = SecurityAnonymous << 16
	SECURITY_IDENTIFICATION   = SecurityIdentification << 16
	SECURITY_IMPERSONATION    = SecurityImpersonation << 16
	SECURITY_DELEGATION       = SecurityDelegation << 16
	SECURITY_CONTEXT_TRACKING = 0x00040000
	SECURITY_EFFECTIVE_ONLY   = 0x00080000
)
View Source
const (
	MUTEX_MODIFY_STATE = MUTANT_QUERY_STATE
	MUTEX_ALL_ACCESS   = MUTANT_ALL_ACCESS
)
View Source
const (
	DEBUG_PROCESS                    = 0x00000001
	DEBUG_ONLY_THIS_PROCESS          = 0x00000002
	CREATE_SUSPENDED                 = 0x00000004
	DETACHED_PROCESS                 = 0x00000008
	CREATE_NEW_CONSOLE               = 0x00000010
	NORMAL_PRIORITY_CLASS            = 0x00000020
	IDLE_PRIORITY_CLASS              = 0x00000040
	HIGH_PRIORITY_CLASS              = 0x00000080
	REALTIME_PRIORITY_CLASS          = 0x00000100
	CREATE_NEW_PROCESS_GROUP         = 0x00000200
	CREATE_UNICODE_ENVIRONMENT       = 0x00000400
	CREATE_SEPARATE_WOW_VDM          = 0x00000800
	CREATE_SHARED_WOW_VDM            = 0x00001000
	BELOW_NORMAL_PRIORITY_CLASS      = 0x00004000
	ABOVE_NORMAL_PRIORITY_CLASS      = 0x00008000
	INHERIT_PARENT_AFFINITY          = 0x00010000
	CREATE_PROTECTED_PROCESS         = 0x00040000
	EXTENDED_STARTUPINFO_PRESENT     = 0x00080000
	PROCESS_MODE_BACKGROUND_BEGIN    = 0x00100000
	PROCESS_MODE_BACKGROUND_END      = 0x00200000
	CREATE_BREAKAWAY_FROM_JOB        = 0x01000000
	CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000
	CREATE_DEFAULT_ERROR_MODE        = 0x04000000
	CREATE_NO_WINDOW                 = 0x08000000
)
View Source
const (
	VOLUME_NAME_DOS  = 0x0
	VOLUME_NAME_GUID = 0x1
	VOLUME_NAME_NT   = 0x2
	VOLUME_NAME_NONE = 0x4
)
View Source
const (
	FILE_NAME_NORMALIZED = 0x0
	FILE_NAME_OPENED     = 0x8
)
View Source
const (
	DRIVE_UNKNOWN     = 0
	DRIVE_NO_ROOT_DIR = 1
	DRIVE_REMOVABLE   = 2
	DRIVE_FIXED       = 3
	DRIVE_REMOTE      = 4
	DRIVE_CDROM       = 5
	DRIVE_RAMDISK     = 6
)
View Source
const (
	STD_INPUT_HANDLE  = ^uint32(10) + 1
	STD_OUTPUT_HANDLE = ^uint32(11) + 1
	STD_ERROR_HANDLE  = ^uint32(12) + 1
)
View Source
const (
	FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100
	FORMAT_MESSAGE_IGNORE_INSERTS  = 0x00000200
	FORMAT_MESSAGE_FROM_STRING     = 0x00000400
	FORMAT_MESSAGE_FROM_HMODULE    = 0x00000800
	FORMAT_MESSAGE_FROM_SYSTEM     = 0x00001000
	FORMAT_MESSAGE_ARGUMENT_ARRAY  = 0x00002000
	FORMAT_MESSAGE_MAX_WIDTH_MASK  = 0x000000FF
)
View Source
const (
	STARTF_USESHOWWINDOW    = 0x00000001
	STARTF_USESIZE          = 0x00000002
	STARTF_USEPOSITION      = 0x00000004
	STARTF_USECOUNTCHARS    = 0x00000008
	STARTF_USEFILLATTRIBUTE = 0x00000010
	STARTF_RUNFULLSCREEN    = 0x00000020
	STARTF_FORCEONFEEDBACK  = 0x00000040
	STARTF_FORCEOFFFEEDBACK = 0x00000080
	STARTF_USESTDHANDLES    = 0x00000100
	STARTF_USEHOTKEY        = 0x00000200
	STARTF_TITLEISLINKNAME  = 0x00000800
	STARTF_TITLEISAPPID     = 0x00001000
	STARTF_PREVENTPINNING   = 0x00002000
)
View Source
const (
	MOVEFILE_REPLACE_EXISTING      = 0x00000001
	MOVEFILE_COPY_ALLOWED          = 0x00000002
	MOVEFILE_DELAY_UNTIL_REBOOT    = 0x00000004
	MOVEFILE_WRITE_THROUGH         = 0x00000008
	MOVEFILE_CREATE_HARDLINK       = 0x00000010
	MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x00000020
)
View Source
const (
	ComputerNameNetBIOS                   = 0
	ComputerNameDnsHostname               = 1
	ComputerNameDnsDomain                 = 2
	ComputerNameDnsFullyQualified         = 3
	ComputerNamePhysicalNetBIOS           = 4
	ComputerNamePhysicalDnsHostname       = 5
	ComputerNamePhysicalDnsDomain         = 6
	ComputerNamePhysicalDnsFullyQualified = 7
)
View Source
const (
	FOREGROUND_BLUE      = 0x0001
	FOREGROUND_GREEN     = 0x0002
	FOREGROUND_RED       = 0x0004
	FOREGROUND_INTENSITY = 0x0008
	BACKGROUND_BLUE      = 0x0010
	BACKGROUND_GREEN     = 0x0020
	BACKGROUND_RED       = 0x0040
	BACKGROUND_INTENSITY = 0x0080
)
View Source
const (
	CTRL_C_EVENT        = 0
	CTRL_BREAK_EVENT    = 1
	CTRL_CLOSE_EVENT    = 2
	CTRL_LOGOFF_EVENT   = 5
	CTRL_SHUTDOWN_EVENT = 6
)
View Source
const (
	ENABLE_PROCESSED_INPUT        = 0x0001
	ENABLE_LINE_INPUT             = 0x0002
	ENABLE_ECHO_INPUT             = 0x0004
	ENABLE_WINDOW_INPUT           = 0x0008
	ENABLE_MOUSE_INPUT            = 0x0010
	ENABLE_INSERT_MODE            = 0x0020
	ENABLE_QUICK_EDIT_MODE        = 0x0040
	ENABLE_EXTENDED_FLAGS         = 0x0080
	ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200
)
View Source
const (
	ENABLE_PROCESSED_OUTPUT            = 0x0001
	ENABLE_WRAP_AT_EOL_OUTPUT          = 0x0002
	ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004
	DISABLE_NEWLINE_AUTO_RETURN        = 0x0008
	ENABLE_LVB_GRID_WORLDWIDE          = 0x0010
)
View Source
const (
	FACILITY_WINRM                   = 51
	FACILITY_WINDOWSUPDATE           = 36
	FACILITY_WINDOWS_DEFENDER        = 80
	FACILITY_WINDOWS_CE              = 24
	FACILITY_WINDOWS                 = 8
	FACILITY_USERMODE_VOLMGR         = 56
	FACILITY_USERMODE_VIRTUALIZATION = 55
	FACILITY_USERMODE_VHD            = 58
	FACILITY_URT                     = 19
	FACILITY_UMI                     = 22
	FACILITY_TPM_SOFTWARE            = 41
	FACILITY_TPM_SERVICES            = 40
	FACILITY_SXS                     = 23
	FACILITY_STORAGE                 = 3
	FACILITY_STATE_MANAGEMENT        = 34
	FACILITY_SSPI                    = 9
	FACILITY_SCARD                   = 16
	FACILITY_SHELL                   = 39
	FACILITY_SETUPAPI                = 15
	FACILITY_SECURITY                = 9
	FACILITY_SDIAG                   = 60
	FACILITY_RPC                     = 1
	FACILITY_PLA                     = 48
	FACILITY_OPC                     = 81
	FACILITY_WIN32                   = 7
	FACILITY_CONTROL                 = 10
	FACILITY_WEBSERVICES             = 61
	FACILITY_NULL                    = 0
	FACILITY_NDIS                    = 52
	FACILITY_METADIRECTORY           = 35
	FACILITY_MSMQ                    = 14
	FACILITY_MEDIASERVER             = 13
	FACILITY_INTERNET                = 12
	FACILITY_ITF                     = 4
	FACILITY_USERMODE_HYPERVISOR     = 53
	FACILITY_HTTP                    = 25
	FACILITY_GRAPHICS                = 38
	FACILITY_FWP                     = 50
	FACILITY_FVE                     = 49
	FACILITY_USERMODE_FILTER_MANAGER = 31
	FACILITY_DPLAY                   = 21
	FACILITY_DISPATCH                = 2
	FACILITY_DIRECTORYSERVICE        = 37
	FACILITY_CONFIGURATION           = 33
	FACILITY_COMPLUS                 = 17
	FACILITY_USERMODE_COMMONLOG      = 26
	FACILITY_CMI                     = 54
	FACILITY_CERT                    = 11
	FACILITY_BCD                     = 57
	FACILITY_BACKGROUNDCOPY          = 32
	FACILITY_ACS                     = 20
	FACILITY_AAF                     = 18
)
View Source
const (
	ERROR_SUCCESS                                                 syscall.Errno = 0
	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_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_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_MR_MID_NOT_FOUND                                        syscall.Errno = 317
	ERROR_SCOPE_NOT_FOUND                                         syscall.Errno = 318
	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_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_INVALID_ADDRESS                                         syscall.Errno = 487
	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_ERR                                   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_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_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_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_DETECH_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_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
)
View Source
const (
	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
)

/////////////////////////////////////////////////

                                  //
Winnet32 Error codes              //
                                  //
    2100 to 2999                  //
                                  //

The range 2100 through 2999 is reserved for // network status codes. See lmerr.h for a // complete listing // /////////////////////////////////////////////////

View Source
const (
	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
)
View Source
const (
	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
)
View Source
const (
	ERROR_EVENTLOG_FILE_CORRUPT syscall.Errno = 1500
	ERROR_EVENTLOG_CANT_START   syscall.Errno = 1501
	ERROR_EVENTLOG_FILE_FULL    syscall.Errno = 1502
	ERROR_EVENTLOG_FILE_CHANGED syscall.Errno = 1503
)
View Source
const (
	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_ADVERTISTED_PRODUCT syscall.Errno = 1651
	ERROR_INSTALL_SERVICE_SAFEBOOT          syscall.Errno = 1652
	ERROR_FAIL_FAST_EXCEPTION               syscall.Errno = 1653
)
View Source
const (
	ERROR_DS_NOT_INSTALLED                                 syscall.Errno = 8200
	ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY                  syscall.Errno = 8201
	ERROR_DS_NO_ATTRIBUTE_OR_VALUE                         syscall.Errno = 8202
	ERROR_DS_INVALID_ATTRIBUTE_SYNTAX                      syscall.Errno = 8203
	ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED                      syscall.Errno = 8204
	ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS                     syscall.Errno = 8205
	ERROR_DS_BUSY                                          syscall.Errno = 8206
	ERROR_DS_UNAVAILABLE                                   syscall.Errno = 8207
	ERROR_DS_NO_RIDS_ALLOCATED                             syscall.Errno = 8208
	ERROR_DS_NO_MORE_RIDS                                  syscall.Errno = 8209
	ERROR_DS_INCORRECT_ROLE_OWNER                          syscall.Errno = 8210
	ERROR_DS_RIDMGR_INIT_ERROR                             syscall.Errno = 8211
	ERROR_DS_OBJ_CLASS_VIOLATION                           syscall.Errno = 8212
	ERROR_DS_CANT_ON_NON_LEAF                              syscall.Errno = 8213
	ERROR_DS_CANT_ON_RDN                                   syscall.Errno = 8214
	ERROR_DS_CANT_MOD_OBJ_CLASS                            syscall.Errno = 8215
	ERROR_DS_CROSS_DOM_MOVE_ERROR                          syscall.Errno = 8216
	ERROR_DS_GC_NOT_AVAILABLE                              syscall.Errno = 8217
	ERROR_SHARED_POLICY                                    syscall.Errno = 8218
	ERROR_POLICY_OBJECT_NOT_FOUND                          syscall.Errno = 8219
	ERROR_POLICY_ONLY_IN_DS                                syscall.Errno = 8220
	ERROR_PROMOTION_ACTIVE                                 syscall.Errno = 8221
	ERROR_NO_PROMOTION_ACTIVE                              syscall.Errno = 8222
	ERROR_DS_OPERATIONS_ERROR                              syscall.Errno = 8224
	ERROR_DS_PROTOCOL_ERROR                                syscall.Errno = 8225
	ERROR_DS_TIMELIMIT_EXCEEDED                            syscall.Errno = 8226
	ERROR_DS_SIZELIMIT_EXCEEDED                            syscall.Errno = 8227
	ERROR_DS_ADMIN_LIMIT_EXCEEDED                          syscall.Errno = 8228
	ERROR_DS_COMPARE_FALSE                                 syscall.Errno = 8229
	ERROR_DS_COMPARE_TRUE                                  syscall.Errno = 8230
	ERROR_DS_AUTH_METHOD_NOT_SUPPORTED                     syscall.Errno = 8231
	ERROR_DS_STRONG_AUTH_REQUIRED                          syscall.Errno = 8232
	ERROR_DS_INAPPROPRIATE_AUTH                            syscall.Errno = 8233
	ERROR_DS_AUTH_UNKNOWN                                  syscall.Errno = 8234
	ERROR_DS_REFERRAL                                      syscall.Errno = 8235
	ERROR_DS_UNAVAILABLE_CRIT_EXTENSION                    syscall.Errno = 8236
	ERROR_DS_CONFIDENTIALITY_REQUIRED                      syscall.Errno = 8237
	ERROR_DS_INAPPROPRIATE_MATCHING                        syscall.Errno = 8238
	ERROR_DS_CONSTRAINT_VIOLATION                          syscall.Errno = 8239
	ERROR_DS_NO_SUCH_OBJECT                                syscall.Errno = 8240
	ERROR_DS_ALIAS_PROBLEM                                 syscall.Errno = 8241
	ERROR_DS_INVALID_DN_SYNTAX                             syscall.Errno = 8242
	ERROR_DS_IS_LEAF                                       syscall.Errno = 8243
	ERROR_DS_ALIAS_DEREF_PROBLEM                           syscall.Errno = 8244
	ERROR_DS_UNWILLING_TO_PERFORM                          syscall.Errno = 8245
	ERROR_DS_LOOP_DETECT                                   syscall.Errno = 8246
	ERROR_DS_NAMING_VIOLATION                              syscall.Errno = 8247
	ERROR_DS_OBJECT_RESULTS_TOO_LARGE                      syscall.Errno = 8248
	ERROR_DS_AFFECTS_MULTIPLE_DSAS                         syscall.Errno = 8249
	ERROR_DS_SERVER_DOWN                                   syscall.Errno = 8250
	ERROR_DS_LOCAL_ERROR                                   syscall.Errno = 8251
	ERROR_DS_ENCODING_ERROR                                syscall.Errno = 8252
	ERROR_DS_DECODING_ERROR                                syscall.Errno = 8253
	ERROR_DS_FILTER_UNKNOWN                                syscall.Errno = 8254
	ERROR_DS_PARAM_ERROR                                   syscall.Errno = 8255
	ERROR_DS_NOT_SUPPORTED                                 syscall.Errno = 8256
	ERROR_DS_NO_RESULTS_RETURNED                           syscall.Errno = 8257
	ERROR_DS_CONTROL_NOT_FOUND                             syscall.Errno = 8258
	ERROR_DS_CLIENT_LOOP                                   syscall.Errno = 8259
	ERROR_DS_REFERRAL_LIMIT_EXCEEDED                       syscall.Errno = 8260
	ERROR_DS_SORT_CONTROL_MISSING                          syscall.Errno = 8261
	ERROR_DS_OFFSET_RANGE_ERROR                            syscall.Errno = 8262
	ERROR_DS_ROOT_MUST_BE_NC                               syscall.Errno = 8301
	ERROR_DS_ADD_REPLICA_INHIBITED                         syscall.Errno = 8302
	ERROR_DS_ATT_NOT_DEF_IN_SCHEMA                         syscall.Errno = 8303
	ERROR_DS_MAX_OBJ_SIZE_EXCEEDED                         syscall.Errno = 8304
	ERROR_DS_OBJ_STRING_NAME_EXISTS                        syscall.Errno = 8305
	ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA                      syscall.Errno = 8306
	ERROR_DS_RDN_DOESNT_MATCH_SCHEMA                       syscall.Errno = 8307
	ERROR_DS_NO_REQUESTED_ATTS_FOUND                       syscall.Errno = 8308
	ERROR_DS_USER_BUFFER_TOO_SMALL                         syscall.Errno = 8309
	ERROR_DS_ATT_IS_NOT_ON_OBJ                             syscall.Errno = 8310
	ERROR_DS_ILLEGAL_MOD_OPERATION                         syscall.Errno = 8311
	ERROR_DS_OBJ_TOO_LARGE                                 syscall.Errno = 8312
	ERROR_DS_BAD_INSTANCE_TYPE                             syscall.Errno = 8313
	ERROR_DS_MASTERDSA_REQUIRED                            syscall.Errno = 8314
	ERROR_DS_OBJECT_CLASS_REQUIRED                         syscall.Errno = 8315
	ERROR_DS_MISSING_REQUIRED_ATT                          syscall.Errno = 8316
	ERROR_DS_ATT_NOT_DEF_FOR_CLASS                         syscall.Errno = 8317
	ERROR_DS_ATT_ALREADY_EXISTS                            syscall.Errno = 8318
	ERROR_DS_CANT_ADD_ATT_VALUES                           syscall.Errno = 8320
	ERROR_DS_SINGLE_VALUE_CONSTRAINT                       syscall.Errno = 8321
	ERROR_DS_RANGE_CONSTRAINT                              syscall.Errno = 8322
	ERROR_DS_ATT_VAL_ALREADY_EXISTS                        syscall.Errno = 8323
	ERROR_DS_CANT_REM_MISSING_ATT                          syscall.Errno = 8324
	ERROR_DS_CANT_REM_MISSING_ATT_VAL                      syscall.Errno = 8325
	ERROR_DS_ROOT_CANT_BE_SUBREF                           syscall.Errno = 8326
	ERROR_DS_NO_CHAINING                                   syscall.Errno = 8327
	ERROR_DS_NO_CHAINED_EVAL                               syscall.Errno = 8328
	ERROR_DS_NO_PARENT_OBJECT                              syscall.Errno = 8329
	ERROR_DS_PARENT_IS_AN_ALIAS                            syscall.Errno = 8330
	ERROR_DS_CANT_MIX_MASTER_AND_REPS                      syscall.Errno = 8331
	ERROR_DS_CHILDREN_EXIST                                syscall.Errno = 8332
	ERROR_DS_OBJ_NOT_FOUND                                 syscall.Errno = 8333
	ERROR_DS_ALIASED_OBJ_MISSING                           syscall.Errno = 8334
	ERROR_DS_BAD_NAME_SYNTAX                               syscall.Errno = 8335
	ERROR_DS_ALIAS_POINTS_TO_ALIAS                         syscall.Errno = 8336
	ERROR_DS_CANT_DEREF_ALIAS                              syscall.Errno = 8337
	ERROR_DS_OUT_OF_SCOPE                                  syscall.Errno = 8338
	ERROR_DS_OBJECT_BEING_REMOVED                          syscall.Errno = 8339
	ERROR_DS_CANT_DELETE_DSA_OBJ                           syscall.Errno = 8340
	ERROR_DS_GENERIC_ERROR                                 syscall.Errno = 8341
	ERROR_DS_DSA_MUST_BE_INT_MASTER                        syscall.Errno = 8342
	ERROR_DS_CLASS_NOT_DSA                                 syscall.Errno = 8343
	ERROR_DS_INSUFF_ACCESS_RIGHTS                          syscall.Errno = 8344
	ERROR_DS_ILLEGAL_SUPERIOR                              syscall.Errno = 8345
	ERROR_DS_ATTRIBUTE_OWNED_BY_SAM                        syscall.Errno = 8346
	ERROR_DS_NAME_TOO_MANY_PARTS                           syscall.Errno = 8347
	ERROR_DS_NAME_TOO_LONG                                 syscall.Errno = 8348
	ERROR_DS_NAME_VALUE_TOO_LONG                           syscall.Errno = 8349
	ERROR_DS_NAME_UNPARSEABLE                              syscall.Errno = 8350
	ERROR_DS_NAME_TYPE_UNKNOWN                             syscall.Errno = 8351
	ERROR_DS_NOT_AN_OBJECT                                 syscall.Errno = 8352
	ERROR_DS_SEC_DESC_TOO_SHORT                            syscall.Errno = 8353
	ERROR_DS_SEC_DESC_INVALID                              syscall.Errno = 8354
	ERROR_DS_NO_DELETED_NAME                               syscall.Errno = 8355
	ERROR_DS_SUBREF_MUST_HAVE_PARENT                       syscall.Errno = 8356
	ERROR_DS_NCNAME_MUST_BE_NC                             syscall.Errno = 8357
	ERROR_DS_CANT_ADD_SYSTEM_ONLY                          syscall.Errno = 8358
	ERROR_DS_CLASS_MUST_BE_CONCRETE                        syscall.Errno = 8359
	ERROR_DS_INVALID_DMD                                   syscall.Errno = 8360
	ERROR_DS_OBJ_GUID_EXISTS                               syscall.Errno = 8361
	ERROR_DS_NOT_ON_BACKLINK                               syscall.Errno = 8362
	ERROR_DS_NO_CROSSREF_FOR_NC                            syscall.Errno = 8363
	ERROR_DS_SHUTTING_DOWN                                 syscall.Errno = 8364
	ERROR_DS_UNKNOWN_OPERATION                             syscall.Errno = 8365
	ERROR_DS_INVALID_ROLE_OWNER                            syscall.Errno = 8366
	ERROR_DS_COULDNT_CONTACT_FSMO                          syscall.Errno = 8367
	ERROR_DS_CROSS_NC_DN_RENAME                            syscall.Errno = 8368
	ERROR_DS_CANT_MOD_SYSTEM_ONLY                          syscall.Errno = 8369
	ERROR_DS_REPLICATOR_ONLY                               syscall.Errno = 8370
	ERROR_DS_OBJ_CLASS_NOT_DEFINED                         syscall.Errno = 8371
	ERROR_DS_OBJ_CLASS_NOT_SUBCLASS                        syscall.Errno = 8372
	ERROR_DS_NAME_REFERENCE_INVALID                        syscall.Errno = 8373
	ERROR_DS_CROSS_REF_EXISTS                              syscall.Errno = 8374
	ERROR_DS_CANT_DEL_MASTER_CROSSREF                      syscall.Errno = 8375
	ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD                    syscall.Errno = 8376
	ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX                     syscall.Errno = 8377
	ERROR_DS_DUP_RDN                                       syscall.Errno = 8378
	ERROR_DS_DUP_OID                                       syscall.Errno = 8379
	ERROR_DS_DUP_MAPI_ID                                   syscall.Errno = 8380
	ERROR_DS_DUP_SCHEMA_ID_GUID                            syscall.Errno = 8381
	ERROR_DS_DUP_LDAP_DISPLAY_NAME                         syscall.Errno = 8382
	ERROR_DS_SEMANTIC_ATT_TEST                             syscall.Errno = 8383
	ERROR_DS_SYNTAX_MISMATCH                               syscall.Errno = 8384
	ERROR_DS_EXISTS_IN_MUST_HAVE                           syscall.Errno = 8385
	ERROR_DS_EXISTS_IN_MAY_HAVE                            syscall.Errno = 8386
	ERROR_DS_NONEXISTENT_MAY_HAVE                          syscall.Errno = 8387
	ERROR_DS_NONEXISTENT_MUST_HAVE                         syscall.Errno = 8388
	ERROR_DS_AUX_CLS_TEST_FAIL                             syscall.Errno = 8389
	ERROR_DS_NONEXISTENT_POSS_SUP                          syscall.Errno = 8390
	ERROR_DS_SUB_CLS_TEST_FAIL                             syscall.Errno = 8391
	ERROR_DS_BAD_RDN_ATT_ID_SYNTAX                         syscall.Errno = 8392
	ERROR_DS_EXISTS_IN_AUX_CLS                             syscall.Errno = 8393
	ERROR_DS_EXISTS_IN_SUB_CLS                             syscall.Errno = 8394
	ERROR_DS_EXISTS_IN_POSS_SUP                            syscall.Errno = 8395
	ERROR_DS_RECALCSCHEMA_FAILED                           syscall.Errno = 8396
	ERROR_DS_TREE_DELETE_NOT_FINISHED                      syscall.Errno = 8397
	ERROR_DS_CANT_DELETE                                   syscall.Errno = 8398
	ERROR_DS_ATT_SCHEMA_REQ_ID                             syscall.Errno = 8399
	ERROR_DS_BAD_ATT_SCHEMA_SYNTAX                         syscall.Errno = 8400
	ERROR_DS_CANT_CACHE_ATT                                syscall.Errno = 8401
	ERROR_DS_CANT_CACHE_CLASS                              syscall.Errno = 8402
	ERROR_DS_CANT_REMOVE_ATT_CACHE                         syscall.Errno = 8403
	ERROR_DS_CANT_REMOVE_CLASS_CACHE                       syscall.Errno = 8404
	ERROR_DS_CANT_RETRIEVE_DN                              syscall.Errno = 8405
	ERROR_DS_MISSING_SUPREF                                syscall.Errno = 8406
	ERROR_DS_CANT_RETRIEVE_INSTANCE                        syscall.Errno = 8407
	ERROR_DS_CODE_INCONSISTENCY                            syscall.Errno = 8408
	ERROR_DS_DATABASE_ERROR                                syscall.Errno = 8409
	ERROR_DS_GOVERNSID_MISSING                             syscall.Errno = 8410
	ERROR_DS_MISSING_EXPECTED_ATT                          syscall.Errno = 8411
	ERROR_DS_NCNAME_MISSING_CR_REF                         syscall.Errno = 8412
	ERROR_DS_SECURITY_CHECKING_ERROR                       syscall.Errno = 8413
	ERROR_DS_SCHEMA_NOT_LOADED                             syscall.Errno = 8414
	ERROR_DS_SCHEMA_ALLOC_FAILED                           syscall.Errno = 8415
	ERROR_DS_ATT_SCHEMA_REQ_SYNTAX                         syscall.Errno = 8416
	ERROR_DS_GCVERIFY_ERROR                                syscall.Errno = 8417
	ERROR_DS_DRA_SCHEMA_MISMATCH                           syscall.Errno = 8418
	ERROR_DS_CANT_FIND_DSA_OBJ                             syscall.Errno = 8419
	ERROR_DS_CANT_FIND_EXPECTED_NC                         syscall.Errno = 8420
	ERROR_DS_CANT_FIND_NC_IN_CACHE                         syscall.Errno = 8421
	ERROR_DS_CANT_RETRIEVE_CHILD                           syscall.Errno = 8422
	ERROR_DS_SECURITY_ILLEGAL_MODIFY                       syscall.Errno = 8423
	ERROR_DS_CANT_REPLACE_HIDDEN_REC                       syscall.Errno = 8424
	ERROR_DS_BAD_HIERARCHY_FILE                            syscall.Errno = 8425
	ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED                  syscall.Errno = 8426
	ERROR_DS_CONFIG_PARAM_MISSING                          syscall.Errno = 8427
	ERROR_DS_COUNTING_AB_INDICES_FAILED                    syscall.Errno = 8428
	ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED                 syscall.Errno = 8429
	ERROR_DS_INTERNAL_FAILURE                              syscall.Errno = 8430
	ERROR_DS_UNKNOWN_ERROR                                 syscall.Errno = 8431
	ERROR_DS_ROOT_REQUIRES_CLASS_TOP                       syscall.Errno = 8432
	ERROR_DS_REFUSING_FSMO_ROLES                           syscall.Errno = 8433
	ERROR_DS_MISSING_FSMO_SETTINGS                         syscall.Errno = 8434
	ERROR_DS_UNABLE_TO_SURRENDER_ROLES                     syscall.Errno = 8435
	ERROR_DS_DRA_GENERIC                                   syscall.Errno = 8436
	ERROR_DS_DRA_INVALID_PARAMETER                         syscall.Errno = 8437
	ERROR_DS_DRA_BUSY                                      syscall.Errno = 8438
	ERROR_DS_DRA_BAD_DN                                    syscall.Errno = 8439
	ERROR_DS_DRA_BAD_NC                                    syscall.Errno = 8440
	ERROR_DS_DRA_DN_EXISTS                                 syscall.Errno = 8441
	ERROR_DS_DRA_INTERNAL_ERROR                            syscall.Errno = 8442
	ERROR_DS_DRA_INCONSISTENT_DIT                          syscall.Errno = 8443
	ERROR_DS_DRA_CONNECTION_FAILED                         syscall.Errno = 8444
	ERROR_DS_DRA_BAD_INSTANCE_TYPE                         syscall.Errno = 8445
	ERROR_DS_DRA_OUT_OF_MEM                                syscall.Errno = 8446
	ERROR_DS_DRA_MAIL_PROBLEM                              syscall.Errno = 8447
	ERROR_DS_DRA_REF_ALREADY_EXISTS                        syscall.Errno = 8448
	ERROR_DS_DRA_REF_NOT_FOUND                             syscall.Errno = 8449
	ERROR_DS_DRA_OBJ_IS_REP_SOURCE                         syscall.Errno = 8450
	ERROR_DS_DRA_DB_ERROR                                  syscall.Errno = 8451
	ERROR_DS_DRA_NO_REPLICA                                syscall.Errno = 8452
	ERROR_DS_DRA_ACCESS_DENIED                             syscall.Errno = 8453
	ERROR_DS_DRA_NOT_SUPPORTED                             syscall.Errno = 8454
	ERROR_DS_DRA_RPC_CANCELLED                             syscall.Errno = 8455
	ERROR_DS_DRA_SOURCE_DISABLED                           syscall.Errno = 8456
	ERROR_DS_DRA_SINK_DISABLED                             syscall.Errno = 8457
	ERROR_DS_DRA_NAME_COLLISION                            syscall.Errno = 8458
	ERROR_DS_DRA_SOURCE_REINSTALLED                        syscall.Errno = 8459
	ERROR_DS_DRA_MISSING_PARENT                            syscall.Errno = 8460
	ERROR_DS_DRA_PREEMPTED                                 syscall.Errno = 8461
	ERROR_DS_DRA_ABANDON_SYNC                              syscall.Errno = 8462
	ERROR_DS_DRA_SHUTDOWN                                  syscall.Errno = 8463
	ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET                  syscall.Errno = 8464
	ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA                 syscall.Errno = 8465
	ERROR_DS_DRA_EXTN_CONNECTION_FAILED                    syscall.Errno = 8466
	ERROR_DS_INSTALL_SCHEMA_MISMATCH                       syscall.Errno = 8467
	ERROR_DS_DUP_LINK_ID                                   syscall.Errno = 8468
	ERROR_DS_NAME_ERROR_RESOLVING                          syscall.Errno = 8469
	ERROR_DS_NAME_ERROR_NOT_FOUND                          syscall.Errno = 8470
	ERROR_DS_NAME_ERROR_NOT_UNIQUE                         syscall.Errno = 8471
	ERROR_DS_NAME_ERROR_NO_MAPPING                         syscall.Errno = 8472
	ERROR_DS_NAME_ERROR_DOMAIN_ONLY                        syscall.Errno = 8473
	ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING             syscall.Errno = 8474
	ERROR_DS_CONSTRUCTED_ATT_MOD                           syscall.Errno = 8475
	ERROR_DS_WRONG_OM_OBJ_CLASS                            syscall.Errno = 8476
	ERROR_DS_DRA_REPL_PENDING                              syscall.Errno = 8477
	ERROR_DS_DS_REQUIRED                                   syscall.Errno = 8478
	ERROR_DS_INVALID_LDAP_DISPLAY_NAME                     syscall.Errno = 8479
	ERROR_DS_NON_BASE_SEARCH                               syscall.Errno = 8480
	ERROR_DS_CANT_RETRIEVE_ATTS                            syscall.Errno = 8481
	ERROR_DS_BACKLINK_WITHOUT_LINK                         syscall.Errno = 8482
	ERROR_DS_EPOCH_MISMATCH                                syscall.Errno = 8483
	ERROR_DS_SRC_NAME_MISMATCH                             syscall.Errno = 8484
	ERROR_DS_SRC_AND_DST_NC_IDENTICAL                      syscall.Errno = 8485
	ERROR_DS_DST_NC_MISMATCH                               syscall.Errno = 8486
	ERROR_DS_NOT_AUTHORITATIVE_FOR_DST_NC                  syscall.Errno = 8487
	ERROR_DS_SRC_GUID_MISMATCH                             syscall.Errno = 8488
	ERROR_DS_CANT_MOVE_DELETED_OBJECT                      syscall.Errno = 8489
	ERROR_DS_PDC_OPERATION_IN_PROGRESS                     syscall.Errno = 8490
	ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD                     syscall.Errno = 8491
	ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION                   syscall.Errno = 8492
	ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS               syscall.Errno = 8493
	ERROR_DS_NC_MUST_HAVE_NC_PARENT                        syscall.Errno = 8494
	ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE                     syscall.Errno = 8495
	ERROR_DS_DST_DOMAIN_NOT_NATIVE                         syscall.Errno = 8496
	ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER              syscall.Errno = 8497
	ERROR_DS_CANT_MOVE_ACCOUNT_GROUP                       syscall.Errno = 8498
	ERROR_DS_CANT_MOVE_RESOURCE_GROUP                      syscall.Errno = 8499
	ERROR_DS_INVALID_SEARCH_FLAG                           syscall.Errno = 8500
	ERROR_DS_NO_TREE_DELETE_ABOVE_NC                       syscall.Errno = 8501
	ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE                  syscall.Errno = 8502
	ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE      syscall.Errno = 8503
	ERROR_DS_SAM_INIT_FAILURE                              syscall.Errno = 8504
	ERROR_DS_SENSITIVE_GROUP_VIOLATION                     syscall.Errno = 8505
	ERROR_DS_CANT_MOD_PRIMARYGROUPID                       syscall.Errno = 8506
	ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD                       syscall.Errno = 8507
	ERROR_DS_NONSAFE_SCHEMA_CHANGE                         syscall.Errno = 8508
	ERROR_DS_SCHEMA_UPDATE_DISALLOWED                      syscall.Errno = 8509
	ERROR_DS_CANT_CREATE_UNDER_SCHEMA                      syscall.Errno = 8510
	ERROR_DS_INSTALL_NO_SRC_SCH_VERSION                    syscall.Errno = 8511
	ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE             syscall.Errno = 8512
	ERROR_DS_INVALID_GROUP_TYPE                            syscall.Errno = 8513
	ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN            syscall.Errno = 8514
	ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN             syscall.Errno = 8515
	ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER                 syscall.Errno = 8516
	ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER             syscall.Errno = 8517
	ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER              syscall.Errno = 8518
	ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER           syscall.Errno = 8519
	ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER      syscall.Errno = 8520
	ERROR_DS_HAVE_PRIMARY_MEMBERS                          syscall.Errno = 8521
	ERROR_DS_STRING_SD_CONVERSION_FAILED                   syscall.Errno = 8522
	ERROR_DS_NAMING_MASTER_GC                              syscall.Errno = 8523
	ERROR_DS_DNS_LOOKUP_FAILURE                            syscall.Errno = 8524
	ERROR_DS_COULDNT_UPDATE_SPNS                           syscall.Errno = 8525
	ERROR_DS_CANT_RETRIEVE_SD                              syscall.Errno = 8526
	ERROR_DS_KEY_NOT_UNIQUE                                syscall.Errno = 8527
	ERROR_DS_WRONG_LINKED_ATT_SYNTAX                       syscall.Errno = 8528
	ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD                     syscall.Errno = 8529
	ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY                       syscall.Errno = 8530
	ERROR_DS_CANT_START                                    syscall.Errno = 8531
	ERROR_DS_INIT_FAILURE                                  syscall.Errno = 8532
	ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION                  syscall.Errno = 8533
	ERROR_DS_SOURCE_DOMAIN_IN_FOREST                       syscall.Errno = 8534
	ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST              syscall.Errno = 8535
	ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED              syscall.Errno = 8536
	ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN                   syscall.Errno = 8537
	ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER                     syscall.Errno = 8538
	ERROR_DS_SRC_SID_EXISTS_IN_FOREST                      syscall.Errno = 8539
	ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH             syscall.Errno = 8540
	ERROR_SAM_INIT_FAILURE                                 syscall.Errno = 8541
	ERROR_DS_DRA_SCHEMA_INFO_SHIP                          syscall.Errno = 8542
	ERROR_DS_DRA_SCHEMA_CONFLICT                           syscall.Errno = 8543
	ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT                   syscall.Errno = 8544
	ERROR_DS_DRA_OBJ_NC_MISMATCH                           syscall.Errno = 8545
	ERROR_DS_NC_STILL_HAS_DSAS                             syscall.Errno = 8546
	ERROR_DS_GC_REQUIRED                                   syscall.Errno = 8547
	ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY                    syscall.Errno = 8548
	ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS                    syscall.Errno = 8549
	ERROR_DS_CANT_ADD_TO_GC                                syscall.Errno = 8550
	ERROR_DS_NO_CHECKPOINT_WITH_PDC                        syscall.Errno = 8551
	ERROR_DS_SOURCE_AUDITING_NOT_ENABLED                   syscall.Errno = 8552
	ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC                   syscall.Errno = 8553
	ERROR_DS_INVALID_NAME_FOR_SPN                          syscall.Errno = 8554
	ERROR_DS_FILTER_USES_CONSTRUCTED_ATTRS                 syscall.Errno = 8555
	ERROR_DS_UNICODEPWD_NOT_IN_QUOTES                      syscall.Errno = 8556
	ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED                syscall.Errno = 8557
	ERROR_DS_MUST_BE_RUN_ON_DST_DC                         syscall.Errno = 8558
	ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER                 syscall.Errno = 8559
	ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ                 syscall.Errno = 8560
	ERROR_DS_INIT_FAILURE_CONSOLE                          syscall.Errno = 8561
	ERROR_DS_SAM_INIT_FAILURE_CONSOLE                      syscall.Errno = 8562
	ERROR_DS_FOREST_VERSION_TOO_HIGH                       syscall.Errno = 8563
	ERROR_DS_DOMAIN_VERSION_TOO_HIGH                       syscall.Errno = 8564
	ERROR_DS_FOREST_VERSION_TOO_LOW                        syscall.Errno = 8565
	ERROR_DS_DOMAIN_VERSION_TOO_LOW                        syscall.Errno = 8566
	ERROR_DS_INCOMPATIBLE_VERSION                          syscall.Errno = 8567
	ERROR_DS_LOW_DSA_VERSION                               syscall.Errno = 8568
	ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN            syscall.Errno = 8569
	ERROR_DS_NOT_SUPPORTED_SORT_ORDER                      syscall.Errno = 8570
	ERROR_DS_NAME_NOT_UNIQUE                               syscall.Errno = 8571
	ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4                syscall.Errno = 8572
	ERROR_DS_OUT_OF_VERSION_STORE                          syscall.Errno = 8573
	ERROR_DS_INCOMPATIBLE_CONTROLS_USED                    syscall.Errno = 8574
	ERROR_DS_NO_REF_DOMAIN                                 syscall.Errno = 8575
	ERROR_DS_RESERVED_LINK_ID                              syscall.Errno = 8576
	ERROR_DS_LINK_ID_NOT_AVAILABLE                         syscall.Errno = 8577
	ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER                 syscall.Errno = 8578
	ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE          syscall.Errno = 8579
	ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC                   syscall.Errno = 8580
	ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG                   syscall.Errno = 8581
	ERROR_DS_MODIFYDN_WRONG_GRANDPARENT                    syscall.Errno = 8582
	ERROR_DS_NAME_ERROR_TRUST_REFERRAL                     syscall.Errno = 8583
	ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER                 syscall.Errno = 8584
	ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD                 syscall.Errno = 8585
	ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2                  syscall.Errno = 8586
	ERROR_DS_THREAD_LIMIT_EXCEEDED                         syscall.Errno = 8587
	ERROR_DS_NOT_CLOSEST                                   syscall.Errno = 8588
	ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF            syscall.Errno = 8589
	ERROR_DS_SINGLE_USER_MODE_FAILED                       syscall.Errno = 8590
	ERROR_DS_NTDSCRIPT_SYNTAX_ERROR                        syscall.Errno = 8591
	ERROR_DS_NTDSCRIPT_PROCESS_ERROR                       syscall.Errno = 8592
	ERROR_DS_DIFFERENT_REPL_EPOCHS                         syscall.Errno = 8593
	ERROR_DS_DRS_EXTENSIONS_CHANGED                        syscall.Errno = 8594
	ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR syscall.Errno = 8595
	ERROR_DS_NO_MSDS_INTID                                 syscall.Errno = 8596
	ERROR_DS_DUP_MSDS_INTID                                syscall.Errno = 8597
	ERROR_DS_EXISTS_IN_RDNATTID                            syscall.Errno = 8598
	ERROR_DS_AUTHORIZATION_FAILED                          syscall.Errno = 8599
	ERROR_DS_INVALID_SCRIPT                                syscall.Errno = 8600
	ERROR_DS_REMOTE_CROSSREF_OP_FAILED                     syscall.Errno = 8601
	ERROR_DS_CROSS_REF_BUSY                                syscall.Errno = 8602
	ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN            syscall.Errno = 8603
	ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC                 syscall.Errno = 8604
	ERROR_DS_DUPLICATE_ID_FOUND                            syscall.Errno = 8605
	ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT            syscall.Errno = 8606
	ERROR_DS_GROUP_CONVERSION_ERROR                        syscall.Errno = 8607
	ERROR_DS_CANT_MOVE_APP_BASIC_GROUP                     syscall.Errno = 8608
	ERROR_DS_CANT_MOVE_APP_QUERY_GROUP                     syscall.Errno = 8609
	ERROR_DS_ROLE_NOT_VERIFIED                             syscall.Errno = 8610
	ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL               syscall.Errno = 8611
	ERROR_DS_DOMAIN_RENAME_IN_PROGRESS                     syscall.Errno = 8612
	ERROR_DS_EXISTING_AD_CHILD_NC                          syscall.Errno = 8613
	ERROR_DS_REPL_LIFETIME_EXCEEDED                        syscall.Errno = 8614
	ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER                syscall.Errno = 8615
	ERROR_DS_LDAP_SEND_QUEUE_FULL                          syscall.Errno = 8616
	ERROR_DS_DRA_OUT_SCHEDULE_WINDOW                       syscall.Errno = 8617
	ERROR_DS_POLICY_NOT_KNOWN                              syscall.Errno = 8618
	ERROR_NO_SITE_SETTINGS_OBJECT                          syscall.Errno = 8619
	ERROR_NO_SECRETS                                       syscall.Errno = 8620
	ERROR_NO_WRITABLE_DC_FOUND                             syscall.Errno = 8621
	ERROR_DS_NO_SERVER_OBJECT                              syscall.Errno = 8622
	ERROR_DS_NO_NTDSA_OBJECT                               syscall.Errno = 8623
	ERROR_DS_NON_ASQ_SEARCH                                syscall.Errno = 8624
	ERROR_DS_AUDIT_FAILURE                                 syscall.Errno = 8625
	ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE                   syscall.Errno = 8626
	ERROR_DS_INVALID_SEARCH_FLAG_TUPLE                     syscall.Errno = 8627
	ERROR_DS_HIERARCHY_TABLE_TOO_DEEP                      syscall.Errno = 8628
	ERROR_DS_DRA_CORRUPT_UTD_VECTOR                        syscall.Errno = 8629
	ERROR_DS_DRA_SECRETS_DENIED                            syscall.Errno = 8630
	ERROR_DS_RESERVED_MAPI_ID                              syscall.Errno = 8631
	ERROR_DS_MAPI_ID_NOT_AVAILABLE                         syscall.Errno = 8632
	ERROR_DS_DRA_MISSING_KRBTGT_SECRET                     syscall.Errno = 8633
	ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST                  syscall.Errno = 8634
	ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST                    syscall.Errno = 8635
	ERROR_INVALID_USER_PRINCIPAL_NAME                      syscall.Errno = 8636
	ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS            syscall.Errno = 8637
	ERROR_DS_OID_NOT_FOUND                                 syscall.Errno = 8638
	ERROR_DS_DRA_RECYCLED_TARGET                           syscall.Errno = 8639
)
View Source
const (
	WSAEINTR                   syscall.Errno = 10004
	WSAEBADF                   syscall.Errno = 10009
	WSAEACCES                  syscall.Errno = 10013
	WSAEFAULT                  syscall.Errno = 10014
	WSAEINVAL                  syscall.Errno = 10022
	WSAEMFILE                  syscall.Errno = 10024
	WSAEWOULDBLOCK             syscall.Errno = 10035
	WSAEINPROGRESS             syscall.Errno = 10036
	WSAEALREADY                syscall.Errno = 10037
	WSAENOTSOCK                syscall.Errno = 10038
	WSAEDESTADDRREQ            syscall.Errno = 10039
	WSAEMSGSIZE                syscall.Errno = 10040
	WSAEPROTOTYPE              syscall.Errno = 10041
	WSAENOPROTOOPT             syscall.Errno = 10042
	WSAEPROTONOSUPPORT         syscall.Errno = 10043
	WSAESOCKTNOSUPPORT         syscall.Errno = 10044
	WSAEOPNOTSUPP              syscall.Errno = 10045
	WSAEPFNOSUPPORT            syscall.Errno = 10046
	WSAEAFNOSUPPORT            syscall.Errno = 10047
	WSAEADDRINUSE              syscall.Errno = 10048
	WSAEADDRNOTAVAIL           syscall.Errno = 10049
	WSAENOTDOWN                syscall.Errno = 10050
	WSAENETUNREACH             syscall.Errno = 10051
	WSAENETRESET               syscall.Errno = 10052
	WSAECONNABORTED            syscall.Errno = 10053
	WSAECONNRESET              syscall.Errno = 10054
	WSAENOBUFS                 syscall.Errno = 10055
	WSAEISCONN                 syscall.Errno = 10056
	WSAENOTCONN                syscall.Errno = 10057
	WSAESHUTDOWN               syscall.Errno = 10058
	WSAETOOMANYREFS            syscall.Errno = 10059
	WSAEDTIMEDOUT              syscall.Errno = 10060
	WSAECONNREFUSED            syscall.Errno = 10061
	WSAELOOP                   syscall.Errno = 10062
	WSAENAMETOOLONG            syscall.Errno = 10063
	WSAEHOSTDOWN               syscall.Errno = 10064
	WSAEHOSTUNREACH            syscall.Errno = 10065
	WSAENOTEMPTY               syscall.Errno = 10066
	WSAEPROCLIM                syscall.Errno = 10067
	WSAEUSERS                  syscall.Errno = 10068
	WSAEDQUOT                  syscall.Errno = 10069
	WSAESTALE                  syscall.Errno = 10070
	WSAEREMOTE                 syscall.Errno = 10071
	WSASYSNOTREADY             syscall.Errno = 10091
	WSAVERNOTSUPPORTED         syscall.Errno = 10092
	WSANOTINITIALISED          syscall.Errno = 10093
	WSAEDISCON                 syscall.Errno = 10101
	WSAENOMORE                 syscall.Errno = 10102
	WSAECANCELLED              syscall.Errno = 10103
	WSAEINVALIDPROCTABLE       syscall.Errno = 10104
	WSAEINVALIDPROVIDER        syscall.Errno = 10105
	WSAEPROVIDERFAILEDINIT     syscall.Errno = 10106
	WSASYSCALLFAILURE          syscall.Errno = 10107
	WSASERVICE_NOT_FOUND       syscall.Errno = 10108
	WSATYPE_NOT_FOUND          syscall.Errno = 10109
	WSA_E_NO_MORE              syscall.Errno = 10110
	WSA_E_CANCELLED            syscall.Errno = 10111
	WSAEREFUSED                syscall.Errno = 10112
	WSAHOST_NOT_FOUND          syscall.Errno = 11001
	WSATRY_AGAIN               syscall.Errno = 11002
	WSANO_RECOVERY             syscall.Errno = 11003
	WSANO_DATA                 syscall.Errno = 11004
	WSA_QOS_RECEIVERS          syscall.Errno = 11005
	WSA_QOS_SENDERS            syscall.Errno = 11006
	WSA_QOS_NO_SENDERS         syscall.Errno = 11007
	WSA_QOS_NO_RECEIVERS       syscall.Errno = 11008
	WSA_QOS_REQUEST_CONFIRMED  syscall.Errno = 11009
	WSA_QOS_ADMISSION_FAILURE  syscall.Errno = 11010
	WSA_QOS_POLICY_FAILURE     syscall.Errno = 11011
	WSA_QOS_BAD_STYLE          syscall.Errno = 11012
	WSA_QOS_BAD_OBJECT         syscall.Errno = 11013
	WSA_QOS_TRAFFIC_CTRL_ERROR syscall.Errno = 11014
	WSA_QOS_GENERIC_ERROR      syscall.Errno = 11015
	WSA_QOS_ESERVICETYPE       syscall.Errno = 11016
	WSA_QOS_EFLOWSPEC          syscall.Errno = 11017
	WSA_QOS_EPROVSPECBUF       syscall.Errno = 11018
	WSA_QOS_EFILTERSTYLE       syscall.Errno = 11019
	WSA_QOS_EFILTERTYPE        syscall.Errno = 11020
	WSA_QOS_EFILTERCOUNT       syscall.Errno = 11021
	WSA_QOS_EOBJLENGTH         syscall.Errno = 11022
	WSA_QOS_EFLOWCOUNT         syscall.Errno = 11023
	WSA_QOS_EUNKNOWNPSOBJ      syscall.Errno = 11024
	WSA_QOS_EPOLICYOBJ         syscall.Errno = 11025
	WSA_QOS_EFLOWDESC          syscall.Errno = 11026
	WSA_QOS_EPSFLOWSPEC        syscall.Errno = 11027
	WSA_QOS_EPSFILTERSPEC      syscall.Errno = 11028
	WSA_QOS_ESDMODEOBJ         syscall.Errno = 11029
	WSA_QOS_ESHAPERATEOBJ      syscall.Errno = 11030
	WSA_QOS_RESERVED_PETYPE    syscall.Errno = 11031
)
View Source
const (
	SEVERITY_SUCCESS = 0
	SEVERITY_ERROR   = 1
)
View Source
const (
	E_UNEXPECTED                                  = 0x8000FFFF
	E_NOTIMPL                                     = 0x80004001
	E_OUTOFMEMORY                                 = 0x8007000E
	E_INVALIDARG                                  = 0x80070057
	E_NOINTERFACE                                 = 0x80004002
	E_POINTER                                     = 0x80004003
	E_HANDLE                                      = 0x80070006
	E_ABORT                                       = 0x80004004
	E_FAIL                                        = 0x80004005
	E_ACCESSDENIED                                = 0x80070005
	E_PENDING                                     = 0x8000000A
	CO_E_INIT_TLS                                 = 0x80004006
	CO_E_INIT_SHARED_ALLOCATOR                    = 0x80004007
	CO_E_INIT_MEMORY_ALLOCATOR                    = 0x80004008
	CO_E_INIT_CLASS_CACHE                         = 0x80004009
	CO_E_INIT_RPC_CHANNEL                         = 0x8000400A
	CO_E_INIT_TLS_SET_CHANNEL_CONTROL             = 0x8000400B
	CO_E_INIT_TLS_CHANNEL_CONTROL                 = 0x8000400C
	CO_E_INIT_UNACCEPTED_USER_ALLOCATOR           = 0x8000400D
	CO_E_INIT_SCM_MUTEX_EXISTS                    = 0x8000400E
	CO_E_INIT_SCM_FILE_MAPPING_EXISTS             = 0x8000400F
	CO_E_INIT_SCM_MAP_VIEW_OF_FILE                = 0x80004010
	CO_E_INIT_SCM_EXEC_FAILURE                    = 0x80004011
	CO_E_INIT_ONLY_SINGLE_THREADED                = 0x80004012
	CO_E_INIT_CANT_REMOTE                         = 0x80004013
	CO_E_BAD_SERVER_NAME                          = 0x80004014
	CO_E_WRONG_SERVER_IDENTITY                    = 0x80004015
	CO_E_OLE1DDE_DISABLED                         = 0x80004016
	CO_E_RUNAS_SYNTAX                             = 0x80004017
	CO_E_CREATEPROCESS_FAILURE                    = 0x80004018
	CO_E_RUNAS_CREATEPROCESS_FAILURE              = 0x80004019
	CO_E_RUNAS_LOGON_FAILURE                      = 0x8000401A
	CO_E_LAUNCH_PERMISSION_DENIED                 = 0x8000401B
	CO_E_START_SERVICE_FAILURE                    = 0x8000401C
	CO_E_REMOTE_COMMUNICATION_FAILURE             = 0x8000401D
	CO_E_SERVER_START_TIMEOUT                     = 0x8000401E
	CO_E_CLSREG_INCONSISTENT                      = 0x8000401F
	CO_E_IIDREG_INCONSISTENT                      = 0x80004020
	CO_E_NOT_SUPPORTED                            = 0x80004021
	CO_E_RELOAD_DLL                               = 0x80004022
	CO_E_MSI_ERROR                                = 0x80004023
	CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT = 0x80004024
	CO_E_SERVER_PAUSED                            = 0x80004025
	CO_E_SERVER_NOT_PAUSED                        = 0x80004026
	CO_E_CLASS_DISABLED                           = 0x80004027
	CO_E_CLRNOTAVAILABLE                          = 0x80004028
	CO_E_ASYNC_WORK_REJECTED                      = 0x80004029
	CO_E_SERVER_INIT_TIMEOUT                      = 0x8000402A
	CO_E_NO_SECCTX_IN_ACTIVATE                    = 0x8000402B
	CO_E_TRACKER_CONFIG                           = 0x80004030
	CO_E_THREADPOOL_CONFIG                        = 0x80004031
	CO_E_SXS_CONFIG                               = 0x80004032
	CO_E_MALFORMED_SPN                            = 0x80004033
)
View Source
const (
	S_OK    = 0
	S_FALSE = 1
)
View Source
const (
	OLE_E_OLEVERB                                     = 0x80040000
	OLE_E_ADVF                                        = 0x80040001
	OLE_E_ENUM_NOMORE                                 = 0x80040002
	OLE_E_ADVISENOTSUPPORTED                          = 0x80040003
	OLE_E_NOCONNECTION                                = 0x80040004
	OLE_E_NOTRUNNING                                  = 0x80040005
	OLE_E_NOCACHE                                     = 0x80040006
	OLE_E_BLANK                                       = 0x80040007
	OLE_E_CLASSDIFF                                   = 0x80040008
	OLE_E_CANT_GETMONIKER                             = 0x80040009
	OLE_E_CANT_BINDTOSOURCE                           = 0x8004000A
	OLE_E_STATIC                                      = 0x8004000B
	OLE_E_PROMPTSAVECANCELLED                         = 0x8004000C
	OLE_E_INVALIDRECT                                 = 0x8004000D
	OLE_E_WRONGCOMPOBJ                                = 0x8004000E
	OLE_E_INVALIDHWND                                 = 0x8004000F
	OLE_E_NOT_INPLACEACTIVE                           = 0x80040010
	OLE_E_CANTCONVERT                                 = 0x80040011
	OLE_E_NOSTORAGE                                   = 0x80040012
	DV_E_FORMATETC                                    = 0x80040064
	DV_E_DVTARGETDEVICE                               = 0x80040065
	DV_E_STGMEDIUM                                    = 0x80040066
	DV_E_STATDATA                                     = 0x80040067
	DV_E_LINDEX                                       = 0x80040068
	DV_E_TYMED                                        = 0x80040069
	DV_E_CLIPFORMAT                                   = 0x8004006A
	DV_E_DVASPECT                                     = 0x8004006B
	DV_E_DVTARGETDEVICE_SIZE                          = 0x8004006C
	DV_E_NOIVIEWOBJECT                                = 0x8004006D
	DRAGDROP_E_NOTREGISTERED                          = 0x80040100
	DRAGDROP_E_ALREADYREGISTERED                      = 0x80040101
	DRAGDROP_E_INVALIDHWND                            = 0x80040102
	CLASS_E_NOAGGREGATION                             = 0x80040110
	CLASS_E_CLASSNOTAVAILABLE                         = 0x80040111
	CLASS_E_NOTLICENSED                               = 0x80040112
	VIEW_E_DRAW                                       = 0x80040140
	REGDB_E_READREGDB                                 = 0x80040150
	REGDB_E_WRITEREGDB                                = 0x80040151
	REGDB_E_KEYMISSING                                = 0x80040152
	REGDB_E_INVALIDVALUE                              = 0x80040153
	REGDB_E_CLASSNOTREG                               = 0x80040154
	REGDB_E_IIDNOTREG                                 = 0x80040155
	REGDB_E_BADTHREADINGMODEL                         = 0x80040156
	CAT_E_CATIDNOEXIST                                = 0x80040160
	CAT_E_NODESCRIPTION                               = 0x80040161
	CS_E_PACKAGE_NOTFOUND                             = 0x80040164
	CS_E_NOT_DELETABLE                                = 0x80040165
	CS_E_CLASS_NOTFOUND                               = 0x80040166
	CS_E_INVALID_VERSION                              = 0x80040167
	CS_E_NO_CLASSSTORE                                = 0x80040168
	CS_E_OBJECT_NOTFOUND                              = 0x80040169
	CS_E_OBJECT_ALREADY_EXISTS                        = 0x8004016A
	CS_E_INVALID_PATH                                 = 0x8004016B
	CS_E_NETWORK_ERROR                                = 0x8004016C
	CS_E_ADMIN_LIMIT_EXCEEDED                         = 0x8004016D
	CS_E_SCHEMA_MISMATCH                              = 0x8004016E
	CS_E_INTERNAL_ERROR                               = 0x8004016F
	CACHE_E_NOCACHE_UPDATED                           = 0x80040170
	OLEOBJ_E_NOVERBS                                  = 0x80040180
	OLEOBJ_E_INVALIDVERB                              = 0x80040181
	INPLACE_E_NOTUNDOABLE                             = 0x800401A0
	INPLACE_E_NOTOOLSPACE                             = 0x800401A1
	CONVERT10_E_OLESTREAM_GET                         = 0x800401C0
	CONVERT10_E_OLESTREAM_PUT                         = 0x800401C1
	CONVERT10_E_OLESTREAM_FMT                         = 0x800401C2
	CONVERT10_E_OLESTREAM_BITMAP_TO_DIB               = 0x800401C3
	CONVERT10_E_STG_FMT                               = 0x800401C4
	CONVERT10_E_STG_NO_STD_STREAM                     = 0x800401C5
	CONVERT10_E_STG_DIB_TO_BITMAP                     = 0x800401C6
	CLIPBRD_E_CANT_OPEN                               = 0x800401D0
	CLIPBRD_E_CANT_EMPTY                              = 0x800401D1
	CLIPBRD_E_CANT_SET                                = 0x800401D2
	CLIPBRD_E_BAD_DATA                                = 0x800401D3
	CLIPBRD_E_CANT_CLOSE                              = 0x800401D4
	MK_E_CONNECTMANUALLY                              = 0x800401E0
	MK_E_EXCEEDEDDEADLINE                             = 0x800401E1
	MK_E_NEEDGENERIC                                  = 0x800401E2
	MK_E_UNAVAILABLE                                  = 0x800401E3
	MK_E_SYNTAX                                       = 0x800401E4
	MK_E_NOOBJECT                                     = 0x800401E5
	MK_E_INVALIDEXTENSION                             = 0x800401E6
	MK_E_INTERMEDIATEINTERFACENOTSUPPORTED            = 0x800401E7
	MK_E_NOTBINDABLE                                  = 0x800401E8
	MK_E_NOTBOUND                                     = 0x800401E9
	MK_E_CANTOPENFILE                                 = 0x800401EA
	MK_E_MUSTBOTHERUSER                               = 0x800401EB
	MK_E_NOINVERSE                                    = 0x800401EC
	MK_E_NOSTORAGE                                    = 0x800401ED
	MK_E_NOPREFIX                                     = 0x800401EE
	MK_E_ENUMERATION_FAILED                           = 0x800401EF
	CO_E_NOTINITIALIZED                               = 0x800401F0
	CO_E_ALREADYINITIALIZED                           = 0x800401F1
	CO_E_CANTDETERMINECLASS                           = 0x800401F2
	CO_E_CLASSSTRING                                  = 0x800401F3
	CO_E_IIDSTRING                                    = 0x800401F4
	CO_E_APPNOTFOUND                                  = 0x800401F5
	CO_E_APPSINGLEUSE                                 = 0x800401F6
	CO_E_ERRORINAPP                                   = 0x800401F7
	CO_E_DLLNOTFOUND                                  = 0x800401F8
	CO_E_ERRORINDLL                                   = 0x800401F9
	CO_E_WRONGOSFORAPP                                = 0x800401FA
	CO_E_OBJNOTREG                                    = 0x800401FB
	CO_E_OBJISREG                                     = 0x800401FC
	CO_E_OBJNOTCONNECTED                              = 0x800401FD
	CO_E_APPDIDNTREG                                  = 0x800401FE
	CO_E_RELEASED                                     = 0x800401FF
	EVENT_S_SOME_SUBSCRIBERS_FAILED                   = 0x00040200
	EVENT_E_ALL_SUBSCRIBERS_FAILED                    = 0x80040201
	EVENT_S_NOSUBSCRIBERS                             = 0x00040202
	EVENT_E_QUERYSYNTAX                               = 0x80040203
	EVENT_E_QUERYFIELD                                = 0x80040204
	EVENT_E_INTERNALEXCEPTION                         = 0x80040205
	EVENT_E_INTERNALERROR                             = 0x80040206
	EVENT_E_INVALID_PER_USER_SID                      = 0x80040207
	EVENT_E_USER_EXCEPTION                            = 0x80040208
	EVENT_E_TOO_MANY_METHODS                          = 0x80040209
	EVENT_E_MISSING_EVENTCLASS                        = 0x8004020A
	EVENT_E_NOT_ALL_REMOVED                           = 0x8004020B
	EVENT_E_COMPLUS_NOT_INSTALLED                     = 0x8004020C
	EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT = 0x8004020D
	EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT   = 0x8004020E
	EVENT_E_INVALID_EVENT_CLASS_PARTITION             = 0x8004020F
	EVENT_E_PER_USER_SID_NOT_LOGGED_ON                = 0x80040210
	XACT_E_ALREADYOTHERSINGLEPHASE                    = 0x8004D000
	XACT_E_CANTRETAIN                                 = 0x8004D001
	XACT_E_COMMITFAILED                               = 0x8004D002
	XACT_E_COMMITPREVENTED                            = 0x8004D003
	XACT_E_HEURISTICABORT                             = 0x8004D004
	XACT_E_HEURISTICCOMMIT                            = 0x8004D005
	XACT_E_HEURISTICDAMAGE                            = 0x8004D006
	XACT_E_HEURISTICDANGER                            = 0x8004D007
	XACT_E_ISOLATIONLEVEL                             = 0x8004D008
	XACT_E_NOASYNC                                    = 0x8004D009
	XACT_E_NOENLIST                                   = 0x8004D00A
	XACT_E_NOISORETAIN                                = 0x8004D00B
	XACT_E_NORESOURCE                                 = 0x8004D00C
	XACT_E_NOTCURRENT                                 = 0x8004D00D
	XACT_E_NOTRANSACTION                              = 0x8004D00E
	XACT_E_NOTSUPPORTED                               = 0x8004D00F
	XACT_E_UNKNOWNRMGRID                              = 0x8004D010
	XACT_E_WRONGSTATE                                 = 0x8004D011
	XACT_E_WRONGUOW                                   = 0x8004D012
	XACT_E_XTIONEXISTS                                = 0x8004D013
	XACT_E_NOIMPORTOBJECT                             = 0x8004D014
	XACT_E_INVALIDCOOKIE                              = 0x8004D015
	XACT_E_INDOUBT                                    = 0x8004D016
	XACT_E_NOTIMEOUT                                  = 0x8004D017
	XACT_E_ALREADYINPROGRESS                          = 0x8004D018
	XACT_E_ABORTED                                    = 0x8004D019
	XACT_E_LOGFULL                                    = 0x8004D01A
	XACT_E_TMNOTAVAILABLE                             = 0x8004D01B
	XACT_E_CONNECTION_DOWN                            = 0x8004D01C
	XACT_E_CONNECTION_DENIED                          = 0x8004D01D
	XACT_E_REENLISTTIMEOUT                            = 0x8004D01E
	XACT_E_TIP_CONNECT_FAILED                         = 0x8004D01F
	XACT_E_TIP_PROTOCOL_ERROR                         = 0x8004D020
	XACT_E_TIP_PULL_FAILED                            = 0x8004D021
	XACT_E_DEST_TMNOTAVAILABLE                        = 0x8004D022
	XACT_E_TIP_DISABLED                               = 0x8004D023
	XACT_E_NETWORK_TX_DISABLED                        = 0x8004D024
	XACT_E_PARTNER_NETWORK_TX_DISABLED                = 0x8004D025
	XACT_E_XA_TX_DISABLED                             = 0x8004D026
	XACT_E_UNABLE_TO_READ_DTC_CONFIG                  = 0x8004D027
	XACT_E_UNABLE_TO_LOAD_DTC_PROXY                   = 0x8004D028
	XACT_E_ABORTING                                   = 0x8004D029
	XACT_E_PUSH_COMM_FAILURE                          = 0x8004D02A
	XACT_E_PULL_COMM_FAILURE                          = 0x8004D02B
	XACT_E_LU_TX_DISABLED                             = 0x8004D02C
	XACT_E_CLERKNOTFOUND                              = 0x8004D080
	XACT_E_CLERKEXISTS                                = 0x8004D081
	XACT_E_RECOVERYINPROGRESS                         = 0x8004D082
	XACT_E_TRANSACTIONCLOSED                          = 0x8004D083
	XACT_E_INVALIDLSN                                 = 0x8004D084
	XACT_E_REPLAYREQUEST                              = 0x8004D085
	XACT_S_ASYNC                                      = 0x0004D000
	XACT_S_DEFECT                                     = 0x0004D001
	XACT_S_READONLY                                   = 0x0004D002
	XACT_S_SOMENORETAIN                               = 0x0004D003
	XACT_S_OKINFORM                                   = 0x0004D004
	XACT_S_MADECHANGESCONTENT                         = 0x0004D005
	XACT_S_MADECHANGESINFORM                          = 0x0004D006
	XACT_S_ALLNORETAIN                                = 0x0004D007
	XACT_S_ABORTING                                   = 0x0004D008
	XACT_S_SINGLEPHASE                                = 0x0004D009
	XACT_S_LOCALLY_OK                                 = 0x0004D00A
	XACT_S_LASTRESOURCEMANAGER                        = 0x0004D010
	CONTEXT_E_ABORTED                                 = 0x8004E002
	CONTEXT_E_ABORTING                                = 0x8004E003
	CONTEXT_E_NOCONTEXT                               = 0x8004E004
	CONTEXT_E_WOULD_DEADLOCK                          = 0x8004E005
	CONTEXT_E_SYNCH_TIMEOUT                           = 0x8004E006
	CONTEXT_E_OLDREF                                  = 0x8004E007
	CONTEXT_E_ROLENOTFOUND                            = 0x8004E00C
	CONTEXT_E_TMNOTAVAILABLE                          = 0x8004E00F
	CO_E_ACTIVATIONFAILED                             = 0x8004E021
	CO_E_ACTIVATIONFAILED_EVENTLOGGED                 = 0x8004E022
	CO_E_ACTIVATIONFAILED_CATALOGERROR                = 0x8004E023
	CO_E_ACTIVATIONFAILED_TIMEOUT                     = 0x8004E024
	CO_E_INITIALIZATIONFAILED                         = 0x8004E025
	CONTEXT_E_NOJIT                                   = 0x8004E026
	CONTEXT_E_NOTRANSACTION                           = 0x8004E027
	CO_E_THREADINGMODEL_CHANGED                       = 0x8004E028
	CO_E_NOIISINTRINSICS                              = 0x8004E029
	CO_E_NOCOOKIES                                    = 0x8004E02A
	CO_E_DBERROR                                      = 0x8004E02B
	CO_E_NOTPOOLED                                    = 0x8004E02C
	CO_E_NOTCONSTRUCTED                               = 0x8004E02D
	CO_E_NOSYNCHRONIZATION                            = 0x8004E02E
	CO_E_ISOLEVELMISMATCH                             = 0x8004E02F
	CO_E_CALL_OUT_OF_TX_SCOPE_NOT_ALLOWED             = 0x8004E030
	CO_E_EXIT_TRANSACTION_SCOPE_NOT_CALLED            = 0x8004E031
	OLE_S_USEREG                                      = 0x00040000
	OLE_S_STATIC                                      = 0x00040001
	OLE_S_MAC_CLIPFORMAT                              = 0x00040002
	DRAGDROP_S_DROP                                   = 0x00040100
	DRAGDROP_S_CANCEL                                 = 0x00040101
	DRAGDROP_S_USEDEFAULTCURSORS                      = 0x00040102
	DATA_S_SAMEFORMATETC                              = 0x00040130
	VIEW_S_ALREADY_FROZEN                             = 0x00040140
	CACHE_S_FORMATETC_NOTSUPPORTED                    = 0x00040170
	CACHE_S_SAMECACHE                                 = 0x00040171
	CACHE_S_SAMECACHES_NOTUPDATED                     = 0x00040172
	OLEOBJ_S_INVALIDVERB                              = 0x00040180
	OLEOBJ_S_CANNOT_DOVERB_NOW                        = 0x00040181
	OLEOBJ_S_INVALIDHWND                              = 0x00040182
	INPLACE_S_TRUNCATED                               = 0x000401A0
	CONVERT10_S_NO_PRESENTATION                       = 0x000401C0
	MK_S_REDUCED_TO_SELF                              = 0x000401E2
	MK_S_ME                                           = 0x000401E4
	MK_S_HIM                                          = 0x000401E5
	MK_S_US                                           = 0x000401E6
	MK_S_MONIKERALREADYREGISTERED                     = 0x000401E7
	SCHED_S_TASK_READY                                = 0x00041300
	SCHED_S_TASK_RUNNING                              = 0x00041301
	SCHED_S_TASK_DISABLED                             = 0x00041302
	SCHED_S_TASK_HAS_NOT_RUN                          = 0x00041303
	SCHED_S_TASK_NO_MORE_RUNS                         = 0x00041304
	SCHED_S_TASK_NOT_SCHEDULED                        = 0x00041305
	SCHED_S_TASK_TERMINATED                           = 0x00041306
	SCHED_S_TASK_NO_VALID_TRIGGERS                    = 0x00041307
	SCHED_S_EVENT_TRIGGER                             = 0x00041308
	SCHED_E_TRIGGER_NOT_FOUND                         = 0x80041309
	SCHED_E_TASK_NOT_READY                            = 0x8004130A
	SCHED_E_TASK_NOT_RUNNING                          = 0x8004130B
	SCHED_E_SERVICE_NOT_INSTALLED                     = 0x8004130C
	SCHED_E_CANNOT_OPEN_TASK                          = 0x8004130D
	SCHED_E_INVALID_TASK                              = 0x8004130E
	SCHED_E_ACCOUNT_INFORMATION_SET_NOT               = 0x8004130F
	SCHED_E_ACCOUNT_NAME_NOT_FOUND                    = 0x80041310
	SCHED_E_ACCOUNT_DBASE_CORRUPT                     = 0x80041311
	SCHED_E_NO_SECURITY_SERVICES                      = 0x80041312
	SCHED_E_UNKNOWN_OBJECT_VERSION                    = 0x80041313
	SCHED_E_UNSUPPORTED_ACCOUNT_OPTION                = 0x80041314
	SCHED_E_SERVICE_NOT_RUNNING                       = 0x80041315
	SCHED_E_UNEXPECTEDNODE                            = 0x80041316
	SCHED_E_NAMESPACE                                 = 0x80041317
	SCHED_E_INVALIDVALUE                              = 0x80041318
	SCHED_E_MISSINGNODE                               = 0x80041319
	SCHED_E_MALFORMEDXML                              = 0x8004131A
	SCHED_S_SOME_TRIGGERS_FAILED                      = 0x0004131B
	SCHED_S_BATCH_LOGON_PROBLEM                       = 0x0004131C
	SCHED_E_TOO_MANY_NODES                            = 0x8004131D
	SCHED_E_PAST_END_BOUNDARY                         = 0x8004131E
	SCHED_E_ALREADY_RUNNING                           = 0x8004131F
	SCHED_E_USER_NOT_LOGGED_ON                        = 0x80041320
	SCHED_E_INVALID_TASK_HASH                         = 0x80041321
	SCHED_E_SERVICE_NOT_AVAILABLE                     = 0x80041322
	SCHED_E_SERVICE_TOO_BUSY                          = 0x80041323
	SCHED_E_TASK_ATTEMPTED                            = 0x80041324
	SCHED_S_TASK_QUEUED                               = 0x00041325
	SCHED_E_TASK_DISABLED                             = 0x80041326
	SCHED_E_TASK_NOT_V1_COMPAT                        = 0x80041327
	SCHED_E_START_ON_DEMAND                           = 0x80041328
)
View Source
const (
	CO_E_CLASS_CREATE_FAILED     = 0x80080001
	CO_E_SCM_ERROR               = 0x80080002
	CO_E_SCM_RPC_FAILURE         = 0x80080003
	CO_E_BAD_PATH                = 0x80080004
	CO_E_SERVER_EXEC_FAILURE     = 0x80080005
	CO_E_OBJSRV_RPC_FAILURE      = 0x80080006
	MK_E_NO_NORMALIZED           = 0x80080007
	CO_E_SERVER_STOPPING         = 0x80080008
	MEM_E_INVALID_ROOT           = 0x80080009
	MEM_E_INVALID_LINK           = 0x80080010
	MEM_E_INVALID_SIZE           = 0x80080011
	CO_S_NOTALLINTERFACES        = 0x00080012
	CO_S_MACHINENAMENOTFOUND     = 0x00080013
	CO_E_MISSING_DISPLAYNAME     = 0x80080015
	CO_E_RUNAS_VALUE_MUST_BE_AAA = 0x80080016
	CO_E_ELEVATION_DISABLED      = 0x80080017
)
View Source
const (
	DISP_E_UNKNOWNINTERFACE        = 0x80020001
	DISP_E_MEMBERNOTFOUND          = 0x80020003
	DISP_E_PARAMNOTFOUND           = 0x80020004
	DISP_E_TYPEMISMATCH            = 0x80020005
	DISP_E_UNKNOWNNAME             = 0x80020006
	DISP_E_NONAMEDARGS             = 0x80020007
	DISP_E_BADVARTYPE              = 0x80020008
	DISP_E_EXCEPTION               = 0x80020009
	DISP_E_OVERFLOW                = 0x8002000A
	DISP_E_BADINDEX                = 0x8002000B
	DISP_E_UNKNOWNLCID             = 0x8002000C
	DISP_E_ARRAYISLOCKED           = 0x8002000D
	DISP_E_BADPARAMCOUNT           = 0x8002000E
	DISP_E_PARAMNOTOPTIONAL        = 0x8002000F
	DISP_E_BADCALLEE               = 0x80020010
	DISP_E_NOTACOLLECTION          = 0x80020011
	DISP_E_DIVBYZERO               = 0x80020012
	DISP_E_BUFFERTOOSMALL          = 0x80020013
	TYPE_E_BUFFERTOOSMALL          = 0x80028016
	TYPE_E_FIELDNOTFOUND           = 0x80028017
	TYPE_E_INVDATAREAD             = 0x80028018
	TYPE_E_UNSUPFORMAT             = 0x80028019
	TYPE_E_REGISTRYACCESS          = 0x8002801C
	TYPE_E_LIBNOTREGISTERED        = 0x8002801D
	TYPE_E_UNDEFINEDTYPE           = 0x80028027
	TYPE_E_QUALIFIEDNAMEDISALLOWED = 0x80028028
	TYPE_E_INVALIDSTATE            = 0x80028029
	TYPE_E_WRONGTYPEKIND           = 0x8002802A
	TYPE_E_ELEMENTNOTFOUND         = 0x8002802B
	TYPE_E_AMBIGUOUSNAME           = 0x8002802C
	TYPE_E_NAMECONFLICT            = 0x8002802D
	TYPE_E_UNKNOWNLCID             = 0x8002802E
	TYPE_E_DLLFUNCTIONNOTFOUND     = 0x8002802F
	TYPE_E_BADMODULEKIND           = 0x800288BD
	TYPE_E_SIZETOOBIG              = 0x800288C5
	TYPE_E_DUPLICATEID             = 0x800288C6
	TYPE_E_INVALIDID               = 0x800288CF
	TYPE_E_TYPEMISMATCH            = 0x80028CA0
	TYPE_E_OUTOFBOUNDS             = 0x80028CA1
	TYPE_E_IOERROR                 = 0x80028CA2
	TYPE_E_CANTCREATETMPFILE       = 0x80028CA3
	TYPE_E_CANTLOADLIBRARY         = 0x80028C4A
	TYPE_E_INCONSISTENTPROPFUNCS   = 0x80028C83
	TYPE_E_CIRCULARTYPE            = 0x80028C84
)
View Source
const (
	RPC_E_CALL_REJECTED               = 0x80010001
	RPC_E_CALL_CANCELED               = 0x80010002
	RPC_E_CANTPOST_INSENDCALL         = 0x80010003
	RPC_E_CANTCALLOUT_INASYNCCALL     = 0x80010004
	RPC_E_CANTCALLOUT_INEXTERNALCALL  = 0x80010005
	RPC_E_CONNECTION_TERMINATED       = 0x80010006
	RPC_E_SERVER_DIED                 = 0x80010007
	RPC_E_CLIENT_DIED                 = 0x80010008
	RPC_E_INVALID_DATAPACKET          = 0x80010009
	RPC_E_CANTTRANSMIT_CALL           = 0x8001000A
	RPC_E_CLIENT_CANTMARSHAL_DATA     = 0x8001000B
	RPC_E_CLIENT_CANTUNMARSHAL_DATA   = 0x8001000C
	RPC_E_SERVER_CANTMARSHAL_DATA     = 0x8001000D
	RPC_E_SERVER_CANTUNMARSHAL_DATA   = 0x8001000E
	RPC_E_INVALID_DATA                = 0x8001000F
	RPC_E_INVALID_PARAMETER           = 0x80010010
	RPC_E_CANTCALLOUT_AGAIN           = 0x80010011
	RPC_E_SERVER_DIED_DNE             = 0x80010012
	RPC_E_SYS_CALL_FAILED             = 0x80010100
	RPC_E_OUT_OF_RESOURCES            = 0x80010101
	RPC_E_ATTEMPTED_MULTITHREAD       = 0x80010102
	RPC_E_NOT_REGISTERED              = 0x80010103
	RPC_E_FAULT                       = 0x80010104
	RPC_E_SERVERFAULT                 = 0x80010105
	RPC_E_CHANGED_MODE                = 0x80010106
	RPC_E_INVALIDMETHOD               = 0x80010107
	RPC_E_DISCONNECTED                = 0x80010108
	RPC_E_RETRY                       = 0x80010109
	RPC_E_SERVERCALL_RETRYLATER       = 0x8001010A
	RPC_E_SERVERCALL_REJECTED         = 0x8001010B
	RPC_E_INVALID_CALLDATA            = 0x8001010C
	RPC_E_CANTCALLOUT_ININPUTSYNCCALL = 0x8001010D
	RPC_E_WRONG_THREAD                = 0x8001010E
	RPC_E_THREAD_NOT_INIT             = 0x8001010F
	RPC_E_VERSION_MISMATCH            = 0x80010110
	RPC_E_INVALID_HEADER              = 0x80010111
	RPC_E_INVALID_EXTENSION           = 0x80010112
	RPC_E_INVALID_IPID                = 0x80010113
	RPC_E_INVALID_OBJECT              = 0x80010114
	RPC_S_CALLPENDING                 = 0x80010115
	RPC_S_WAITONTIMER                 = 0x80010116
	RPC_E_CALL_COMPLETE               = 0x80010117
	RPC_E_UNSECURE_CALL               = 0x80010118
	RPC_E_TOO_LATE                    = 0x80010119
	RPC_E_NO_GOOD_SECURITY_PACKAGES   = 0x8001011A
	RPC_E_ACCESS_DENIED               = 0x8001011B
	RPC_E_REMOTE_DISABLED             = 0x8001011C
	RPC_E_INVALID_OBJREF              = 0x8001011D
	RPC_E_NO_CONTEXT                  = 0x8001011E
	RPC_E_TIMEOUT                     = 0x8001011F
	RPC_E_NO_SYNC                     = 0x80010120
	RPC_E_FULLSIC_REQUIRED            = 0x80010121
	RPC_E_INVALID_STD_NAME            = 0x80010122
	CO_E_FAILEDTOIMPERSONATE          = 0x80010123
	CO_E_FAILEDTOGETSECCTX            = 0x80010124
	CO_E_FAILEDTOOPENTHREADTOKEN      = 0x80010125
	CO_E_FAILEDTOGETTOKENINFO         = 0x80010126
	CO_E_TRUSTEEDOESNTMATCHCLIENT     = 0x80010127
	CO_E_FAILEDTOQUERYCLIENTBLANKET   = 0x80010128
	CO_E_FAILEDTOSETDACL              = 0x80010129
	CO_E_ACCESSCHECKFAILED            = 0x8001012A
	CO_E_NETACCESSAPIFAILED           = 0x8001012B
	CO_E_WRONGTRUSTEENAMESYNTAX       = 0x8001012C
	CO_E_INVALIDSID                   = 0x8001012D
	CO_E_CONVERSIONFAILED             = 0x8001012E
	CO_E_NOMATCHINGSIDFOUND           = 0x8001012F
	CO_E_LOOKUPACCSIDFAILED           = 0x80010130
	CO_E_NOMATCHINGNAMEFOUND          = 0x80010131
	CO_E_LOOKUPACCNAMEFAILED          = 0x80010132
	CO_E_SETSERLHNDLFAILED            = 0x80010133
	CO_E_FAILEDTOGETWINDIR            = 0x80010134
	CO_E_PATHTOOLONG                  = 0x80010135
	CO_E_FAILEDTOGENUUID              = 0x80010136
	CO_E_FAILEDTOCREATEFILE           = 0x80010137
	CO_E_FAILEDTOCLOSEHANDLE          = 0x80010138
	CO_E_EXCEEDSYSACLLIMIT            = 0x80010139
	CO_E_ACESINWRONGORDER             = 0x8001013A
	CO_E_INCOMPATIBLESTREAMVERSION    = 0x8001013B
	CO_E_FAILEDTOOPENPROCESSTOKEN     = 0x8001013C
	CO_E_DECODEFAILED                 = 0x8001013D
	CO_E_ACNOTINITIALIZED             = 0x8001013E
	CO_E_CANCEL_DISABLED              = 0x8001013F
	RPC_E_UNEXPECTED                  = 0x8001FFFF
)
View Source
const (
	CCHDEVICENAME = 32
	CCHFORMNAME   = 32
)
View Source
const (
	DISPLAY_DEVICE_ACTIVE           = 0x00000001
	DISPLAY_DEVICE_PRIMARY_DEVICE   = 0x00000004
	DISPLAY_DEVICE_MIRRORING_DRIVER = 0x00000008
	DISPLAY_DEVICE_VGA_COMPATIBLE   = 0x00000010
	DISPLAY_DEVICE_REMOVABLE        = 0x00000020
	DISPLAY_DEVICE_MODESPRUNED      = 0x08000000
)
View Source
const (
	INTERNET_INVALID_PORT_NUMBER = 0
	INTERNET_DEFAULT_FTP_PORT    = 21
	INTERNET_DEFAULT_GOPHER_PORT = 70
	INTERNET_DEFAULT_HTTP_PORT   = 80
	INTERNET_DEFAULT_HTTPS_PORT  = 443
	INTERNET_DEFAULT_SOCKS_PORT  = 1080
)
View Source
const (
	INTERNET_FLAG_RELOAD                   = 0x80000000
	INTERNET_FLAG_RAW_DATA                 = 0x40000000
	INTERNET_FLAG_EXISTING_CONNECT         = 0x20000000
	INTERNET_FLAG_ASYNC                    = 0x10000000
	INTERNET_FLAG_PASSIVE                  = 0x08000000
	INTERNET_FLAG_NO_CACHE_WRITE           = 0x04000000
	INTERNET_FLAG_DONT_CACHE               = INTERNET_FLAG_NO_CACHE_WRITE
	INTERNET_FLAG_MAKE_PERSISTENT          = 0x02000000
	INTERNET_FLAG_FROM_CACHE               = 0x01000000
	INTERNET_FLAG_OFFLINE                  = INTERNET_FLAG_FROM_CACHE
	INTERNET_FLAG_SECURE                   = 0x00800000
	INTERNET_FLAG_KEEP_CONNECTION          = 0x00400000
	INTERNET_FLAG_NO_AUTO_REDIRECT         = 0x00200000
	INTERNET_FLAG_READ_PREFETCH            = 0x00100000
	INTERNET_FLAG_NO_COOKIES               = 0x00080000
	INTERNET_FLAG_NO_AUTH                  = 0x00040000
	INTERNET_FLAG_RESTRICTED_ZONE          = 0x00020000
	INTERNET_FLAG_CACHE_IF_NET_FAIL        = 0x00010000
	INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP  = 0x00008000
	INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS = 0x00004000
	INTERNET_FLAG_IGNORE_CERT_DATE_INVALID = 0x00002000
	INTERNET_FLAG_IGNORE_CERT_CN_INVALID   = 0x00001000
	INTERNET_FLAG_RESYNCHRONIZE            = 0x00000800
	INTERNET_FLAG_HYPERLINK                = 0x00000400
	INTERNET_FLAG_NO_UI                    = 0x00000200
	INTERNET_FLAG_PRAGMA_NOCACHE           = 0x00000100
	INTERNET_FLAG_CACHE_ASYNC              = 0x00000080
	INTERNET_FLAG_FORMS_SUBMIT             = 0x00000040
	INTERNET_FLAG_FWD_BACK                 = 0x00000020
	INTERNET_FLAG_NEED_FILE                = 0x00000010
	INTERNET_FLAG_MUST_CACHE_REQUEST       = INTERNET_FLAG_NEED_FILE
)
View Source
const (
	INTERNET_OPEN_TYPE_PRECONFIG                   = 0
	INTERNET_OPEN_TYPE_DIRECT                      = 1
	INTERNET_OPEN_TYPE_PROXY                       = 2
	INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4
)
View Source
const (
	HTTP_QUERY_MIME_VERSION              = 0
	HTTP_QUERY_CONTENT_TYPE              = 1
	HTTP_QUERY_CONTENT_TRANSFER_ENCODING = 2
	HTTP_QUERY_CONTENT_ID                = 3
	HTTP_QUERY_CONTENT_DESCRIPTION       = 4
	HTTP_QUERY_CONTENT_LENGTH            = 5
	HTTP_QUERY_CONTENT_LANGUAGE          = 6
	HTTP_QUERY_ALLOW                     = 7
	HTTP_QUERY_PUBLIC                    = 8
	HTTP_QUERY_DATE                      = 9
	HTTP_QUERY_EXPIRES                   = 10
	HTTP_QUERY_LAST_MODIFIED             = 11
	HTTP_QUERY_MESSAGE_ID                = 12
	HTTP_QUERY_URI                       = 13
	HTTP_QUERY_DERIVED_FROM              = 14
	HTTP_QUERY_COST                      = 15
	HTTP_QUERY_LINK                      = 16
	HTTP_QUERY_PRAGMA                    = 17
	HTTP_QUERY_VERSION                   = 18
	HTTP_QUERY_STATUS_CODE               = 19
	HTTP_QUERY_STATUS_TEXT               = 20
	HTTP_QUERY_RAW_HEADERS               = 21
	HTTP_QUERY_RAW_HEADERS_CRLF          = 22
	HTTP_QUERY_CONNECTION                = 23
	HTTP_QUERY_ACCEPT                    = 24
	HTTP_QUERY_ACCEPT_CHARSET            = 25
	HTTP_QUERY_ACCEPT_ENCODING           = 26
	HTTP_QUERY_ACCEPT_LANGUAGE           = 27
	HTTP_QUERY_AUTHORIZATION             = 28
	HTTP_QUERY_CONTENT_ENCODING          = 29
	HTTP_QUERY_FORWARDED                 = 30
	HTTP_QUERY_FROM                      = 31
	HTTP_QUERY_IF_MODIFIED_SINCE         = 32
	HTTP_QUERY_LOCATION                  = 33
	HTTP_QUERY_ORIG_URI                  = 34
	HTTP_QUERY_REFERER                   = 35
	HTTP_QUERY_RETRY_AFTER               = 36
	HTTP_QUERY_SERVER                    = 37
	HTTP_QUERY_TITLE                     = 38
	HTTP_QUERY_USER_AGENT                = 39
	HTTP_QUERY_WWW_AUTHENTICATE          = 40
	HTTP_QUERY_PROXY_AUTHENTICATE        = 41
	HTTP_QUERY_ACCEPT_RANGES             = 42
	HTTP_QUERY_SET_COOKIE                = 43
	HTTP_QUERY_COOKIE                    = 44
	HTTP_QUERY_REQUEST_METHOD            = 45
	HTTP_QUERY_REFRESH                   = 46
	HTTP_QUERY_CONTENT_DISPOSITION       = 47
	HTTP_QUERY_AGE                       = 48
	HTTP_QUERY_CACHE_CONTROL             = 49
	HTTP_QUERY_CONTENT_BASE              = 50
	HTTP_QUERY_CONTENT_LOCATION          = 51
	HTTP_QUERY_CONTENT_MD5               = 52
	HTTP_QUERY_CONTENT_RANGE             = 53
	HTTP_QUERY_ETAG                      = 54
	HTTP_QUERY_HOST                      = 55
	HTTP_QUERY_IF_MATCH                  = 56
	HTTP_QUERY_IF_NONE_MATCH             = 57
	HTTP_QUERY_IF_RANGE                  = 58
	HTTP_QUERY_IF_UNMODIFIED_SINCE       = 59
	HTTP_QUERY_MAX_FORWARDS              = 60
	HTTP_QUERY_PROXY_AUTHORIZATION       = 61
	HTTP_QUERY_RANGE                     = 62
	HTTP_QUERY_TRANSFER_ENCODING         = 63
	HTTP_QUERY_UPGRADE                   = 64
	HTTP_QUERY_VARY                      = 65
	HTTP_QUERY_VIA                       = 66
	HTTP_QUERY_WARNING                   = 67
	HTTP_QUERY_EXPECT                    = 68
	HTTP_QUERY_PROXY_CONNECTION          = 69
	HTTP_QUERY_UNLESS_MODIFIED_SINCE     = 70
	HTTP_QUERY_ECHO_REQUEST              = 71
	HTTP_QUERY_ECHO_REPLY                = 72
	HTTP_QUERY_ECHO_HEADERS              = 73
	HTTP_QUERY_ECHO_HEADERS_CRLF         = 74
	HTTP_QUERY_CUSTOM                    = 65535
)
View Source
const (
	HTTP_QUERY_FLAG_REQUEST_HEADERS = 0x80000000
	HTTP_QUERY_FLAG_SYSTEMTIME      = 0x40000000
	HTTP_QUERY_FLAG_NUMBER          = 0x20000000
	HTTP_QUERY_FLAG_COALESCE        = 0x10000000
)
View Source
const (
	HTTP_STATUS_CONTINUE           = 100
	HTTP_STATUS_SWITCH_PROTOCOLS   = 101
	HTTP_STATUS_OK                 = 200
	HTTP_STATUS_CREATED            = 201
	HTTP_STATUS_ACCEPTED           = 202
	HTTP_STATUS_PARTIAL            = 203
	HTTP_STATUS_NO_CONTENT         = 204
	HTTP_STATUS_RESET_CONTENT      = 205
	HTTP_STATUS_PARTIAL_CONTENT    = 206
	HTTP_STATUS_AMBIGUOUS          = 300
	HTTP_STATUS_MOVED              = 301
	HTTP_STATUS_REDIRECT           = 302
	HTTP_STATUS_REDIRECT_METHOD    = 303
	HTTP_STATUS_NOT_MODIFIED       = 304
	HTTP_STATUS_USE_PROXY          = 305
	HTTP_STATUS_REDIRECT_KEEP_VERB = 307
	HTTP_STATUS_BAD_REQUEST        = 400
	HTTP_STATUS_DENIED             = 401
	HTTP_STATUS_PAYMENT_REQ        = 402
	HTTP_STATUS_FORBIDDEN          = 403
	HTTP_STATUS_NOT_FOUND          = 404
	HTTP_STATUS_BAD_METHOD         = 405
	HTTP_STATUS_NONE_ACCEPTABLE    = 406
	HTTP_STATUS_PROXY_AUTH_REQ     = 407
	HTTP_STATUS_REQUEST_TIMEOUT    = 408
	HTTP_STATUS_CONFLICT           = 409
	HTTP_STATUS_GONE               = 410
	HTTP_STATUS_LENGTH_REQUIRED    = 411
	HTTP_STATUS_PRECOND_FAILED     = 412
	HTTP_STATUS_REQUEST_TOO_LARGE  = 413
	HTTP_STATUS_URI_TOO_LONG       = 414
	HTTP_STATUS_UNSUPPORTED_MEDIA  = 415
	HTTP_STATUS_RETRY_WITH         = 449
	HTTP_STATUS_SERVER_ERROR       = 500
	HTTP_STATUS_NOT_SUPPORTED      = 501
	HTTP_STATUS_BAD_GATEWAY        = 502
	HTTP_STATUS_SERVICE_UNAVAIL    = 503
	HTTP_STATUS_GATEWAY_TIMEOUT    = 504
	HTTP_STATUS_VERSION_NOT_SUP    = 505
)
View Source
const (
	INTERNET_SERVICE_FTP    = 1
	INTERNET_SERVICE_GOPHER = 2
	INTERNET_SERVICE_HTTP   = 3
)
View Source
const (
	FILE_DEVICE_BEEP                = 0x00000001
	FILE_DEVICE_CD_ROM              = 0x00000002
	FILE_DEVICE_CD_ROM_FILE_SYSTEM  = 0x00000003
	FILE_DEVICE_CONTROLLER          = 0x00000004
	FILE_DEVICE_DATALINK            = 0x00000005
	FILE_DEVICE_DFS                 = 0x00000006
	FILE_DEVICE_DISK                = 0x00000007
	FILE_DEVICE_DISK_FILE_SYSTEM    = 0x00000008
	FILE_DEVICE_FILE_SYSTEM         = 0x00000009
	FILE_DEVICE_INPUT_PORT          = 0x0000000A
	FILE_DEVICE_KEYBOARD            = 0x0000000B
	FILE_DEVICE_MAILSLOT            = 0x0000000C
	FILE_DEVICE_MIDI_IN             = 0x0000000D
	FILE_DEVICE_MIDI_OUT            = 0x0000000E
	FILE_DEVICE_MOUSE               = 0x0000000F
	FILE_DEVICE_MULTI_UNC_PROVIDER  = 0x00000010
	FILE_DEVICE_NAMED_PIPE          = 0x00000011
	FILE_DEVICE_NETWORK             = 0x00000012
	FILE_DEVICE_NETWORK_BROWSER     = 0x00000013
	FILE_DEVICE_NETWORK_FILE_SYSTEM = 0x00000014
	FILE_DEVICE_NULL                = 0x00000015
	FILE_DEVICE_PARALLEL_PORT       = 0x00000016
	FILE_DEVICE_PHYSICAL_NETCARD    = 0x00000017
	FILE_DEVICE_PRINTER             = 0x00000018
	FILE_DEVICE_SCANNER             = 0x00000019
	FILE_DEVICE_SERIAL_MOUSE_PORT   = 0x0000001A
	FILE_DEVICE_SERIAL_PORT         = 0x0000001B
	FILE_DEVICE_SCREEN              = 0x0000001C
	FILE_DEVICE_SOUND               = 0x0000001D
	FILE_DEVICE_STREAMS             = 0x0000001E
	FILE_DEVICE_TAPE                = 0x0000001F
	FILE_DEVICE_TAPE_FILE_SYSTEM    = 0x00000020
	FILE_DEVICE_TRANSPORT           = 0x00000021
	FILE_DEVICE_UNKNOWN             = 0x00000022
	FILE_DEVICE_VIDEO               = 0x00000023
	FILE_DEVICE_VIRTUAL_DISK        = 0x00000024
	FILE_DEVICE_WAVE_IN             = 0x00000025
	FILE_DEVICE_WAVE_OUT            = 0x00000026
	FILE_DEVICE_8042_PORT           = 0x00000027
	FILE_DEVICE_NETWORK_REDIRECTOR  = 0x00000028
	FILE_DEVICE_BATTERY             = 0x00000029
	FILE_DEVICE_BUS_EXTENDER        = 0x0000002A
	FILE_DEVICE_MODEM               = 0x0000002B
	FILE_DEVICE_VDM                 = 0x0000002C
	FILE_DEVICE_MASS_STORAGE        = 0x0000002D
	FILE_DEVICE_SMB                 = 0x0000002E
	FILE_DEVICE_KS                  = 0x0000002F
	FILE_DEVICE_CHANGER             = 0x00000030
	FILE_DEVICE_SMARTCARD           = 0x00000031
	FILE_DEVICE_ACPI                = 0x00000032
	FILE_DEVICE_DVD                 = 0x00000033
	FILE_DEVICE_FULLSCREEN_VIDEO    = 0x00000034
	FILE_DEVICE_DFS_FILE_SYSTEM     = 0x00000035
	FILE_DEVICE_DFS_VOLUME          = 0x00000036
	FILE_DEVICE_SERENUM             = 0x00000037
	FILE_DEVICE_TERMSRV             = 0x00000038
	FILE_DEVICE_KSEC                = 0x00000039
	FILE_DEVICE_FIPS                = 0x0000003A
)
View Source
const (
	METHOD_BUFFERED   = 0
	METHOD_IN_DIRECT  = 1
	METHOD_OUT_DIRECT = 2
	METHOD_NEITHER    = 3
)
View Source
const (
	FILE_ANY_ACCESS     = 0x0000
	FILE_SPECIAL_ACCESS = FILE_ANY_ACCESS
	FILE_READ_ACCESS    = 0x0001
	FILE_WRITE_ACCESS   = 0x0002
)
View Source
const (
	RESOURCE_CONNECTED  = 0x00000001
	RESOURCE_GLOBALNET  = 0x00000002
	RESOURCE_REMEMBERED = 0x00000003

	RESOURCE_RECENT  = 0x00000004
	RESOURCE_CONTEXT = 0x00000005

	RESOURCETYPE_ANY   = 0x00000000
	RESOURCETYPE_DISK  = 0x00000001
	RESOURCETYPE_PRINT = 0x00000002

	RESOURCETYPE_RESERVED = 0x00000008
	RESOURCETYPE_UNKNOWN  = 0xFFFFFFFF
)
View Source
const (
	CONNECT_UPDATE_PROFILE = 0x00000001
	CONNECT_UPDATE_RECENT  = 0x00000002
	CONNECT_TEMPORARY      = 0x00000004
	CONNECT_INTERACTIVE    = 0x00000008
	CONNECT_PROMPT         = 0x00000010
	CONNECT_NEED_DRIVE     = 0x00000020

	CONNECT_REFCOUNT      = 0x00000040
	CONNECT_REDIRECT      = 0x00000080
	CONNECT_LOCALDRIVE    = 0x00000100
	CONNECT_CURRENT_MEDIA = 0x00000200
	CONNECT_DEFERRED      = 0x00000400
	CONNECT_RESERVED      = 0xFF000000

	CONNECT_COMMANDLINE  = 0x00000800
	CONNECT_CMD_SAVECRED = 0x00001000

	CONNECT_CRED_RESET = 0x00002000
)
View Source
const (
	LOCALE_NOUSEROVERRIDE        = 0x80000000
	LOCALE_USE_CP_ACP            = 0x40000000
	LOCALE_RETURN_NUMBER         = 0x20000000
	LOCALE_RETURN_GENITIVE_NAMES = 0x10000000
	LOCALE_ALLOW_NEUTRAL_NAMES   = 0x08000000
)
View Source
const (
	VER_SUITE_SMALLBUSINESS            = 0x00000001
	VER_SUITE_ENTERPRISE               = 0x00000002
	VER_SUITE_BACKOFFICE               = 0x00000004
	VER_SUITE_COMMUNICATIONS           = 0x00000008
	VER_SUITE_TERMINAL                 = 0x00000010
	VER_SUITE_SMALLBUSINESS_RESTRICTED = 0x00000020
	VER_SUITE_EMBEDDEDNT               = 0x00000040
	VER_SUITE_DATACENTER               = 0x00000080
	VER_SUITE_SINGLEUSERTS             = 0x00000100
	VER_SUITE_PERSONAL                 = 0x00000200
	VER_SUITE_BLADE                    = 0x00000400
	VER_SUITE_EMBEDDED_RESTRICTED      = 0x00000800
	VER_SUITE_SECURITY_APPLIANCE       = 0x00001000
	VER_SUITE_STORAGE_SERVER           = 0x00002000
	VER_SUITE_COMPUTE_SERVER           = 0x00004000
	VER_SUITE_WH_SERVER                = 0x00008000
)
View Source
const (
	LANG_NEUTRAL   = 0x00
	LANG_INVARIANT = 0x7F

	LANG_AFRIKAANS     = 0x36
	LANG_ALBANIAN      = 0x1C
	LANG_ALSATIAN      = 0x84
	LANG_AMHARIC       = 0x5E
	LANG_ARABIC        = 0x01
	LANG_ARMENIAN      = 0x2B
	LANG_ASSAMESE      = 0x4D
	LANG_AZERI         = 0x2C
	LANG_BASHKIR       = 0x6D
	LANG_BASQUE        = 0x2D
	LANG_BELARUSIAN    = 0x23
	LANG_BENGALI       = 0x45
	LANG_BRETON        = 0x7E
	LANG_BOSNIAN       = 0x1A
	LANG_BULGARIAN     = 0x02
	LANG_CATALAN       = 0x03
	LANG_CHINESE       = 0x04
	LANG_CORSICAN      = 0x83
	LANG_CROATIAN      = 0x1A
	LANG_CZECH         = 0x05
	LANG_DANISH        = 0x06
	LANG_DARI          = 0x8C
	LANG_DIVEHI        = 0x65
	LANG_DUTCH         = 0x13
	LANG_ENGLISH       = 0x09
	LANG_ESTONIAN      = 0x25
	LANG_FAEROESE      = 0x38
	LANG_FARSI         = 0x29
	LANG_FILIPINO      = 0x64
	LANG_FINNISH       = 0x0B
	LANG_FRENCH        = 0x0C
	LANG_FRISIAN       = 0x62
	LANG_GALICIAN      = 0x56
	LANG_GEORGIAN      = 0x37
	LANG_GERMAN        = 0x07
	LANG_GREEK         = 0x08
	LANG_GREENLANDIC   = 0x6F
	LANG_GUJARATI      = 0x47
	LANG_HAUSA         = 0x68
	LANG_HEBREW        = 0x0D
	LANG_HINDI         = 0x39
	LANG_HUNGARIAN     = 0x0E
	LANG_ICELANDIC     = 0x0F
	LANG_IGBO          = 0x70
	LANG_INDONESIAN    = 0x21
	LANG_INUKTITUT     = 0x5D
	LANG_IRISH         = 0x3C
	LANG_ITALIAN       = 0x10
	LANG_JAPANESE      = 0x11
	LANG_KANNADA       = 0x4B
	LANG_KASHMIRI      = 0x60
	LANG_KAZAK         = 0x3F
	LANG_KHMER         = 0x53
	LANG_KICHE         = 0x86
	LANG_KINYARWANDA   = 0x87
	LANG_KONKANI       = 0x57
	LANG_KOREAN        = 0x12
	LANG_KYRGYZ        = 0x40
	LANG_LAO           = 0x54
	LANG_LATVIAN       = 0x26
	LANG_LITHUANIAN    = 0x27
	LANG_LOWER_SORBIAN = 0x2E
	LANG_LUXEMBOURGISH = 0x6E
	LANG_MACEDONIAN    = 0x2F
	LANG_MALAY         = 0x3E
	LANG_MALAYALAM     = 0x4C
	LANG_MALTESE       = 0x3A
	LANG_MANIPURI      = 0x58
	LANG_MAORI         = 0x81
	LANG_MAPUDUNGUN    = 0x7A
	LANG_MARATHI       = 0x4E
	LANG_MOHAWK        = 0x7C
	LANG_MONGOLIAN     = 0x50
	LANG_NEPALI        = 0x61
	LANG_NORWEGIAN     = 0x14
	LANG_OCCITAN       = 0x82
	LANG_ORIYA         = 0x48
	LANG_PASHTO        = 0x63
	LANG_PERSIAN       = 0x29
	LANG_POLISH        = 0x15
	LANG_PORTUGUESE    = 0x16
	LANG_PUNJABI       = 0x46
	LANG_QUECHUA       = 0x6B
	LANG_ROMANIAN      = 0x18
	LANG_ROMANSH       = 0x17
	LANG_RUSSIAN       = 0x19
	LANG_SAMI          = 0x3B
	LANG_SANSKRIT      = 0x4F
	LANG_SERBIAN       = 0x1F
	LANG_SINDHI        = 0x59
	LANG_SINHALESE     = 0x5B
	LANG_SLOVAK        = 0x1B
	LANG_SLOVENIAN     = 0x24
	LANG_SOTHO         = 0x6C
	LANG_SPANISH       = 0x0A
	LANG_SWAHILI       = 0x41
	LANG_SWEDISH       = 0x1D
	LANG_SYRIAC        = 0x5A
	LANG_TAJIK         = 0x28
	LANG_TAMAZIGHT     = 0x5F
	LANG_TAMIL         = 0x49
	LANG_TATAR         = 0x44
	LANG_TELUGU        = 0x4A
	LANG_THAI          = 0x1E
	LANG_TIBETAN       = 0x51
	LANG_TIGRIGNA      = 0x73
	LANG_TSWANA        = 0x32
	LANG_TURKISH       = 0x1F
	LANG_TURKMEN       = 0x42
	LANG_UIGHUR        = 0x80
	LANG_UKRAINIAN     = 0x22
	LANG_UPPER_SORBIAN = 0x2E
	LANG_URDU          = 0x20
	LANG_UZBEK         = 0x43
	LANG_VIETNAMESE    = 0x2A
	LANG_WELSH         = 0x52
	LANG_WOLOF         = 0x88
	LANG_XHOSA         = 0x34
	LANG_YAKUT         = 0x85
	LANG_YI            = 0x78
	LANG_YORUBA        = 0x6A
	LANG_ZULU          = 0x35
)
View Source
const (
	SUBLANG_NEUTRAL            = 0x00
	SUBLANG_DEFAULT            = 0x01
	SUBLANG_SYS_DEFAULT        = 0x02
	SUBLANG_CUSTOM_DEFAULT     = 0x03
	SUBLANG_CUSTOM_UNSPECIFIED = 0x04
	SUBLANG_UI_CUSTOM_DEFAULT  = 0x05

	SUBLANG_AFRIKAANS_SOUTH_AFRICA              = 0x01
	SUBLANG_ALBANIAN_ALBANIA                    = 0x01
	SUBLANG_ALSATIAN_FRANCE                     = 0x01
	SUBLANG_AMHARIC_ETHIOPIA                    = 0x01
	SUBLANG_ARABIC_SAUDI_ARABIA                 = 0x01
	SUBLANG_ARABIC_IRAQ                         = 0x02
	SUBLANG_ARABIC_EGYPT                        = 0x03
	SUBLANG_ARABIC_LIBYA                        = 0x04
	SUBLANG_ARABIC_ALGERIA                      = 0x05
	SUBLANG_ARABIC_MOROCCO                      = 0x06
	SUBLANG_ARABIC_TUNISIA                      = 0x07
	SUBLANG_ARABIC_OMAN                         = 0x08
	SUBLANG_ARABIC_YEMEN                        = 0x09
	SUBLANG_ARABIC_SYRIA                        = 0x0A
	SUBLANG_ARABIC_JORDAN                       = 0x0B
	SUBLANG_ARABIC_LEBANON                      = 0x0C
	SUBLANG_ARABIC_KUWAIT                       = 0x0D
	SUBLANG_ARABIC_UAE                          = 0x0E
	SUBLANG_ARABIC_BAHRAIN                      = 0x0F
	SUBLANG_ARABIC_QATAR                        = 0x10
	SUBLANG_ARMENIAN_ARMENIA                    = 0x01
	SUBLANG_ASSAMESE_INDIA                      = 0x01
	SUBLANG_AZERI_LATIN                         = 0x01
	SUBLANG_AZERI_CYRILLIC                      = 0x01
	SUBLANG_BASHKIR_RUSSIA                      = 0x01
	SUBLANG_BASQUE_BASQUE                       = 0x01
	SUBLANG_BELARUSIAN_BELARUS                  = 0x01
	SUBLANG_BENGALI_INDIA                       = 0x01
	SUBLANG_BENGALI_BANGLADESH                  = 0x02
	SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN    = 0x05
	SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC = 0x08
	SUBLANG_BRETON_FRANCE                       = 0x01
	SUBLANG_BULGARIAN_BULGARIA                  = 0x01
	SUBLANG_CATALAN_CATALAN                     = 0x01
	SUBLANG_CHINESE_TRADITIONAL                 = 0x01
	SUBLANG_CHINESE_SIMPLIFIED                  = 0x02
	SUBLANG_CHINESE_HONGKONG                    = 0x03
	SUBLANG_CHINESE_SINGAPORE                   = 0x04
	SUBLANG_CHINESE_MACAU                       = 0x05
	SUBLANG_CORSICAN_FRANCE                     = 0x01
	SUBLANG_CZECH_CZECH_REPUBLIC                = 0x01
	SUBLANG_CROATIAN_CROATIA                    = 0x01
	SUBLANG_CROATIAN_BOSNIA_HERVEGOVINA_LATIN   = 0x04
	SUBLANG_DANISH_DENMARK                      = 0x01
	SUBLANG_DARI_AFGHANISTAN                    = 0x01
	SUBLANG_DIVEHI_MALDIVES                     = 0x01
	SUBLANG_DUTCH                               = 0x01
	SUBLANG_DUTCH_BELGIAN                       = 0x02
	SUBLANG_ENGLISH_US                          = 0x01
	SUBLANG_ENGLISH_UK                          = 0x02
	SUBLANG_ENGLISH_AUS                         = 0x03
	SUBLANG_ENGLISH_CAN                         = 0x04
	SUBLANG_ENGLISH_NZ                          = 0x05
	SUBLANG_ENGLISH_EIRE                        = 0x06
	SUBLANG_ENGLISH_SOUTH_AFRICA                = 0x07
	SUBLANG_ENGLISH_JAMAICA                     = 0x08
	SUBLANG_ENGLISH_CARIBBEAN                   = 0x09
	SUBLANG_ENGLISH_BELIZE                      = 0x0A
	SUBLANG_ENGLISH_TRINIDAD                    = 0x0B
	SUBLANG_ENGLISH_ZIMBABWE                    = 0x0C
	SUBLANG_ENGLISH_PHILIPPINES                 = 0x0D
	SUBLANG_ENGLISH_INDIA                       = 0x10
	SUBLANG_ENGLISH_MALAYSIA                    = 0x11
	SUBLANG_ENGLISH_SINGAPORE                   = 0x12
	SUBLANG_ESTONIAN_ESTONIA                    = 0x01
	SUBLANG_FAEROESE_FAERO_ISLANDS              = 0x01
	SUBLANG_FILIPINO_PHILIPPINES                = 0x01
	SUBLANG_FINNISH_FINLAND                     = 0x01
	SUBLANG_FRENCH                              = 0x01
	SUBLANG_FRENCH_BELGIAN                      = 0x02
	SUBLANG_FRENCH_CANADIAN                     = 0x03
	SUBLANG_FRENCH_SWISS                        = 0x04
	SUBLANG_FRENCH_LUXEMBOURG                   = 0x05
	SUBLANG_FRENCH_MONACO                       = 0x06
	SUBLANG_FRISIAN_NETHERLANDS                 = 0x01
	SUBLANG_GALICIAN_GALICIAN                   = 0x01
	SUBLANG_GEORGIAN_GEORGIA                    = 0x01
	SUBLANG_GERMAN                              = 0x01
	SUBLANG_GERMAN_SWISS                        = 0x02
	SUBLANG_GERMAN_AUSTRIAN                     = 0x03
	SUBLANG_GERMAN_LUXEMBOURG                   = 0x04
	SUBLANG_GERMAN_LIECHTENSTEIN                = 0x05
	SUBLANG_GREEK_GREECE                        = 0x01
	SUBLANG_GREENLANDIC_GREENLAND               = 0x02
	SUBLANG_GUJARATI_INDIA                      = 0x01
	SUBLANG_HAUSA_NIGERIA_LATIN                 = 0x01
	SUBLANG_HEBREW_ISRAEL                       = 0x01
	SUBLANG_HINDI_INDIA                         = 0x01
	SUBLANG_HUNGARIAN_HUNGARY                   = 0x01
	SUBLANG_ICELANDIC_ICELAND                   = 0x01
	SUBLANG_IGBO_NIGERIA                        = 0x01
	SUBLANG_INDONESIAN_INDONESIA                = 0x01
	SUBLANG_INUKTITUT_CANADA                    = 0x01
	SUBLANG_INUKTITUT_CANADA_LATIN              = 0x02
	SUBLANG_IRISH_IRELAND                       = 0x02
	SUBLANG_ITALIAN                             = 0x01
	SUBLANG_ITALIAN_SWISS                       = 0x02
	SUBLANG_JAPANESE_JAPAN                      = 0x01
	SUBLANG_KANNADA_INDIA                       = 0x01
	SUBLANG_KASHMIRI_SASIA                      = 0x02
	SUBLANG_KASHMIRI_INDIA                      = 0x02
	SUBLANG_KAZAK_KAZAKHSTAN                    = 0x01
	SUBLANG_KHMER_CAMBODIA                      = 0x01
	SUBLANG_KICHE_GUATEMALA                     = 0x01
	SUBLANG_KINYARWANDA_RWANDA                  = 0x01
	SUBLANG_KONKANI_INDIA                       = 0x01
	SUBLANG_KOREAN                              = 0x01
	SUBLANG_KYRGYZ_KYRGYZSTAN                   = 0x01
	SUBLANG_LAO_LAO                             = 0x01
	SUBLANG_LATVIAN_LATVIA                      = 0x01
	SUBLANG_LITHUANIAN                          = 0x01
	SUBLANG_LOWER_SORBIAN_GERMANY               = 0x02
	SUBLANG_LUXEMBOURGISH_LUXEMBOURG            = 0x01
	SUBLANG_MACEDONIAN_MACEDONIA                = 0x01
	SUBLANG_MALAY_MALAYSIA                      = 0x01
	SUBLANG_MALAY_BRUNEI_DARUSSALAM             = 0x02
	SUBLANG_MALAYALAM_INDIA                     = 0x01
	SUBLANG_MALTESE_MALTA                       = 0x01
	SUBLANG_MAORI_NEW_ZEALAND                   = 0x01
	SUBLANG_MAPUDUNGUN_CHILE                    = 0x01
	SUBLANG_MARATHI_INDIA                       = 0x01
	SUBLANG_MOHAWK_MOHAWK                       = 0x01
	SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA         = 0x01
	SUBLANG_MONGOLIAN_PRC                       = 0x02
	SUBLANG_NEPALI_INDIA                        = 0x02
	SUBLANG_NEPALI_NEPAL                        = 0x01
	SUBLANG_NORWEGIAN_BOKMAL                    = 0x01
	SUBLANG_NORWEGIAN_NYNORSK                   = 0x02
	SUBLANG_OCCITAN_FRANCE                      = 0x01
	SUBLANG_ORIYA_INDIA                         = 0x01
	SUBLANG_PASHTO_AFGHANISTAN                  = 0x01
	SUBLANG_PERSIAN_IRAN                        = 0x01
	SUBLANG_POLISH_POLAND                       = 0x01
	SUBLANG_PORTUGUESE                          = 0x02
	SUBLANG_PORTUGUESE_BRAZILIAN                = 0x01
	SUBLANG_PUNJABI_INDIA                       = 0x01
	SUBLANG_QUECHUA_BOLIVIA                     = 0x01
	SUBLANG_QUECHUA_ECUADOR                     = 0x02
	SUBLANG_QUECHUA_PERU                        = 0x03
	SUBLANG_ROMANIAN_ROMANIA                    = 0x01
	SUBLANG_ROMANSH_SWITZERLAND                 = 0x01
	SUBLANG_RUSSIAN_RUSSIA                      = 0x01
	SUBLANG_SAMI_NORTHERN_NORWAY                = 0x01
	SUBLANG_SAMI_NORTHERN_SWEDEN                = 0x02
	SUBLANG_SAMI_NORTHERN_FINLAND               = 0x03
	SUBLANG_SAMI_LULE_NORWAY                    = 0x04
	SUBLANG_SAMI_LULE_SWEDEN                    = 0x05
	SUBLANG_SAMI_SOUTHERN_NORWAY                = 0x06
	SUBLANG_SAMI_SOUTHERN_SWEDEN                = 0x07
	SUBLANG_SAMI_SKOLT_FINLAND                  = 0x08
	SUBLANG_SAMI_INARI_FINLAND                  = 0x09
	SUBLANG_SANSKRIT_INDIA                      = 0x01
	SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN    = 0x06
	SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC = 0x07
	SUBLANG_SERBIAN_CROATIA                     = 0x01
	SUBLANG_SERBIAN_LATIN                       = 0x02
	SUBLANG_SERBIAN_CYRILLIC                    = 0x03
	SUBLANG_SINDHI_INDIA                        = 0x01
	SUBLANG_SINDHI_PAKISTAN                     = 0x02
	SUBLANG_SINDHI_AFGHANISTAN                  = 0x02
	SUBLANG_SINHALESE_SRI_LANKA                 = 0x01
	SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA         = 0x01
	SUBLANG_SLOVAK_SLOVAKIA                     = 0x01
	SUBLANG_SLOVENIAN_SLOVENIA                  = 0x01
	SUBLANG_SPANISH                             = 0x01
	SUBLANG_SPANISH_MEXICAN                     = 0x02
	SUBLANG_SPANISH_MODERN                      = 0x03
	SUBLANG_SPANISH_GUATEMALA                   = 0x04
	SUBLANG_SPANISH_COSTA_RICA                  = 0x05
	SUBLANG_SPANISH_PANAMA                      = 0x06
	SUBLANG_SPANISH_DOMINICAN_REPUBLIC          = 0x07
	SUBLANG_SPANISH_VENEZUELA                   = 0x08
	SUBLANG_SPANISH_COLOMBIA                    = 0x09
	SUBLANG_SPANISH_PERU                        = 0x0A
	SUBLANG_SPANISH_ARGENTINA                   = 0x0B
	SUBLANG_SPANISH_ECUADOR                     = 0x0C
	SUBLANG_SPANISH_CHILE                       = 0x0D
	SUBLANG_SPANISH_URUGUAY                     = 0x0E
	SUBLANG_SPANISH_PARAGUAY                    = 0x0F
	SUBLANG_SPANISH_BOLIVIA                     = 0x10
	SUBLANG_SPANISH_EL_SALVADOR                 = 0x11
	SUBLANG_SPANISH_HONDURAS                    = 0x12
	SUBLANG_SPANISH_NICARAGUA                   = 0x13
	SUBLANG_SPANISH_PEURTO_RICO                 = 0x14
	SUBLANG_SPANISH_US                          = 0x15
	SUBLANG_SWEDISH                             = 0x01
	SUBLANG_SWEDISH_FINLAND                     = 0x02
	SUBLANG_SYRIAC_SYRIA                        = 0x01
	SUBLANG_TAJIK_TAJIKISTAN                    = 0x01
	SUBLANG_TAMAZIGHT_ALGERIA_LATIN             = 0x02
	SUBLANG_TAMIL_INDIA                         = 0x01
	SUBLANG_TATAR_RUSSIA                        = 0x01
	SUBLANG_TELUGU_INDIA                        = 0x01
	SUBLANG_THAI_THAILAND                       = 0x01
	SUBLANG_TIBETAN_PRC                         = 0x01
	SUBLANG_TIGRIGNA_ERITREA                    = 0x02
	SUBLANG_TSWANA_SOUTH_AFRICA                 = 0x01
	SUBLANG_TURKISH_TURKEY                      = 0x01
	SUBLANG_TURKMEN_TURKMENISTAN                = 0x01
	SUBLANG_UIGHUR_PRC                          = 0x01
	SUBLANG_UKRAINIAN_UKRAINE                   = 0x01
	SUBLANG_UPPER_SORBIAN_GERMANY               = 0x01
	SUBLANG_URDU_PAKISTAN                       = 0x01
	SUBLANG_URDU_INDIA                          = 0x02
	SUBLANG_UZBEK_LATIN                         = 0x01
	SUBLANG_UZBEK_CYRILLIC                      = 0x02
	SUBLANG_VIETNAMESE_VIETNAM                  = 0x01
	SUBLANG_WELSH_UNITED_KINGDOM                = 0x01
	SUBLANG_WOLOF_SENEGAL                       = 0x01
	SUBLANG_XHOSA_SOUTH_AFRICA                  = 0x01
	SUBLANG_YAKUT_RUSSIA                        = 0x01
	SUBLANG_YI_PRC                              = 0x01
	SUBLANG_YORUBA_NIGERIA                      = 0x01
	SUBLANG_ZULU_SOUTH_AFRICA                   = 0x01
)
View Source
const (
	SORT_DEFAULT                = 0x0
	SORT_JAPANESE_XJIS          = 0x0
	SORT_JAPANESE_UNICODE       = 0x1
	SORT_JAPANESE_RADICALSTROKE = 0x4
	SORT_CHINESE_BIG5           = 0x0
	SORT_CHINESE_PRCP           = 0x0
	SORT_CHINESE_UNICODE        = 0x1
	SORT_CHINESE_PRC            = 0x2
	SORT_CHINESE_BOPOMOFO       = 0x3
	SORT_CHINESE_RADICALSTROKE  = 0x4
	SORT_KOREAN_KSC             = 0x0
	SORT_KOREAN_UNICODE         = 0x1
	SORT_GERMAN_PHONE_BOOK      = 0x1
	SORT_HUNGARIAN_DEFAULT      = 0x0
	SORT_HUNGARIAN_TECHNICAL    = 0x1
	SORT_GEORGIAN_TRADITIONAL   = 0x0
	SORT_GEORGIAN_MODERN        = 0x1
)
View Source
const (
	STATUS_WAIT_0                     = 0x00000000
	STATUS_ABANDONED_WAIT_0           = 0x00000080
	STATUS_USER_APC                   = 0x000000C0
	STATUS_TIMEOUT                    = 0x00000102
	STATUS_PENDING                    = 0x00000103
	DBG_EXCEPTION_HANDLED             = 0x00010001
	DBG_CONTINUE                      = 0x00010002
	STATUS_SEGMENT_NOTIFICATION       = 0x40000005
	DBG_TERMINATE_THREAD              = 0x40010003
	DBG_TERMINATE_PROCESS             = 0x40010004
	DBG_CONTROL_C                     = 0x40010005
	DBG_PRINTEXCEPTION_C              = 0x40010006
	DBG_RIPEXCEPTION                  = 0x40010007
	DBG_CONTROL_BREAK                 = 0x40010008
	DBG_COMMAND_EXCEPTION             = 0x40010009
	STATUS_GUARD_PAGE_VIOLATION       = 0x80000001
	STATUS_DATATYPE_MISALIGNMENT      = 0x80000002
	STATUS_BREAKPOINT                 = 0x80000003
	STATUS_SINGLE_STEP                = 0x80000004
	STATUS_LONGJUMP                   = 0x80000026
	STATUS_UNWIND_CONSOLIDATE         = 0x80000029
	DBG_EXCEPTION_NOT_HANDLED         = 0x80010001
	STATUS_ACCESS_VIOLATION           = 0xC0000005
	STATUS_IN_PAGE_ERROR              = 0xC0000006
	STATUS_INVALID_HANDLE             = 0xC0000008
	STATUS_INVALID_PARAMETER          = 0xC000000D
	STATUS_NO_MEMORY                  = 0xC0000017
	STATUS_ILLEGAL_INSTRUCTION        = 0xC000001D
	STATUS_NONCONTINUABLE_EXCEPTION   = 0xC0000025
	STATUS_INVALID_DISPOSITION        = 0xC0000026
	STATUS_ARRAY_BOUNDS_EXCEEDED      = 0xC000008C
	STATUS_FLOAT_DENORMAL_OPERAND     = 0xC000008D
	STATUS_FLOAT_DIVIDE_BY_ZERO       = 0xC000008E
	STATUS_FLOAT_INEXACT_RESULT       = 0xC000008F
	STATUS_FLOAT_INVALID_OPERATION    = 0xC0000090
	STATUS_FLOAT_OVERFLOW             = 0xC0000091
	STATUS_FLOAT_STACK_CHECK          = 0xC0000092
	STATUS_FLOAT_UNDERFLOW            = 0xC0000093
	STATUS_INTEGER_DIVIDE_BY_ZERO     = 0xC0000094
	STATUS_INTEGER_OVERFLOW           = 0xC0000095
	STATUS_PRIVILEGED_INSTRUCTION     = 0xC0000096
	STATUS_STACK_OVERFLOW             = 0xC00000FD
	STATUS_DLL_NOT_FOUND              = 0xC0000135
	STATUS_ORDINAL_NOT_FOUND          = 0xC0000138
	STATUS_ENTRYPOINT_NOT_FOUND       = 0xC0000139
	STATUS_CONTROL_C_EXIT             = 0xC000013A
	STATUS_DLL_INIT_FAILED            = 0xC0000142
	STATUS_FLOAT_MULTIPLE_FAULTS      = 0xC00002B4
	STATUS_FLOAT_MULTIPLE_TRAPS       = 0xC00002B5
	STATUS_REG_NAT_CONSUMPTION        = 0xC00002C9
	STATUS_STACK_BUFFER_OVERRUN       = 0xC0000409
	STATUS_INVALID_CRUNTIME_PARAMETER = 0xC0000417
	STATUS_ASSERTION_FAILURE          = 0xC0000420
	STATUS_SXS_EARLY_DEACTIVATION     = 0xC015000F
	STATUS_SXS_INVALID_DEACTIVATION   = 0xC0150010
)
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
)
View Source
const (
	GENERIC_READ    = 0x80000000
	GENERIC_WRITE   = 0x40000000
	GENERIC_EXECUTE = 0x20000000
	GENERIC_ALL     = 0x10000000
)
View Source
const (
	SidTypeUser           = 1
	SidTypeGroup          = 2
	SidTypeDomain         = 3
	SidTypeAlias          = 4
	SidTypeWellKnownGroup = 5
	SidTypeDeletedAccount = 6
	SidTypeInvalid        = 7
	SidTypeUnknown        = 8
	SidTypeComputer       = 9
	SidTypeLabel          = 10
)
View Source
const (
	SECURITY_NULL_RID          = 0x00000000
	SECURITY_WORLD_RID         = 0x00000000
	SECURITY_LOCAL_RID         = 0x00000000
	SECURITY_LOCAL_LOGON_RID   = 0x00000001
	SECURITY_CREATOR_OWNER_RID = 0x00000000
	SECURITY_CREATOR_GROUP_RID = 0x00000001
)
View Source
const (
	SECURITY_DIALUP_RID                 = 0x00000001
	SECURITY_NETWORK_RID                = 0x00000002
	SECURITY_BATCH_RID                  = 0x00000003
	SECURITY_INTERACTIVE_RID            = 0x00000004
	SECURITY_LOGON_IDS_RID              = 0x00000005
	SECURITY_SERVICE_RID                = 0x00000006
	SECURITY_ANONYMOUS_LOGON_RID        = 0x00000007
	SECURITY_PROXY_RID                  = 0x00000008
	SECURITY_ENTERPRISE_CONTROLLERS_RID = 0x00000009
	SECURITY_PRINCIPAL_SELF_RID         = 0x0000000A
	SECURITY_AUTHENTICATED_USER_RID     = 0x0000000B
	SECURITY_RESTRICTED_CODE_RID        = 0x0000000C
	SECURITY_TERMINAL_SERVER_RID        = 0x0000000D
	SECURITY_LOCAL_SYSTEM_RID           = 0x00000012
	SECURITY_LOCAL_SERVICE_RID          = 0x00000013
	SECURITY_NETWORK_SERVICE_RID        = 0x00000014
	SECURITY_NT_NON_UNIQUE              = 0x00000015
	SECURITY_BUILTIN_DOMAIN_RID         = 0x00000020
)
View Source
const (
	DOMAIN_USER_RID_ADMIN = 0x000001F4
	DOMAIN_USER_RID_GUEST = 0x000001F5
)
View Source
const (
	DOMAIN_GROUP_RID_ADMINS               = 0x00000200
	DOMAIN_GROUP_RID_USERS                = 0x00000201
	DOMAIN_GROUP_RID_GUESTS               = 0x00000202
	DOMAIN_GROUP_RID_COMPUTERS            = 0x00000203
	DOMAIN_GROUP_RID_CONTROLLERS          = 0x00000204
	DOMAIN_GROUP_RID_CERT_ADMINS          = 0x00000205
	DOMAIN_GROUP_RID_SCHEMA_ADMINS        = 0x00000206
	DOMAIN_GROUP_RID_ENTERPRISE_ADMINS    = 0x00000207
	DOMAIN_GROUP_RID_POLICY_ADMINS        = 0x00000208
	DOMAIN_GROUP_RID_READONLY_CONTROLLERS = 0x00000209
)
View Source
const (
	DOMAIN_ALIAS_RID_ADMINS                         = 0x00000220
	DOMAIN_ALIAS_RID_USERS                          = 0x00000221
	DOMAIN_ALIAS_RID_GUESTS                         = 0x00000222
	DOMAIN_ALIAS_RID_POWER_USERS                    = 0x00000223
	DOMAIN_ALIAS_RID_ACCOUNT_OPS                    = 0x00000224
	DOMAIN_ALIAS_RID_SYSTEM_OPS                     = 0x00000225
	DOMAIN_ALIAS_RID_PRINT_OPS                      = 0x00000226
	DOMAIN_ALIAS_RID_BACKUP_OPS                     = 0x00000227
	DOMAIN_ALIAS_RID_REPLICATOR                     = 0x00000228
	DOMAIN_ALIAS_RID_RAS_SERVERS                    = 0x00000229
	DOMAIN_ALIAS_RID_PREW2KCOMPACCESS               = 0x0000022A
	DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS           = 0x0000022B
	DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS      = 0x0000022C
	DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = 0x0000022D
	DOMAIN_ALIAS_RID_MONITORING_USERS               = 0x0000022E
	DOMAIN_ALIAS_RID_LOGGING_USERS                  = 0x0000022F
	DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS            = 0x00000230
	DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS             = 0x00000231
	DOMAIN_ALIAS_RID_DCOM_USERS                     = 0x00000232
	DOMAIN_ALIAS_RID_IUSERS                         = 0x00000238
	DOMAIN_ALIAS_RID_CRYPTO_OPERATORS               = 0x00000239
	DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP     = 0x0000023B
	DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP = 0x0000023C
	DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP        = 0x0000023D
	DOMAIN_ALIAS_RID_CERTSVC_DCOM_ACCESS_GROUP      = 0x0000023E
)
View Source
const (
	SECURITY_MANDATORY_UNTRUSTED_RID         = 0x00000000
	SECURITY_MANDATORY_LOW_RID               = 0x00001000
	SECURITY_MANDATORY_MEDIUM_RID            = 0x00002000
	SECURITY_MANDATORY_MEDIUM_PLUS_RID       = SECURITY_MANDATORY_MEDIUM_RID + 0x00000100
	SECURITY_MANDATORY_HIGH_RID              = 0x00003000
	SECURITY_MANDATORY_SYSTEM_RID            = 0x00004000
	SECURITY_MANDATORY_PROTECTED_PROCESS_RID = 0x00005000
)
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
)
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
)
View Source
const (
	ACL_REVISION    = 2
	ACL_REVISION_DS = 4
)
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
)
View Source
const (
	SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x00000001
	SE_PRIVILEGE_ENABLED            = 0x00000002
	SE_PRIVILEGE_REMOVED            = 0x00000004
	SE_PRIVILEGE_USED_FOR_ACCESS    = 0x80000000
)
View Source
const (
	SE_CREATE_TOKEN_NAME           = "SeCreateTokenPrivilege"
	SE_ASSIGNPRIMARYTOKEN_NAME     = "SeAssignPrimaryTokenPrivilege"
	SE_LOCK_MEMORY_NAME            = "SeLockMemoryPrivilege"
	SE_INCREASE_QUOTA_NAME         = "SeIncreaseQuotaPrivilege"
	SE_UNSOLICITED_INPUT_NAME      = "SeUnsolicitedInputPrivilege"
	SE_MACHINE_ACCOUNT_NAME        = "SeMachineAccountPrivilege"
	SE_TCB_NAME                    = "SeTcbPrivilege"
	SE_SECURITY_NAME               = "SeSecurityPrivilege"
	SE_TAKE_OWNERSHIP_NAME         = "SeTakeOwnershipPrivilege"
	SE_LOAD_DRIVER_NAME            = "SeLoadDriverPrivilege"
	SE_SYSTEM_PROFILE_NAME         = "SeSystemProfilePrivilege"
	SE_SYSTEMTIME_NAME             = "SeSystemtimePrivilege"
	SE_PROF_SINGLE_PROCESS_NAME    = "SeProfileSingleProcessPrivilege"
	SE_INC_BASE_PRIORITY_NAME      = "SeIncreaseBasePriorityPrivilege"
	SE_CREATE_PAGEFILE_NAME        = "SeCreatePagefilePrivilege"
	SE_CREATE_PERMANENT_NAME       = "SeCreatePermanentPrivilege"
	SE_BACKUP_NAME                 = "SeBackupPrivilege"
	SE_RESTORE_NAME                = "SeRestorePrivilege"
	SE_SHUTDOWN_NAME               = "SeShutdownPrivilege"
	SE_DEBUG_NAME                  = "SeDebugPrivilege"
	SE_AUDIT_NAME                  = "SeAuditPrivilege"
	SE_SYSTEM_ENVIRONMENT_NAME     = "SeSystemEnvironmentPrivilege"
	SE_CHANGE_NOTIFY_NAME          = "SeChangeNotifyPrivilege"
	SE_REMOTE_SHUTDOWN_NAME        = "SeRemoteShutdownPrivilege"
	SE_UNDOCK_NAME                 = "SeUndockPrivilege"
	SE_SYNC_AGENT_NAME             = "SeSyncAgentPrivilege"
	SE_ENABLE_DELEGATION_NAME      = "SeEnableDelegationPrivilege"
	SE_MANAGE_VOLUME_NAME          = "SeManageVolumePrivilege"
	SE_IMPERSONATE_NAME            = "SeImpersonatePrivilege"
	SE_CREATE_GLOBAL_NAME          = "SeCreateGlobalPrivilege"
	SE_TRUSTED_CREDMAN_ACCESS_NAME = "SeTrustedCredManAccessPrivilege"
	SE_RELABEL_NAME                = "SeRelabelPrivilege"
	SE_INC_WORKING_SET_NAME        = "SeIncreaseWorkingSetPrivilege"
	SE_TIME_ZONE_NAME              = "SeTimeZonePrivilege"
	SE_CREATE_SYMBOLIC_LINK_NAME   = "SeCreateSymbolicLinkPrivilege"
)
View Source
const (
	SecurityAnonymous      = 0
	SecurityIdentification = 1
	SecurityImpersonation  = 2
	SecurityDelegation     = 3
)
View Source
const (
	TOKEN_ASSIGN_PRIMARY    = 0x0001
	TOKEN_DUPLICATE         = 0x0002
	TOKEN_IMPERSONATE       = 0x0004
	TOKEN_QUERY             = 0x0008
	TOKEN_QUERY_SOURCE      = 0x0010
	TOKEN_ADJUST_PRIVILEGES = 0x0020
	TOKEN_ADJUST_GROUPS     = 0x0040
	TOKEN_ADJUST_DEFAULT    = 0x0080
	TOKEN_ADJUST_SESSIONID  = 0x0100
	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 (
	TokenPrimary       = 1
	TokenImpersonation = 2
)
View Source
const (
	TokenElevationTypeDefault = 1
	TokenElevationTypeFull    = 2
	TokenElevationTypeLimited = 3
)
View Source
const (
	TokenUser                  = 1
	TokenGroups                = 2
	TokenPrivileges            = 3
	TokenOwner                 = 4
	TokenPrimaryGroup          = 5
	TokenDefaultDacl           = 6
	TokenSource                = 7
	TokenType                  = 8
	TokenImpersonationLevel    = 9
	TokenStatistics            = 10
	TokenRestrictedSids        = 11
	TokenSessionId             = 12
	TokenGroupsAndPrivileges   = 13
	TokenSessionReference      = 14
	TokenSandBoxInert          = 15
	TokenAuditPolicy           = 16
	TokenOrigin                = 17
	TokenElevationType         = 18
	TokenLinkedToken           = 19
	TokenElevation             = 20
	TokenHasRestrictions       = 21
	TokenAccessInformation     = 22
	TokenVirtualizationAllowed = 23
	TokenVirtualizationEnabled = 24
	TokenIntegrityLevel        = 25
	TokenUIAccess              = 26
	TokenMandatoryPolicy       = 27
	TokenLogonSid              = 28
	MaxTokenInfoClass          = 29
)
View Source
const (
	TOKEN_MANDATORY_POLICY_OFF             = 0x00000000
	TOKEN_MANDATORY_POLICY_NO_WRITE_UP     = 0x00000001
	TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN = 0x00000002
	TOKEN_MANDATORY_POLICY_VALID_MASK      = TOKEN_MANDATORY_POLICY_NO_WRITE_UP | TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN
)
View Source
const (
	OWNER_SECURITY_INFORMATION            = 0x00000001
	GROUP_SECURITY_INFORMATION            = 0x00000002
	DACL_SECURITY_INFORMATION             = 0x00000004
	SACL_SECURITY_INFORMATION             = 0x00000008
	LABEL_SECURITY_INFORMATION            = 0x00000010
	PROTECTED_DACL_SECURITY_INFORMATION   = 0x80000000
	PROTECTED_SACL_SECURITY_INFORMATION   = 0x40000000
	UNPROTECTED_DACL_SECURITY_INFORMATION = 0x20000000
	UNPROTECTED_SACL_SECURITY_INFORMATION = 0x10000000
)
View Source
const (
	PROCESS_TERMINATE                 = 0x0001
	PROCESS_CREATE_THREAD             = 0x0002
	PROCESS_SET_SESSIONID             = 0x0004
	PROCESS_VM_OPERATION              = 0x0008
	PROCESS_VM_READ                   = 0x0010
	PROCESS_VM_WRITE                  = 0x0020
	PROCESS_DUP_HANDLE                = 0x0040
	PROCESS_CREATE_PROCESS            = 0x0080
	PROCESS_SET_QUOTA                 = 0x0100
	PROCESS_SET_INFORMATION           = 0x0200
	PROCESS_QUERY_INFORMATION         = 0x0400
	PROCESS_SUSPEND_RESUME            = 0x0800
	PROCESS_QUERY_LIMITED_INFORMATION = 0x1000
	PROCESS_ALL_ACCESS                = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF
)
View Source
const (
	JOB_OBJECT_ASSIGN_PROCESS          = 0x0001
	JOB_OBJECT_SET_ATTRIBUTES          = 0x0002
	JOB_OBJECT_QUERY                   = 0x0004
	JOB_OBJECT_TERMINATE               = 0x0008
	JOB_OBJECT_SET_SECURITY_ATTRIBUTES = 0x0010
	JOB_OBJECT_ALL_ACCESS              = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x001F
)
View Source
const (
	JOB_OBJECT_TERMINATE_AT_END_OF_JOB = 0
	JOB_OBJECT_POST_AT_END_OF_JOB      = 1
)
View Source
const (
	JOB_OBJECT_LIMIT_WORKINGSET                 = 0x00000001
	JOB_OBJECT_LIMIT_PROCESS_TIME               = 0x00000002
	JOB_OBJECT_LIMIT_JOB_TIME                   = 0x00000004
	JOB_OBJECT_LIMIT_ACTIVE_PROCESS             = 0x00000008
	JOB_OBJECT_LIMIT_AFFINITY                   = 0x00000010
	JOB_OBJECT_LIMIT_PRIORITY_CLASS             = 0x00000020
	JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME          = 0x00000040
	JOB_OBJECT_LIMIT_SCHEDULING_CLASS           = 0x00000080
	JOB_OBJECT_LIMIT_PROCESS_MEMORY             = 0x00000100
	JOB_OBJECT_LIMIT_JOB_MEMORY                 = 0x00000200
	JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 0x00000400
	JOB_OBJECT_LIMIT_BREAKAWAY_OK               = 0x00000800
	JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK        = 0x00001000
	JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE          = 0x00002000
	JOB_OBJECT_LIMIT_SUBSET_AFFINITY            = 0x00004000
)
View Source
const (
	JOB_OBJECT_UILIMIT_HANDLES          = 0x00000001
	JOB_OBJECT_UILIMIT_READCLIPBOARD    = 0x00000002
	JOB_OBJECT_UILIMIT_WRITECLIPBOARD   = 0x00000004
	JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = 0x00000008
	JOB_OBJECT_UILIMIT_DISPLAYSETTINGS  = 0x00000010
	JOB_OBJECT_UILIMIT_GLOBALATOMS      = 0x00000020
	JOB_OBJECT_UILIMIT_DESKTOP          = 0x00000040
	JOB_OBJECT_UILIMIT_EXITWINDOWS      = 0x00000080
)
View Source
const (
	JOB_OBJECT_SECURITY_NO_ADMIN         = 0x00000001
	JOB_OBJECT_SECURITY_RESTRICTED_TOKEN = 0x00000002
	JOB_OBJECT_SECURITY_ONLY_TOKEN       = 0x00000004
	JOB_OBJECT_SECURITY_FILTER_TOKENS    = 0x00000008
)
View Source
const (
	JobObjectBasicAccountingInformation         = 1
	JobObjectBasicLimitInformation              = 2
	JobObjectBasicProcessIdList                 = 3
	JobObjectBasicUIRestrictions                = 4
	JobObjectSecurityLimitInformation           = 5
	JobObjectEndOfJobTimeInformation            = 6
	JobObjectAssociateCompletionPortInformation = 7
	JobObjectBasicAndIoAccountingInformation    = 8
	JobObjectExtendedLimitInformation           = 9
	JobObjectGroupInformation                   = 11
)
View Source
const (
	EVENT_MODIFY_STATE = 0x0002
	EVENT_ALL_ACCESS   = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3
)
View Source
const (
	MUTANT_QUERY_STATE = 0x0001
	MUTANT_ALL_ACCESS  = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | MUTANT_QUERY_STATE
)
View Source
const (
	PROCESSOR_INTEL_386     = 386
	PROCESSOR_INTEL_486     = 486
	PROCESSOR_INTEL_PENTIUM = 586
	PROCESSOR_INTEL_IA64    = 2200
	PROCESSOR_AMD_X8664     = 8664
)
View Source
const (
	PROCESSOR_ARCHITECTURE_INTEL   = 0
	PROCESSOR_ARCHITECTURE_MIPS    = 1
	PROCESSOR_ARCHITECTURE_ALPHA   = 2
	PROCESSOR_ARCHITECTURE_PPC     = 3
	PROCESSOR_ARCHITECTURE_ARM     = 5
	PROCESSOR_ARCHITECTURE_IA64    = 6
	PROCESSOR_ARCHITECTURE_AMD64   = 9
	PROCESSOR_ARCHITECTURE_UNKNOWN = 0xFFFF
)
View Source
const (
	FILE_READ_DATA            = 0x0001
	FILE_LIST_DIRECTORY       = 0x0001
	FILE_WRITE_DATA           = 0x0002
	FILE_ADD_FILE             = 0x0002
	FILE_APPEND_DATA          = 0x0004
	FILE_ADD_SUBDIRECTORY     = 0x0004
	FILE_CREATE_PIPE_INSTANCE = 0x0004
	FILE_READ_EA              = 0x0008
	FILE_WRITE_EA             = 0x0010
	FILE_EXECUTE              = 0x0020
	FILE_TRAVERSE             = 0x0020
	FILE_DELETE_CHILD         = 0x0040
	FILE_READ_ATTRIBUTES      = 0x0080
	FILE_WRITE_ATTRIBUTES     = 0x0100
	FILE_ALL_ACCESS           = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x01FF
	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
)
View Source
const (
	FILE_SHARE_READ   = 0x00000001
	FILE_SHARE_WRITE  = 0x00000002
	FILE_SHARE_DELETE = 0x00000004
)
View Source
const (
	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_VIRTUAL             = 0x00010000
)
View Source
const (
	FILE_CASE_SENSITIVE_SEARCH        = 0x00000001
	FILE_CASE_PRESERVED_NAMES         = 0x00000002
	FILE_UNICODE_ON_DISK              = 0x00000004
	FILE_PERSISTENT_ACLS              = 0x00000008
	FILE_FILE_COMPRESSION             = 0x00000010
	FILE_VOLUME_QUOTAS                = 0x00000020
	FILE_SUPPORTS_SPARSE_FILES        = 0x00000040
	FILE_SUPPORTS_REPARSE_POINTS      = 0x00000080
	FILE_SUPPORTS_REMOTE_STORAGE      = 0x00000100
	FILE_VOLUME_IS_COMPRESSED         = 0x00008000
	FILE_SUPPORTS_OBJECT_IDS          = 0x00010000
	FILE_SUPPORTS_ENCRYPTION          = 0x00020000
	FILE_NAMED_STREAMS                = 0x00040000
	FILE_READ_ONLY_VOLUME             = 0x00080000
	FILE_SEQUENTIAL_WRITE_ONCE        = 0x00100000
	FILE_SUPPORTS_TRANSACTIONS        = 0x00200000
	FILE_SUPPORTS_HARD_LINKS          = 0x00400000
	FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000
	FILE_SUPPORTS_OPEN_BY_FILE_ID     = 0x01000000
	FILE_SUPPORTS_USN_JOURNAL         = 0x02000000
)
View Source
const (
	IO_REPARSE_TAG_RESERVED_ZERO  = 0
	IO_REPARSE_TAG_RESERVED_ONE   = 1
	IO_REPARSE_TAG_RESERVED_RANGE = IO_REPARSE_TAG_RESERVED_ONE
)
View Source
const (
	IO_REPARSE_TAG_MOUNT_POINT = 0xA0000003
	IO_REPARSE_TAG_HSM         = 0xC0000004
	IO_REPARSE_TAG_HSM2        = 0x80000006
	IO_REPARSE_TAG_SIS         = 0x80000007
	IO_REPARSE_TAG_WIM         = 0x80000008
	IO_REPARSE_TAG_CSV         = 0x80000009
	IO_REPARSE_TAG_DFS         = 0x8000000A
	IO_REPARSE_TAG_SYMLINK     = 0xA000000C
	IO_REPARSE_TAG_DFSR        = 0x80000012
)
View Source
const (
	VER_EQUAL         = 1
	VER_GREATER       = 2
	VER_GREATER_EQUAL = 3
	VER_LESS          = 4
	VER_LESS_EQUAL    = 5
	VER_AND           = 6
	VER_OR            = 7
)
View Source
const (
	VER_MINORVERSION     = 0x00000001
	VER_MAJORVERSION     = 0x00000002
	VER_BUILDNUMBER      = 0x00000004
	VER_PLATFORMID       = 0x00000008
	VER_SERVICEPACKMINOR = 0x00000010
	VER_SERVICEPACKMAJOR = 0x00000020
	VER_SUITENAME        = 0x00000040
	VER_PRODUCT_TYPE     = 0x00000080
)
View Source
const (
	VER_NT_WORKSTATION       = 0x00000001
	VER_NT_DOMAIN_CONTROLLER = 0x00000002
	VER_NT_SERVER            = 0x00000003
)
View Source
const (
	VER_PLATFORM_WIN32s        = 0
	VER_PLATFORM_WIN32_WINDOWS = 1
	VER_PLATFORM_WIN32_NT      = 2
)
View Source
const (
	EVENTLOG_SUCCESS          = 0x0000
	EVENTLOG_ERROR_TYPE       = 0x0001
	EVENTLOG_WARNING_TYPE     = 0x0002
	EVENTLOG_INFORMATION_TYPE = 0x0004
	EVENTLOG_AUDIT_SUCCESS    = 0x0008
	EVENTLOG_AUDIT_FAILURE    = 0x0010
)
View Source
const (
	KEY_QUERY_VALUE        = 0x0001
	KEY_SET_VALUE          = 0x0002
	KEY_CREATE_SUB_KEY     = 0x0004
	KEY_ENUMERATE_SUB_KEYS = 0x0008
	KEY_NOTIFY             = 0x0010
	KEY_CREATE_LINK        = 0x0020
	KEY_WOW64_32KEY        = 0x0200
	KEY_WOW64_64KEY        = 0x0100
	KEY_READ               = (STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY) & ^SYNCHRONIZE
	KEY_WRITE              = (STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & ^SYNCHRONIZE
	KEY_EXECUTE            = KEY_READ & ^SYNCHRONIZE
	KEY_ALL_ACCESS         = (STANDARD_RIGHTS_ALL | KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY | KEY_CREATE_LINK) & ^SYNCHRONIZE
)
View Source
const (
	REG_OPTION_NON_VOLATILE   = 0x00000000
	REG_OPTION_VOLATILE       = 0x00000001
	REG_OPTION_CREATE_LINK    = 0x00000002
	REG_OPTION_BACKUP_RESTORE = 0x00000004
)
View Source
const (
	REG_CREATED_NEW_KEY     = 0x00000001
	REG_OPENED_EXISTING_KEY = 0x00000002
)
View Source
const (
	REG_NONE                = 0
	REG_SZ                  = 1
	REG_EXPAND_SZ           = 2
	REG_BINARY              = 3
	REG_DWORD               = 4
	REG_DWORD_LITTLE_ENDIAN = 4
	REG_DWORD_BIG_ENDIAN    = 5
	REG_LINK                = 6
	REG_MULTI_SZ            = 7
	REG_QWORD               = 11
	REG_QWORD_LITTLE_ENDIAN = 11
)
View Source
const (
	SERVICE_KERNEL_DRIVER       = 0x00000001
	SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
	SERVICE_ADAPTER             = 0x00000004
	SERVICE_RECOGNIZER_DRIVER   = 0x00000008
	SERVICE_DRIVER              = SERVICE_KERNEL_DRIVER | SERVICE_FILE_SYSTEM_DRIVER | SERVICE_RECOGNIZER_DRIVER
	SERVICE_WIN32_OWN_PROCESS   = 0x00000010
	SERVICE_WIN32_SHARE_PROCESS = 0x00000020
	SERVICE_WIN32               = SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS
	SERVICE_INTERACTIVE_PROCESS = 0x00000100
)
View Source
const (
	SERVICE_BOOT_START   = 0x00000000
	SERVICE_SYSTEM_START = 0x00000001
	SERVICE_AUTO_START   = 0x00000002
	SERVICE_DEMAND_START = 0x00000003
	SERVICE_DISABLED     = 0x00000004
)
View Source
const (
	SERVICE_ERROR_IGNORE   = 0x00000000
	SERVICE_ERROR_NORMAL   = 0x00000001
	SERVICE_ERROR_SEVERE   = 0x00000002
	SERVICE_ERROR_CRITICAL = 0x00000003
)
View Source
const (
	HKEY_CLASSES_ROOT                = 0x80000000
	HKEY_CURRENT_USER                = 0x80000001
	HKEY_LOCAL_MACHINE               = 0x80000002
	HKEY_USERS                       = 0x80000003
	HKEY_PERFORMANCE_DATA            = 0x80000004
	HKEY_PERFORMANCE_TEXT            = 0x80000050
	HKEY_PERFORMANCE_NLSTEXT         = 0x80000060
	HKEY_CURRENT_CONFIG              = 0x80000005
	HKEY_DYN_DATA                    = 0x80000006
	HKEY_CURRENT_USER_LOCAL_SETTINGS = 0x80000007
)
View Source
const (
	SHUTDOWN_FORCE_OTHERS         = 0x00000001
	SHUTDOWN_FORCE_SELF           = 0x00000002
	SHUTDOWN_RESTART              = 0x00000004
	SHUTDOWN_POWEROFF             = 0x00000008
	SHUTDOWN_NOREBOOT             = 0x00000010
	SHUTDOWN_GRACE_OVERRIDE       = 0x00000020
	SHUTDOWN_INSTALL_UPDATES      = 0x00000040
	SHUTDOWN_RESTARTAPPS          = 0x00000080
	SHUTDOWN_SKIP_SVC_PRESHUTDOWN = 0x00000100
	SHUTDOWN_HYBRID               = 0x00000200
)
View Source
const (
	WSA_IO_PENDING        = ERROR_IO_PENDING
	WSA_IO_INCOMPLETE     = ERROR_IO_INCOMPLETE
	WSA_INVALID_HANDLE    = ERROR_INVALID_HANDLE
	WSA_INVALID_PARAMETER = ERROR_INVALID_PARAMETER
	WSA_NOT_ENOUGH_MEMORY = ERROR_NOT_ENOUGH_MEMORY
	WSA_OPERATION_ABORTED = ERROR_OPERATION_ABORTED
)
View Source
const (
	SERVICE_ACTIVE    = 0x00000001
	SERVICE_INACTIVE  = 0x00000002
	SERVICE_STATE_ALL = SERVICE_ACTIVE | SERVICE_INACTIVE
)
View Source
const (
	SERVICE_CONTROL_STOP                  = 0x00000001
	SERVICE_CONTROL_PAUSE                 = 0x00000002
	SERVICE_CONTROL_CONTINUE              = 0x00000003
	SERVICE_CONTROL_INTERROGATE           = 0x00000004
	SERVICE_CONTROL_SHUTDOWN              = 0x00000005
	SERVICE_CONTROL_PARAMCHANGE           = 0x00000006
	SERVICE_CONTROL_NETBINDADD            = 0x00000007
	SERVICE_CONTROL_NETBINDREMOVE         = 0x00000008
	SERVICE_CONTROL_NETBINDENABLE         = 0x00000009
	SERVICE_CONTROL_NETBINDDISABLE        = 0x0000000A
	SERVICE_CONTROL_DEVICEEVENT           = 0x0000000B
	SERVICE_CONTROL_HARDWAREPROFILECHANGE = 0x0000000C
	SERVICE_CONTROL_POWEREVENT            = 0x0000000D
	SERVICE_CONTROL_SESSIONCHANGE         = 0x0000000E
	SERVICE_CONTROL_PRESHUTDOWN           = 0x0000000F
	SERVICE_CONTROL_TIMECHANGE            = 0x00000010
	SERVICE_CONTROL_TRIGGEREVENT          = 0x00000020
)
View Source
const (
	SERVICE_STOPPED          = 0x00000001
	SERVICE_START_PENDING    = 0x00000002
	SERVICE_STOP_PENDING     = 0x00000003
	SERVICE_RUNNING          = 0x00000004
	SERVICE_CONTINUE_PENDING = 0x00000005
	SERVICE_PAUSE_PENDING    = 0x00000006
	SERVICE_PAUSED           = 0x00000007
)
View Source
const (
	SERVICE_ACCEPT_STOP                  = 0x00000001
	SERVICE_ACCEPT_PAUSE_CONTINUE        = 0x00000002
	SERVICE_ACCEPT_SHUTDOWN              = 0x00000004
	SERVICE_ACCEPT_PARAMCHANGE           = 0x00000008
	SERVICE_ACCEPT_NETBINDCHANGE         = 0x00000010
	SERVICE_ACCEPT_HARDWAREPROFILECHANGE = 0x00000020
	SERVICE_ACCEPT_POWEREVENT            = 0x00000040
	SERVICE_ACCEPT_SESSIONCHANGE         = 0x00000080
	SERVICE_ACCEPT_PRESHUTDOWN           = 0x00000100
	SERVICE_ACCEPT_TIMECHANGE            = 0x00000200
	SERVICE_ACCEPT_TRIGGEREVENT          = 0x00000400
)
View Source
const (
	SC_MANAGER_CONNECT            = 0x0001
	SC_MANAGER_CREATE_SERVICE     = 0x0002
	SC_MANAGER_ENUMERATE_SERVICE  = 0x0004
	SC_MANAGER_LOCK               = 0x0008
	SC_MANAGER_QUERY_LOCK_STATUS  = 0x0010
	SC_MANAGER_MODIFY_BOOT_CONFIG = 0x0020
	SC_MANAGER_ALL_ACCESS         = STANDARD_RIGHTS_REQUIRED | SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE | SC_MANAGER_ENUMERATE_SERVICE | SC_MANAGER_LOCK | SC_MANAGER_QUERY_LOCK_STATUS | SC_MANAGER_MODIFY_BOOT_CONFIG
)
View Source
const (
	SERVICE_QUERY_CONFIG         = 0x0001
	SERVICE_CHANGE_CONFIG        = 0x0002
	SERVICE_QUERY_STATUS         = 0x0004
	SERVICE_ENUMERATE_DEPENDENTS = 0x0008
	SERVICE_START                = 0x0010
	SERVICE_STOP                 = 0x0020
	SERVICE_PAUSE_CONTINUE       = 0x0040
	SERVICE_INTERROGATE          = 0x0080
	SERVICE_USER_DEFINED_CONTROL = 0x0100
	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
)
View Source
const (
	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
)
View Source
const (
	SERVICE_SID_TYPE_NONE         = 0x00000000
	SERVICE_SID_TYPE_UNRESTRICTED = 0x00000001
	SERVICE_SID_TYPE_RESTRICTED   = 0x00000002 | SERVICE_SID_TYPE_UNRESTRICTED
)
View Source
const (
	SC_ACTION_NONE        = 0
	SC_ACTION_RESTART     = 1
	SC_ACTION_REBOOT      = 2
	SC_ACTION_RUN_COMMAND = 3
)
View Source
const (
	SW_HIDE            = 0
	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
)
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 (
	DESKTOP_READOBJECTS     = 0x00000001
	DESKTOP_CREATEWINDOW    = 0x00000002
	DESKTOP_CREATEMENU      = 0x00000004
	DESKTOP_HOOKCONTROL     = 0x00000008
	DESKTOP_JOURNALRECORD   = 0x00000010
	DESKTOP_JOURNALPLAYBACK = 0x00000020
	DESKTOP_ENUMERATE       = 0x00000040
	DESKTOP_WRITEOBJECTS    = 0x00000080
	DESKTOP_SWITCHDESKTOP   = 0x00000100
)
View Source
const (
	EWX_LOGOFF          = 0
	EWX_SHUTDOWN        = 0x00000001
	EWX_REBOOT          = 0x00000002
	EWX_FORCE           = 0x00000004
	EWX_POWEROFF        = 0x00000008
	EWX_FORCEIFHUNG     = 0x00000010
	EWX_RESTARTAPPS     = 0x00000040
	EWX_HYBRID_SHUTDOWN = 0x00400000
)
View Source
const (
	SM_CXSCREEN                    = 0
	SM_CYSCREEN                    = 1
	SM_CXVSCROLL                   = 2
	SM_CYHSCROLL                   = 3
	SM_CYCAPTION                   = 4
	SM_CXBORDER                    = 5
	SM_CYBORDER                    = 6
	SM_CXDLGFRAME                  = 7
	SM_CYDLGFRAME                  = 8
	SM_CYVTHUMB                    = 9
	SM_CXHTHUMB                    = 10
	SM_CXICON                      = 11
	SM_CYICON                      = 12
	SM_CXCURSOR                    = 13
	SM_CYCURSOR                    = 14
	SM_CYMENU                      = 15
	SM_CXFULLSCREEN                = 16
	SM_CYFULLSCREEN                = 17
	SM_CYKANJIWINDOW               = 18
	SM_MOUSEPRESENT                = 19
	SM_CYVSCROLL                   = 20
	SM_CXHSCROLL                   = 21
	SM_DEBUG                       = 22
	SM_SWAPBUTTON                  = 23
	SM_CXMIN                       = 28
	SM_CYMIN                       = 29
	SM_CXSIZE                      = 30
	SM_CYSIZE                      = 31
	SM_CXFRAME                     = 32
	SM_CYFRAME                     = 33
	SM_CXMINTRACK                  = 34
	SM_CYMINTRACK                  = 35
	SM_CXDOUBLECLK                 = 36
	SM_CYDOUBLECLK                 = 37
	SM_CXICONSPACING               = 38
	SM_CYICONSPACING               = 39
	SM_MENUDROPALIGNMENT           = 40
	SM_PENWINDOWS                  = 41
	SM_DBCSENABLED                 = 42
	SM_CMOUSEBUTTONS               = 43
	SM_CXFIXEDFRAME                = SM_CXDLGFRAME
	SM_CYFIXEDFRAME                = SM_CYDLGFRAME
	SM_CXSIZEFRAME                 = SM_CXFRAME
	SM_CYSIZEFRAME                 = SM_CYFRAME
	SM_SECURE                      = 44
	SM_CXEDGE                      = 45
	SM_CYEDGE                      = 46
	SM_CXMINSPACING                = 47
	SM_CYMINSPACING                = 48
	SM_CXSMICON                    = 49
	SM_CYSMICON                    = 50
	SM_CYSMCAPTION                 = 51
	SM_CXSMSIZE                    = 52
	SM_CYSMSIZE                    = 53
	SM_CXMENUSIZE                  = 54
	SM_CYMENUSIZE                  = 55
	SM_ARRANGE                     = 56
	SM_CXMINIMIZED                 = 57
	SM_CYMINIMIZED                 = 58
	SM_CXMAXTRACK                  = 59
	SM_CYMAXTRACK                  = 60
	SM_CXMAXIMIZED                 = 61
	SM_CYMAXIMIZED                 = 62
	SM_NETWORK                     = 63
	SM_CLEANBOOT                   = 67
	SM_CXDRAG                      = 68
	SM_CYDRAG                      = 69
	SM_SHOWSOUNDS                  = 70
	SM_CXMENUCHECK                 = 71
	SM_CYMENUCHECK                 = 72
	SM_SLOWMACHINE                 = 73
	SM_MIDEASTENABLED              = 74
	SM_MOUSEWHEELPRESENT           = 75
	SM_XVIRTUALSCREEN              = 76
	SM_YVIRTUALSCREEN              = 77
	SM_CXVIRTUALSCREEN             = 78
	SM_CYVIRTUALSCREEN             = 79
	SM_CMONITORS                   = 80
	SM_SAMEDISPLAYFORMAT           = 81
	SM_IMMENABLED                  = 82
	SM_CXFOCUSBORDER               = 83
	SM_CYFOCUSBORDER               = 84
	SM_TABLETPC                    = 86
	SM_MEDIACENTER                 = 87
	SM_STARTER                     = 88
	SM_SERVERR2                    = 89
	SM_MOUSEHORIZONTALWHEELPRESENT = 91
	SM_CXPADDEDBORDER              = 92
	SM_DIGITIZER                   = 94
	SM_MAXIMUMTOUCHES              = 95
	SM_REMOTESESSION               = 0x1000
	SM_SHUTTINGDOWN                = 0x2000
	SM_REMOTECONTROL               = 0x2001
)
View Source
const (
	AF_UNSPEC    = 0
	AF_INET      = 2
	AF_IPX       = 6
	AF_APPLETALK = 16
	AF_NETBIOS   = 17
	AF_INET6     = 23
	AF_IRDA      = 26
	AF_BTH       = 32
)
View Source
const (
	CLIENTNAME_LENGTH     = 20
	DOMAIN_LENGTH         = 17
	USERNAME_LENGTH       = 20
	CLIENTADDRESS_LENGTH  = 30
	WINSTATIONNAME_LENGTH = 32
)

Misc consts from WtsApi32.h

View Source
const (
	WTSActive       = 0
	WTSConnected    = 1
	WTSConnectQuery = 2
	WTSShadow       = 3
	WTSDisconnected = 4
	WTSIdle         = 5
	WTSListen       = 6
	WTSReset        = 7
	WTSDown         = 8
	WTSInit         = 9
)

WTS_CONNECTSTATE_CLASS enumeration

View Source
const (
	WTSInitialProgram     = 0
	WTSApplicationName    = 1
	WTSWorkingDirectory   = 2
	WTSOEMId              = 3
	WTSSessionId          = 4
	WTSUserName           = 5
	WTSWinStationName     = 6
	WTSDomainName         = 7
	WTSConnectState       = 8
	WTSClientBuildNumber  = 9
	WTSClientName         = 10
	WTSClientDirectory    = 11
	WTSClientProductId    = 12
	WTSClientHardwareId   = 13
	WTSClientAddress      = 14
	WTSClientDisplay      = 15
	WTSClientProtocolType = 16
	WTSIdleTime           = 17
	WTSLogonTime          = 18
	WTSIncomingBytes      = 19
	WTSOutgoingBytes      = 20
	WTSIncomingFrames     = 21
	WTSOutgoingFrames     = 22
	WTSClientInfo         = 23
	WTSSessionInfo        = 24
	WTSSessionInfoEx      = 25
	WTSConfigInfo         = 26
	WTSValidationInfo     = 27
	WTSSessionAddressV4   = 28
	WTSIsRemoteSession    = 29
)

WTS_INFO_CLASS enumeration

View Source
const (
	WTSVirtualClientData = 0
	WTSVirtualFileHandle = 1
)

WTS_VIRTUAL_CLASS enumeration

View Source
const (
	CLSCTX_INPROC_SERVER          = 0x00000001
	CLSCTX_INPROC_HANDLER         = 0x00000002
	CLSCTX_LOCAL_SERVER           = 0x00000004
	CLSCTX_INPROC_SERVER16        = 0x00000008
	CLSCTX_REMOTE_SERVER          = 0x00000010
	CLSCTX_INPROC_HANDLER16       = 0x00000020
	CLSCTX_RESERVED1              = 0x00000040
	CLSCTX_RESERVED2              = 0x00000080
	CLSCTX_RESERVED3              = 0x00000100
	CLSCTX_RESERVED4              = 0x00000200
	CLSCTX_NO_CODE_DOWNLOAD       = 0x00000400
	CLSCTX_RESERVED5              = 0x00000800
	CLSCTX_NO_CUSTOM_MARSHAL      = 0x00001000
	CLSCTX_ENABLE_CODE_DOWNLOAD   = 0x00002000
	CLSCTX_NO_FAILURE_LOG         = 0x00004000
	CLSCTX_DISABLE_AAA            = 0x00008000
	CLSCTX_ENABLE_AAA             = 0x00010000
	CLSCTX_FROM_DEFAULT_CONTEXT   = 0x00020000
	CLSCTX_ACTIVATE_32_BIT_SERVER = 0x00040000
	CLSCTX_ACTIVATE_64_BIT_SERVER = 0x00080000
	CLSCTX_ENABLE_CLOAKING        = 0x00100000
	CLSCTX_PS_DLL                 = 0x80000000
)
View Source
const (
	VARIANT_TRUE  = -1
	VARIANT_FALSE = 0
)
View Source
const (
	VT_EMPTY            = 0
	VT_NULL             = 1
	VT_I2               = 2
	VT_I4               = 3
	VT_R4               = 4
	VT_R8               = 5
	VT_CY               = 6
	VT_DATE             = 7
	VT_BSTR             = 8
	VT_DISPATCH         = 9
	VT_ERROR            = 10
	VT_BOOL             = 11
	VT_VARIANT          = 12
	VT_UNKNOWN          = 13
	VT_DECIMAL          = 14
	VT_I1               = 16
	VT_UI1              = 17
	VT_UI2              = 18
	VT_UI4              = 19
	VT_I8               = 20
	VT_UI8              = 21
	VT_INT              = 22
	VT_UINT             = 23
	VT_VOID             = 24
	VT_HRESULT          = 25
	VT_PTR              = 26
	VT_SAFEARRAY        = 27
	VT_CARRAY           = 28
	VT_USERDEFINED      = 29
	VT_LPSTR            = 30
	VT_LPWSTR           = 31
	VT_RECORD           = 36
	VT_INT_PTR          = 37
	VT_UINT_PTR         = 38
	VT_FILETIME         = 64
	VT_BLOB             = 65
	VT_STREAM           = 66
	VT_STORAGE          = 67
	VT_STREAMED_OBJECT  = 68
	VT_STORED_OBJECT    = 69
	VT_BLOB_OBJECT      = 70
	VT_CF               = 71
	VT_CLSID            = 72
	VT_VERSIONED_STREAM = 73
	VT_BSTR_BLOB        = 0x0FFF
	VT_VECTOR           = 0x1000
	VT_ARRAY            = 0x2000
	VT_BYREF            = 0x4000
)
View Source
const (
	ANYSIZE_ARRAY = 1
)
View Source
const (
	DF_ALLOWOTHERACCOUNTHOOK = 0x00000001
)
View Source
const (
	EDD_GET_DEVICE_INTERFACE_NAME = 0x00000001
)
View Source
const (
	INFINITE = 0xFFFFFFFF
)
View Source
const (
	IPPROTO_UDP uint32 = 17
)
View Source
const (
	MAXIMUM_REPARSE_DATA_BUFFER_SIZE = 16 * 1024
)
View Source
const (
	MAX_COMPUTERNAME_LENGTH = 15
)
View Source
const MAX_MODULE_NAME32 = 255
View Source
const (
	MAX_PATH = 260
)
View Source
const (
	PROCESS_NAME_NATIVE = 0x00000001
)
View Source
const (
	//ProcessBasicInformation = 0
	ProcessWow64Information = 26
)
View Source
const (
	SC_STATUS_PROCESS_INFO = 0
)
View Source
const (
	SECURITY_DESCRIPTOR_MIN_LENGTH = unsafe.Sizeof(SECURITY_DESCRIPTOR{})
)
View Source
const (
	SECURITY_DESCRIPTOR_REVISION = 1
)
View Source
const (
	SERVICES_ACTIVE_DATABASE = "ServicesActive"
)
View Source
const (
	SERVICE_NO_CHANGE = 0xFFFFFFFF
)
View Source
const (
	SERVICE_RUNS_IN_SYSTEM_PROCESS = 0x00000001
)
View Source
const (
	SHUTDOWN_NORETRY = 0x00000001
)
View Source
const (
	SID_HASH_SIZE = 32
)
View Source
const (
	SYMBOLIC_LINK_FLAG_DIRECTORY = 0x00000001
)
View Source
const (
	SYMLINK_FLAG_RELATIVE = 0x00000001
)
View Source
const (
	TOKEN_SOURCE_LENGTH = 8
)

Variables

View Source
var (
	CLSID_GPESnapIn = GUID{0x8fc0b734, 0xa0e1, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	NODEID_Machine = GUID{0x8fc0b737, 0xa0e1, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	NODEID_MachineSWSettings = GUID{0x8fc0b73a, 0xa0e1, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	NODEID_User = GUID{0x8fc0b738, 0xa0e1, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	NODEID_UserSWSettings = GUID{0x8fc0b73c, 0xa0e1, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	IID_IGPEInformation = GUID{0x8fc0b735, 0xa0e1, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	CLSID_GroupPolicyObject = GUID{0xea502722, 0xa23d, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	IID_IGroupPolicyObject = GUID{0xea502723, 0xa23d, 0x11d1, [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}}

	REGISTRY_EXTENSION_GUID = GUID{0x35378EAC, 0x683F, 0x11D2, [8]byte{0xA8, 0x9A, 0x00, 0xC0, 0x4F, 0xBB, 0xCF, 0xA2}}

	ADMXCOMMENTS_EXTENSION_GUID = GUID{0x6C5A2A86, 0x9EB3, 0x42b9, [8]byte{0xAA, 0x83, 0xA7, 0x37, 0x1B, 0xA0, 0x11, 0xB9}}

	CLSID_RSOPSnapIn = GUID{0x6dc3804b, 0x7212, 0x458d, [8]byte{0xad, 0xb0, 0x9a, 0x07, 0xe2, 0xae, 0x1f, 0xa2}}

	NODEID_RSOPMachine = GUID{0xbd4c1a2e, 0x0b7a, 0x4a62, [8]byte{0xa6, 0xb0, 0xc0, 0x57, 0x75, 0x39, 0xc9, 0x7e}}

	NODEID_RSOPMachineSWSettings = GUID{0x6a76273e, 0xeb8e, 0x45db, [8]byte{0x94, 0xc5, 0x25, 0x66, 0x3a, 0x5f, 0x2c, 0x1a}}

	NODEID_RSOPUser = GUID{0xab87364f, 0x0cec, 0x4cd8, [8]byte{0x9b, 0xf8, 0x89, 0x8f, 0x34, 0x62, 0x8f, 0xb8}}

	NODEID_RSOPUserSWSettings = GUID{0xe52c5ce3, 0xfd27, 0x4402, [8]byte{0x84, 0xde, 0xd9, 0xa5, 0xf2, 0x85, 0x89, 0x10}}

	IID_IRSOPInformation = GUID{0x9a5a81b5, 0xd9c7, 0x49ef, [8]byte{0x9d, 0x11, 0xdd, 0xf5, 0x09, 0x68, 0xc4, 0x8d}}
)

Group Policy Editor MMC SnapIn GUID

{8FC0B734-A0E1-11d1-A7D3-0000F87571E3}

View Source
var (
	IID_IADsNameTranslate   = GUID{0xB1B272A3, 0x3625, 0x11D1, [8]byte{0xA3, 0xA4, 0x00, 0xC0, 0x4F, 0xB9, 0x50, 0xDC}}
	IID_IADsADSystemInfo    = GUID{0x5BB11929, 0xAFD1, 0x11D2, [8]byte{0x9C, 0xB9, 0x00, 0x00, 0xF8, 0x7A, 0x36, 0x9E}}
	IID_IADsWinNTSystemInfo = GUID{0x6C6D65DC, 0xAFD1, 0x11D2, [8]byte{0x9C, 0xB9, 0x00, 0x00, 0xF8, 0x7A, 0x36, 0x9E}}
	CLSID_NameTranslate     = GUID{0x274FAE1F, 0x3626, 0x11D1, [8]byte{0xA3, 0xA4, 0x00, 0xC0, 0x4F, 0xB9, 0x50, 0xDC}}
	CLSID_ADSystemInfo      = GUID{0x50B6327F, 0xAFD1, 0x11D2, [8]byte{0x9C, 0xB9, 0x00, 0x00, 0xF8, 0x7A, 0x36, 0x9E}}
	CLSID_WinNTSystemInfo   = GUID{0x66182EC4, 0xAFD1, 0x11D2, [8]byte{0x9C, 0xB9, 0x00, 0x00, 0xF8, 0x7A, 0x36, 0x9E}}
)
View Source
var (
	FOLDERID_NetworkFolder          = GUID{0xD20BEEC4, 0x5CA8, 0x4905, [8]byte{0xAE, 0x3B, 0xBF, 0x25, 0x1E, 0xA0, 0x9B, 0x53}}
	FOLDERID_ComputerFolder         = GUID{0x0AC0837C, 0xBFF8, 0x452A, [8]byte{0x85, 0x0D, 0x79, 0xD0, 0x8E, 0x66, 0x7C, 0xA7}}
	FOLDERID_InternetFolder         = GUID{0x4D9F7874, 0x4E0C, 0x4904, [8]byte{0x96, 0x7B, 0x40, 0xB0, 0xD2, 0x0C, 0x3E, 0x4B}}
	FOLDERID_ControlPanelFolder     = GUID{0x82A74AEB, 0xAEB4, 0x465C, [8]byte{0xA0, 0x14, 0xD0, 0x97, 0xEE, 0x34, 0x6D, 0x63}}
	FOLDERID_PrintersFolder         = GUID{0x76FC4E2D, 0xD6AD, 0x4519, [8]byte{0xA6, 0x63, 0x37, 0xBD, 0x56, 0x06, 0x81, 0x85}}
	FOLDERID_SyncManagerFolder      = GUID{0x43668BF8, 0xC14E, 0x49B2, [8]byte{0x97, 0xC9, 0x74, 0x77, 0x84, 0xD7, 0x84, 0xB7}}
	FOLDERID_SyncSetupFolder        = GUID{0x0F214138, 0xB1D3, 0x4A90, [8]byte{0xBB, 0xA9, 0x27, 0xCB, 0xC0, 0xC5, 0x38, 0x9A}}
	FOLDERID_ConflictFolder         = GUID{0x4BFEFB45, 0x347D, 0x4006, [8]byte{0xA5, 0xBE, 0xAC, 0x0C, 0xB0, 0x56, 0x71, 0x92}}
	FOLDERID_SyncResultsFolder      = GUID{0x289A9A43, 0xBE44, 0x4057, [8]byte{0xA4, 0x1B, 0x58, 0x7A, 0x76, 0xD7, 0xE7, 0xF9}}
	FOLDERID_RecycleBinFolder       = GUID{0xB7534046, 0x3ECB, 0x4C18, [8]byte{0xBE, 0x4E, 0x64, 0xCD, 0x4C, 0xB7, 0xD6, 0xAC}}
	FOLDERID_ConnectionsFolder      = GUID{0x6F0CD92B, 0x2E97, 0x45D1, [8]byte{0x88, 0xFF, 0xB0, 0xD1, 0x86, 0xB8, 0xDE, 0xDD}}
	FOLDERID_Fonts                  = GUID{0xFD228CB7, 0xAE11, 0x4AE3, [8]byte{0x86, 0x4C, 0x16, 0xF3, 0x91, 0x0A, 0xB8, 0xFE}}
	FOLDERID_Desktop                = GUID{0xB4BFCC3A, 0xDB2C, 0x424C, [8]byte{0xB0, 0x29, 0x7F, 0xE9, 0x9A, 0x87, 0xC6, 0x41}}
	FOLDERID_Startup                = GUID{0xB97D20BB, 0xF46A, 0x4C97, [8]byte{0xBA, 0x10, 0x5E, 0x36, 0x08, 0x43, 0x08, 0x54}}
	FOLDERID_Programs               = GUID{0xA77F5D77, 0x2E2B, 0x44C3, [8]byte{0xA6, 0xA2, 0xAB, 0xA6, 0x01, 0x05, 0x4A, 0x51}}
	FOLDERID_StartMenu              = GUID{0x625B53C3, 0xAB48, 0x4EC1, [8]byte{0xBA, 0x1F, 0xA1, 0xEF, 0x41, 0x46, 0xFC, 0x19}}
	FOLDERID_Recent                 = GUID{0xAE50C081, 0xEBD2, 0x438A, [8]byte{0x86, 0x55, 0x8A, 0x09, 0x2E, 0x34, 0x98, 0x7A}}
	FOLDERID_SendTo                 = GUID{0x8983036C, 0x27C0, 0x404B, [8]byte{0x8F, 0x08, 0x10, 0x2D, 0x10, 0xDC, 0xFD, 0x74}}
	FOLDERID_Documents              = GUID{0xFDD39AD0, 0x238F, 0x46AF, [8]byte{0xAD, 0xB4, 0x6C, 0x85, 0x48, 0x03, 0x69, 0xC7}}
	FOLDERID_Favorites              = GUID{0x1777F761, 0x68AD, 0x4D8A, [8]byte{0x87, 0xBD, 0x30, 0xB7, 0x59, 0xFA, 0x33, 0xDD}}
	FOLDERID_NetHood                = GUID{0xC5ABBF53, 0xE17F, 0x4121, [8]byte{0x89, 0x00, 0x86, 0x62, 0x6F, 0xC2, 0xC9, 0x73}}
	FOLDERID_PrintHood              = GUID{0x9274BD8D, 0xCFD1, 0x41C3, [8]byte{0xB3, 0x5E, 0xB1, 0x3F, 0x55, 0xA7, 0x58, 0xF4}}
	FOLDERID_Templates              = GUID{0xA63293E8, 0x664E, 0x48DB, [8]byte{0xA0, 0x79, 0xDF, 0x75, 0x9E, 0x05, 0x09, 0xF7}}
	FOLDERID_CommonStartup          = GUID{0x82A5EA35, 0xD9CD, 0x46C5, [8]byte{0x96, 0x29, 0xE1, 0x5D, 0x2D, 0x71, 0x4E, 0x6E}}
	FOLDERID_CommonPrograms         = GUID{0x0139D44E, 0x6AFE, 0x49F2, [8]byte{0x86, 0x90, 0x3D, 0xAF, 0xCA, 0xE6, 0xFF, 0xB8}}
	FOLDERID_CommonStartMenu        = GUID{0xA4115719, 0xD62E, 0x491D, [8]byte{0xAA, 0x7C, 0xE7, 0x4B, 0x8B, 0xE3, 0xB0, 0x67}}
	FOLDERID_PublicDesktop          = GUID{0xC4AA340D, 0xF20F, 0x4863, [8]byte{0xAF, 0xEF, 0xF8, 0x7E, 0xF2, 0xE6, 0xBA, 0x25}}
	FOLDERID_ProgramData            = GUID{0x62AB5D82, 0xFDC1, 0x4DC3, [8]byte{0xA9, 0xDD, 0x07, 0x0D, 0x1D, 0x49, 0x5D, 0x97}}
	FOLDERID_CommonTemplates        = GUID{0xB94237E7, 0x57AC, 0x4347, [8]byte{0x91, 0x51, 0xB0, 0x8C, 0x6C, 0x32, 0xD1, 0xF7}}
	FOLDERID_PublicDocuments        = GUID{0xED4824AF, 0xDCE4, 0x45A8, [8]byte{0x81, 0xE2, 0xFC, 0x79, 0x65, 0x08, 0x36, 0x34}}
	FOLDERID_RoamingAppData         = GUID{0x3EB685DB, 0x65F9, 0x4CF6, [8]byte{0xA0, 0x3A, 0xE3, 0xEF, 0x65, 0x72, 0x9F, 0x3D}}
	FOLDERID_LocalAppData           = GUID{0xF1B32785, 0x6FBA, 0x4FCF, [8]byte{0x9D, 0x55, 0x7B, 0x8E, 0x7F, 0x15, 0x70, 0x91}}
	FOLDERID_LocalAppDataLow        = GUID{0xA520A1A4, 0x1780, 0x4FF6, [8]byte{0xBD, 0x18, 0x16, 0x73, 0x43, 0xC5, 0xAF, 0x16}}
	FOLDERID_InternetCache          = GUID{0x352481E8, 0x33BE, 0x4251, [8]byte{0xBA, 0x85, 0x60, 0x07, 0xCA, 0xED, 0xCF, 0x9D}}
	FOLDERID_Cookies                = GUID{0x2B0F765D, 0xC0E9, 0x4171, [8]byte{0x90, 0x8E, 0x08, 0xA6, 0x11, 0xB8, 0x4F, 0xF6}}
	FOLDERID_History                = GUID{0xD9DC8A3B, 0xB784, 0x432E, [8]byte{0xA7, 0x81, 0x5A, 0x11, 0x30, 0xA7, 0x59, 0x63}}
	FOLDERID_System                 = GUID{0x1AC14E77, 0x02E7, 0x4E5D, [8]byte{0xB7, 0x44, 0x2E, 0xB1, 0xAE, 0x51, 0x98, 0xB7}}
	FOLDERID_SystemX86              = GUID{0xD65231B0, 0xB2F1, 0x4857, [8]byte{0xA4, 0xCE, 0xA8, 0xE7, 0xC6, 0xEA, 0x7D, 0x27}}
	FOLDERID_Windows                = GUID{0xF38BF404, 0x1D43, 0x42F2, [8]byte{0x93, 0x05, 0x67, 0xDE, 0x0B, 0x28, 0xFC, 0x23}}
	FOLDERID_Profile                = GUID{0x5E6C858F, 0x0E22, 0x4760, [8]byte{0x9A, 0xFE, 0xEA, 0x33, 0x17, 0xB6, 0x71, 0x73}}
	FOLDERID_Pictures               = GUID{0x33E28130, 0x4E1E, 0x4676, [8]byte{0x83, 0x5A, 0x98, 0x39, 0x5C, 0x3B, 0xC3, 0xBB}}
	FOLDERID_ProgramFilesX86        = GUID{0x7C5A40EF, 0xA0FB, 0x4BFC, [8]byte{0x87, 0x4A, 0xC0, 0xF2, 0xE0, 0xB9, 0xFA, 0x8E}}
	FOLDERID_ProgramFilesCommonX86  = GUID{0xDE974D24, 0xD9C6, 0x4D3E, [8]byte{0xBF, 0x91, 0xF4, 0x45, 0x51, 0x20, 0xB9, 0x17}}
	FOLDERID_ProgramFilesX64        = GUID{0x6D809377, 0x6AF0, 0x444B, [8]byte{0x89, 0x57, 0xA3, 0x77, 0x3F, 0x02, 0x20, 0x0E}}
	FOLDERID_ProgramFilesCommonX64  = GUID{0x6365D5A7, 0x0F0D, 0x45E5, [8]byte{0x87, 0xF6, 0x0D, 0xA5, 0x6B, 0x6A, 0x4F, 0x7D}}
	FOLDERID_ProgramFiles           = GUID{0x905E63B6, 0xC1BF, 0x494E, [8]byte{0xB2, 0x9C, 0x65, 0xB7, 0x32, 0xD3, 0xD2, 0x1A}}
	FOLDERID_ProgramFilesCommon     = GUID{0xF7F1ED05, 0x9F6D, 0x47A2, [8]byte{0xAA, 0xAE, 0x29, 0xD3, 0x17, 0xC6, 0xF0, 0x66}}
	FOLDERID_UserProgramFiles       = GUID{0x5CD7AEE2, 0x2219, 0x4A67, [8]byte{0xB8, 0x5D, 0x6C, 0x9C, 0xE1, 0x56, 0x60, 0xCB}}
	FOLDERID_UserProgramFilesCommon = GUID{0xBCBD3057, 0xCA5C, 0x4622, [8]byte{0xB4, 0x2D, 0xBC, 0x56, 0xDB, 0x0A, 0xE5, 0x16}}
	FOLDERID_AdminTools             = GUID{0x724EF170, 0xA42D, 0x4FEF, [8]byte{0x9F, 0x26, 0xB6, 0x0E, 0x84, 0x6F, 0xBA, 0x4F}}
	FOLDERID_CommonAdminTools       = GUID{0xD0384E7D, 0xBAC3, 0x4797, [8]byte{0x8F, 0x14, 0xCB, 0xA2, 0x29, 0xB3, 0x92, 0xB5}}
	FOLDERID_Music                  = GUID{0x4BD8D571, 0x6D19, 0x48D3, [8]byte{0xBE, 0x97, 0x42, 0x22, 0x20, 0x08, 0x0E, 0x43}}
	FOLDERID_Videos                 = GUID{0x18989B1D, 0x99B5, 0x455B, [8]byte{0x84, 0x1C, 0xAB, 0x7C, 0x74, 0xE4, 0xDD, 0xFC}}
	FOLDERID_Ringtones              = GUID{0xC870044B, 0xF49E, 0x4126, [8]byte{0xA9, 0xC3, 0xB5, 0x2A, 0x1F, 0xF4, 0x11, 0xE8}}
	FOLDERID_PublicPictures         = GUID{0xB6BEFB86, 0x6907, 0x413C, [8]byte{0x9A, 0xF7, 0x4F, 0xC2, 0xAB, 0xF0, 0x7C, 0xC5}}
	FOLDERID_PublicMusic            = GUID{0x3214FAB5, 0x9757, 0x4298, [8]byte{0xBB, 0x61, 0x92, 0xA9, 0xDE, 0xAA, 0x44, 0xFF}}
	FOLDERID_PublicVideos           = GUID{0x2400183A, 0x6185, 0x49FB, [8]byte{0xA2, 0xD8, 0x4A, 0x39, 0x2A, 0x60, 0x2B, 0xA3}}
	FOLDERID_PublicRingtones        = GUID{0xE555AB60, 0x153B, 0x4D17, [8]byte{0x9F, 0x04, 0xA5, 0xFE, 0x99, 0xFC, 0x15, 0xEC}}
	FOLDERID_ResourceDir            = GUID{0x8AD10C31, 0x2ADB, 0x4296, [8]byte{0xA8, 0xF7, 0xE4, 0x70, 0x12, 0x32, 0xC9, 0x72}}
	FOLDERID_LocalizedResourcesDir  = GUID{0x2A00375E, 0x224C, 0x49DE, [8]byte{0xB8, 0xD1, 0x44, 0x0D, 0xF7, 0xEF, 0x3D, 0xDC}}
	FOLDERID_CommonOEMLinks         = GUID{0xC1BAE2D0, 0x10DF, 0x4334, [8]byte{0xBE, 0xDD, 0x7A, 0xA2, 0x0B, 0x22, 0x7A, 0x9D}}
	FOLDERID_CDBurning              = GUID{0x9E52AB10, 0xF80D, 0x49DF, [8]byte{0xAC, 0xB8, 0x43, 0x30, 0xF5, 0x68, 0x78, 0x55}}
	FOLDERID_UserProfiles           = GUID{0x0762D272, 0xC50A, 0x4BB0, [8]byte{0xA3, 0x82, 0x69, 0x7D, 0xCD, 0x72, 0x9B, 0x80}}
	FOLDERID_Playlists              = GUID{0xDE92C1C7, 0x837F, 0x4F69, [8]byte{0xA3, 0xBB, 0x86, 0xE6, 0x31, 0x20, 0x4A, 0x23}}
	FOLDERID_SamplePlaylists        = GUID{0x15CA69B3, 0x30EE, 0x49C1, [8]byte{0xAC, 0xE1, 0x6B, 0x5E, 0xC3, 0x72, 0xAF, 0xB5}}
	FOLDERID_SampleMusic            = GUID{0xB250C668, 0xF57D, 0x4EE1, [8]byte{0xA6, 0x3C, 0x29, 0x0E, 0xE7, 0xD1, 0xAA, 0x1F}}
	FOLDERID_SamplePictures         = GUID{0xC4900540, 0x2379, 0x4C75, [8]byte{0x84, 0x4B, 0x64, 0xE6, 0xFA, 0xF8, 0x71, 0x6B}}
	FOLDERID_SampleVideos           = GUID{0x859EAD94, 0x2E85, 0x48AD, [8]byte{0xA7, 0x1A, 0x09, 0x69, 0xCB, 0x56, 0xA6, 0xCD}}
	FOLDERID_PhotoAlbums            = GUID{0x69D2CF90, 0xFC33, 0x4FB7, [8]byte{0x9A, 0x0C, 0xEB, 0xB0, 0xF0, 0xFC, 0xB4, 0x3C}}
	FOLDERID_Public                 = GUID{0xDFDF76A2, 0xC82A, 0x4D63, [8]byte{0x90, 0x6A, 0x56, 0x44, 0xAC, 0x45, 0x73, 0x85}}
	FOLDERID_ChangeRemovePrograms   = GUID{0xDF7266AC, 0x9274, 0x4867, [8]byte{0x8D, 0x55, 0x3B, 0xD6, 0x61, 0xDE, 0x87, 0x2D}}
	FOLDERID_AppUpdates             = GUID{0xA305CE99, 0xF527, 0x492B, [8]byte{0x8B, 0x1A, 0x7E, 0x76, 0xFA, 0x98, 0xD6, 0xE4}}
	FOLDERID_AddNewPrograms         = GUID{0xDE61D971, 0x5EBC, 0x4F02, [8]byte{0xA3, 0xA9, 0x6C, 0x82, 0x89, 0x5E, 0x5C, 0x04}}
	FOLDERID_Downloads              = GUID{0x374DE290, 0x123F, 0x4565, [8]byte{0x91, 0x64, 0x39, 0xC4, 0x92, 0x5E, 0x46, 0x7B}}
	FOLDERID_PublicDownloads        = GUID{0x4D644C9B, 0x1FB8, 0x4F30, [8]byte{0x9B, 0x45, 0xF6, 0x70, 0x23, 0x5F, 0x79, 0xC0}}
	FOLDERID_SavedSearches          = GUID{0x7D1D3A04, 0xDEBB, 0x4155, [8]byte{0x95, 0xCF, 0x2F, 0x29, 0xDA, 0x29, 0x20, 0xDA}}
	FOLDERID_QuickLaunch            = GUID{0x52A4F021, 0x7B75, 0x48A9, [8]byte{0x9F, 0x6B, 0x4B, 0x87, 0xA2, 0x10, 0xBC, 0x8F}}
	FOLDERID_Contacts               = GUID{0x56784854, 0xC6CB, 0x462B, [8]byte{0x81, 0x69, 0x88, 0xE3, 0x50, 0xAC, 0xB8, 0x82}}
	FOLDERID_SidebarParts           = GUID{0xA75D362E, 0x50FC, 0x4FB7, [8]byte{0xAC, 0x2C, 0xA8, 0xBE, 0xAA, 0x31, 0x44, 0x93}}
	FOLDERID_SidebarDefaultParts    = GUID{0x7B396E54, 0x9EC5, 0x4300, [8]byte{0xBE, 0x0A, 0x24, 0x82, 0xEB, 0xAE, 0x1A, 0x26}}
	FOLDERID_PublicGameTasks        = GUID{0xDEBF2536, 0xE1A8, 0x4C59, [8]byte{0xB6, 0xA2, 0x41, 0x45, 0x86, 0x47, 0x6A, 0xEA}}
	FOLDERID_GameTasks              = GUID{0x054FAE61, 0x4DD8, 0x4787, [8]byte{0x80, 0xB6, 0x09, 0x02, 0x20, 0xC4, 0xB7, 0x00}}
	FOLDERID_SavedGames             = GUID{0x4C5C32FF, 0xBB9D, 0x43B0, [8]byte{0xB5, 0xB4, 0x2D, 0x72, 0xE5, 0x4E, 0xAA, 0xA4}}
	FOLDERID_Games                  = GUID{0xCAC52C1A, 0xB53D, 0x4EDC, [8]byte{0x92, 0xD7, 0x6B, 0x2E, 0x8A, 0xC1, 0x94, 0x34}}
	FOLDERID_SEARCH_MAPI            = GUID{0x98EC0E18, 0x2098, 0x4D44, [8]byte{0x86, 0x44, 0x66, 0x97, 0x93, 0x15, 0xA2, 0x81}}
	FOLDERID_SEARCH_CSC             = GUID{0xEE32E446, 0x31CA, 0x4ABA, [8]byte{0x81, 0x4F, 0xA5, 0xEB, 0xD2, 0xFD, 0x6D, 0x5E}}
	FOLDERID_Links                  = GUID{0xBFB9D5E0, 0xC6A9, 0x404C, [8]byte{0xB2, 0xB2, 0xAE, 0x6D, 0xB6, 0xAF, 0x49, 0x68}}
	FOLDERID_UserLinks              = GUID{0xF3CE0F7C, 0x4901, 0x4ACC, [8]byte{0x86, 0x48, 0xD5, 0xD4, 0x4B, 0x04, 0xEF, 0x8F}}
	FOLDERID_UserLibraries          = GUID{0xA302545D, 0xDEFF, 0x464B, [8]byte{0xAB, 0xE8, 0x61, 0xC8, 0x64, 0x8D, 0x93, 0x9B}}
	FOLDERID_SearchHome             = GUID{0x190337D1, 0xB8CA, 0x4121, [8]byte{0xA6, 0x39, 0x6D, 0x47, 0x2D, 0x16, 0x97, 0x2A}}
	FOLDERID_OriginalImages         = GUID{0x2C36C0AA, 0x5812, 0x4B87, [8]byte{0xBF, 0xD0, 0x4C, 0xD0, 0xDF, 0xB1, 0x9B, 0x39}}
	FOLDERID_DocumentsLibrary       = GUID{0x7B0DB17D, 0x9CD2, 0x4A93, [8]byte{0x97, 0x33, 0x46, 0xCC, 0x89, 0x02, 0x2E, 0x7C}}
	FOLDERID_MusicLibrary           = GUID{0x2112AB0A, 0xC86A, 0x4FFE, [8]byte{0xA3, 0x68, 0x0D, 0xE9, 0x6E, 0x47, 0x01, 0x2E}}
	FOLDERID_PicturesLibrary        = GUID{0xA990AE9F, 0xA03B, 0x4E80, [8]byte{0x94, 0xBC, 0x99, 0x12, 0xD7, 0x50, 0x41, 0x04}}
	FOLDERID_VideosLibrary          = GUID{0x491E922F, 0x5643, 0x4AF4, [8]byte{0xA7, 0xEB, 0x4E, 0x7A, 0x13, 0x8D, 0x81, 0x74}}
	FOLDERID_RecordedTVLibrary      = GUID{0x1A6FDBA2, 0xF42D, 0x4358, [8]byte{0xA7, 0x98, 0xB7, 0x4D, 0x74, 0x59, 0x26, 0xC5}}
	FOLDERID_HomeGroup              = GUID{0x52528A6B, 0xB9E3, 0x4ADD, [8]byte{0xB6, 0x0D, 0x58, 0x8C, 0x2D, 0xBA, 0x84, 0x2D}}
	FOLDERID_DeviceMetadataStore    = GUID{0x5CE4A5E9, 0xE4EB, 0x479D, [8]byte{0xB8, 0x9F, 0x13, 0x0C, 0x02, 0x88, 0x61, 0x55}}
	FOLDERID_Libraries              = GUID{0x1B3EA5DC, 0xB587, 0x4786, [8]byte{0xB4, 0xEF, 0xBD, 0x1D, 0xC3, 0x32, 0xAE, 0xAE}}
	FOLDERID_PublicLibraries        = GUID{0x48DAF80B, 0xE6CF, 0x4F4E, [8]byte{0xB8, 0x00, 0x0E, 0x69, 0xD8, 0x4E, 0xE3, 0x84}}
	FOLDERID_UserPinned             = GUID{0x9E3995AB, 0x1F9C, 0x4F13, [8]byte{0xB8, 0x27, 0x48, 0xB2, 0x4B, 0x6C, 0x71, 0x74}}
	FOLDERID_ImplicitAppShortcuts   = GUID{0xBCB5256F, 0x79F6, 0x4CEE, [8]byte{0xB7, 0x25, 0xDC, 0x34, 0xE4, 0x02, 0xFD, 0x46}}
)
View Source
var (
	IID_INetFwRule     = GUID{0xAF230D27, 0xBABA, 0x4E42, [8]byte{0xAC, 0xED, 0xF5, 0x24, 0xF2, 0x2C, 0xFC, 0xE2}}
	IID_INetFwRules    = GUID{0x9C4C6277, 0x5027, 0x441E, [8]byte{0xAF, 0xAE, 0xCA, 0x1F, 0x54, 0x2D, 0xA0, 0x09}}
	IID_INetFwPolicy2  = GUID{0x98325047, 0xC671, 0x4174, [8]byte{0x8D, 0x81, 0xDE, 0xFC, 0xD3, 0xF0, 0x31, 0x86}}
	IID_INetFwMgr      = GUID{0xF7898AF5, 0xCAC4, 0x4632, [8]byte{0xA2, 0xEC, 0xDA, 0x06, 0xE5, 0x11, 0x1A, 0xF2}}
	CLSID_NetFwRule    = GUID{0x2C5BC43E, 0x3369, 0x4C33, [8]byte{0xAB, 0x0C, 0xBE, 0x94, 0x69, 0x67, 0x7A, 0xF4}}
	CLSID_NetFwPolicy2 = GUID{0xE2B3C97F, 0x6AE1, 0x41AC, [8]byte{0x81, 0x7A, 0xF6, 0xF9, 0x21, 0x66, 0xD7, 0xDD}}
	CLSID_NetFwMgr     = GUID{0x304CE942, 0x6E39, 0x40D8, [8]byte{0x94, 0x3A, 0xB9, 0x13, 0xC4, 0x0C, 0x9C, 0xD4}}
)
View Source
var (
	IID_IDispatch    = GUID{0x0020400, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
	IID_IEnumVARIANT = GUID{0x0020404, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
)
View Source
var (
	LANG_SYSTEM_DEFAULT = MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT)
	LANG_USER_DEFAULT   = MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)
)
View Source
var (
	SECURITY_NULL_SID_AUTHORITY        = SID_IDENTIFIER_AUTHORITY{[6]byte{0, 0, 0, 0, 0, 0}}
	SECURITY_WORLD_SID_AUTHORITY       = SID_IDENTIFIER_AUTHORITY{[6]byte{0, 0, 0, 0, 0, 1}}
	SECURITY_LOCAL_SID_AUTHORITY       = SID_IDENTIFIER_AUTHORITY{[6]byte{0, 0, 0, 0, 0, 2}}
	SECURITY_CREATOR_SID_AUTHORITY     = SID_IDENTIFIER_AUTHORITY{[6]byte{0, 0, 0, 0, 0, 3}}
	SECURITY_NT_AUTHORITY              = SID_IDENTIFIER_AUTHORITY{[6]byte{0, 0, 0, 0, 0, 5}}
	SECURITY_MANDATORY_LABEL_AUTHORITY = SID_IDENTIFIER_AUTHORITY{[6]byte{0, 0, 0, 0, 0, 16}}
)
View Source
var (
	RT_CURSOR       = MAKEINTRESOURCE(1)
	RT_BITMAP       = MAKEINTRESOURCE(2)
	RT_ICON         = MAKEINTRESOURCE(3)
	RT_MENU         = MAKEINTRESOURCE(4)
	RT_DIALOG       = MAKEINTRESOURCE(5)
	RT_STRING       = MAKEINTRESOURCE(6)
	RT_FONTDIR      = MAKEINTRESOURCE(7)
	RT_FONT         = MAKEINTRESOURCE(8)
	RT_ACCELERATOR  = MAKEINTRESOURCE(9)
	RT_RCDATA       = MAKEINTRESOURCE(10)
	RT_MESSAGETABLE = MAKEINTRESOURCE(11)
	RT_GROUP_CURSOR = MAKEINTRESOURCE(12)
	RT_GROUP_ICON   = MAKEINTRESOURCE(14)
	RT_VERSION      = MAKEINTRESOURCE(16)
	RT_DLGINCLUDE   = MAKEINTRESOURCE(17)
	RT_PLUGPLAY     = MAKEINTRESOURCE(19)
	RT_VXD          = MAKEINTRESOURCE(20)
	RT_ANICURSOR    = MAKEINTRESOURCE(21)
	RT_ANIICON      = MAKEINTRESOURCE(22)
	RT_HTML         = MAKEINTRESOURCE(23)
	RT_MANIFEST     = MAKEINTRESOURCE(24)
)
View Source
var (
	CREATEPROCESS_MANIFEST_RESOURCE_ID                 = MAKEINTRESOURCE(1)
	ISOLATIONAWARE_MANIFEST_RESOURCE_ID                = MAKEINTRESOURCE(2)
	ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(3)
)
View Source
var FWPM_CONDITION_ALE_APP_ID = windows.GUID{
	Data1: 0xd78e1e87,
	Data2: 0x8644,
	Data3: 0x4ea5,
	Data4: [8]byte{0x94, 0x37, 0xd8, 0x09, 0xec, 0xef, 0xc9, 0x71},
}
View Source
var FWPM_CONDITION_IP_PROTOCOL = windows.GUID{
	Data1: 0x3971ef2b,
	Data2: 0x623e,
	Data3: 0x4f9a,
	Data4: [8]byte{0x8c, 0xb1, 0x6e, 0x79, 0xb8, 0x06, 0xb9, 0xa7},
}
View Source
var FWPM_CONDITION_IP_REMOTE_PORT = windows.GUID{
	Data1: 0xc35a604d,
	Data2: 0xd22b,
	Data3: 0x4e1a,
	Data4: [8]byte{0x91, 0xb4, 0x68, 0xf6, 0x74, 0xee, 0x67, 0x4b},
}
View Source
var FWPM_CONDITION_LOCAL_INTERFACE_INDEX = windows.GUID{
	Data1: 0x667fd755,
	Data2: 0xd695,
	Data3: 0x434a,
	Data4: [8]byte{0x8a, 0xf5, 0xd3, 0x83, 0x5a, 0x12, 0x59, 0xbc},
}
View Source
var FWPM_LAYER_ALE_AUTH_CONNECT_V4 = windows.GUID{
	Data1: 0xc38d57d1,
	Data2: 0x05a7,
	Data3: 0x4c33,
	Data4: [8]byte{0x90, 0x4f, 0x7f, 0xbc, 0xee, 0xe6, 0x0e, 0x82},
}
View Source
var FWPM_LAYER_ALE_AUTH_CONNECT_V6 = windows.GUID{
	Data1: 0x4a72393b,
	Data2: 0x319f,
	Data3: 0x44bc,
	Data4: [8]byte{0x84, 0xc3, 0xba, 0x54, 0xdc, 0xb3, 0xb6, 0xb4},
}
View Source
var (
	IID_IUnknown = GUID{0x00000000, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
)
View Source
var (
	IOCTL_DISK_PERFORMANCE = CTL_CODE(FILE_DEVICE_DISK, 0x0008, METHOD_BUFFERED, FILE_ANY_ACCESS)
)

Functions

func AdjustTokenPrivileges

func AdjustTokenPrivileges(tokenHandle syscall.Handle, disableAllPrivileges bool, newState *TOKEN_PRIVILEGES, bufferLength uint32, previousState *TOKEN_PRIVILEGES, returnLength *uint32) error

func AllocateAndInitializeSid

func AllocateAndInitializeSid(identifierAuthority *SID_IDENTIFIER_AUTHORITY, subAuthorityCount byte, subAuthority0 uint32, subAuthority1 uint32, subAuthority2 uint32, subAuthority3 uint32, subAuthority4 uint32, subAuthority5 uint32, subAuthority6 uint32, subAuthority7 uint32, sid **SID) error

func AssignProcessToJobObject

func AssignProcessToJobObject(job syscall.Handle, process syscall.Handle) error

func BeginUpdateResource

func BeginUpdateResource(fileName *uint16, deleteExistingResources bool) (syscall.Handle, error)

func BlockInput

func BlockInput(blockIt bool) error

func CTL_CODE

func CTL_CODE(deviceType uint32, function uint32, method uint32, access uint32) uint32

func ChangeServiceConfig

func ChangeServiceConfig(service syscall.Handle, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16, displayName *uint16) error

func ChangeServiceConfig2

func ChangeServiceConfig2(service syscall.Handle, infoLevel uint32, info *byte) error

func CheckTokenMembership

func CheckTokenMembership(tokenHandle syscall.Handle, sidToCheck *SID, isMember *bool) error

func CloseDesktop

func CloseDesktop(desktop syscall.Handle) error

func CloseHandle

func CloseHandle(object syscall.Handle) error

func CloseServiceHandle

func CloseServiceHandle(scObject syscall.Handle) error

func CoCreateInstance

func CoCreateInstance(clsid *GUID, outer *IUnknown, clsContext uint32, iid *GUID, object *uintptr) uint32

func CoInitializeEx

func CoInitializeEx(reserved *byte, flags uint32) uint32

func CoTaskMemFree

func CoTaskMemFree(mem *byte)

func CoUninitialize

func CoUninitialize()

func CommandLineToArgvW

func CommandLineToArgvW(cmdLine *uint16, numArgs *int32) (**uint16, error)

func ControlService

func ControlService(service syscall.Handle, control uint32, serviceStatus *SERVICE_STATUS) error

func ConvertSidToStringSid

func ConvertSidToStringSid(sid *SID, stringSid **uint16) error

func CopyFile

func CopyFile(existingFileName *uint16, newFileName *uint16, failIfExists bool) error

func CopySid

func CopySid(destinationSidLength uint32, destinationSid *SID, sourceSid *SID) error

func CreateDesktop

func CreateDesktop(desktop *uint16, device *uint16, devmode *DEVMODE, flags uint32, desiredAccess uint32, securityAttributes *SECURITY_ATTRIBUTES) (syscall.Handle, error)

func CreateEnvironmentBlock

func CreateEnvironmentBlock(envInfo *syscall.Handle, userToken syscall.Handle) error

func CreateEvent

func CreateEvent(eventAttributes *SECURITY_ATTRIBUTES, manualReset bool, initialState bool, name *uint16) (syscall.Handle, error)

func CreateFile

func CreateFile(fileName *uint16, desiredAccess uint32, shareMode uint32, securityAttributes *SECURITY_ATTRIBUTES, creationDisposition uint32, flagsAndAttributes uint32, templateFile syscall.Handle) (syscall.Handle, error)

func CreateIconFromResourceEx

func CreateIconFromResourceEx(pbIconBits *byte, cbIconBits int, fIcon uint32, dwVersion int, cxDesired int32, cyDesired int32, flags uint32) error

CreateIconFromResourceEx fIcon contains 1 or 0

func CreateIpForwardEntry

func CreateIpForwardEntry(route *MIB_IPFORWARDROW) uint32

func CreateJobObject

func CreateJobObject(jobAttributes *SECURITY_ATTRIBUTES, name *uint16) (syscall.Handle, error)

func CreateMutex

func CreateMutex(mutexAttributes *SECURITY_ATTRIBUTES, initialOwner bool, name *uint16) (syscall.Handle, error)

func CreateProcess

func CreateProcess(applicationName *uint16, commandLine *uint16, processAttributes *SECURITY_ATTRIBUTES, threadAttributes *SECURITY_ATTRIBUTES, inheritHandles bool, creationFlags uint32, environment *byte, currentDirectory *uint16, startupInfo *STARTUPINFO, processInformation *PROCESS_INFORMATION) error

func CreateProcessAsUser

func CreateProcessAsUser(userToken, envInfo syscall.Handle, startupInfo *windows.StartupInfo, processInfo *windows.ProcessInformation, appPath, cmdLine, workDir string) error

func CreateProcessWithLogon added in v0.0.8

func CreateProcessWithLogon(username, domain, password, cmdLine, workDir string,
	envInfo syscall.Handle, startupInfo *windows.StartupInfo, processInfo *windows.ProcessInformation) error

func CreateService

func CreateService(scManager syscall.Handle, serviceName *uint16, databaseName *uint16, desiredAccess uint32, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (syscall.Handle, error)
func CreateSymbolicLink(symlinkFileName *uint16, targetFileName *uint16, flags uint32) error

func CreateToolhelp32Snapshot

func CreateToolhelp32Snapshot(flags uint32, processID uint32) (syscall.Handle, error)

func CreateWellKnownSid

func CreateWellKnownSid(wellKnownSidType int32, domainSid *SID, sid *SID, cbSid *uint32) error

func DeleteCriticalSection

func DeleteCriticalSection(criticalSection *CRITICAL_SECTION)

func DeleteFile

func DeleteFile(fileName *uint16) error

func DeleteIpForwardEntry

func DeleteIpForwardEntry(route *MIB_IPFORWARDROW) uint32

func DeleteService

func DeleteService(service syscall.Handle) error

func DeregisterEventSource

func DeregisterEventSource(eventLog syscall.Handle) error

func DeviceIoControl

func DeviceIoControl(device syscall.Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *syscall.Overlapped) error

func DsBind

func DsBind(domainControllerName *uint16, dnsDomainName *uint16, hDS *syscall.Handle) error

func DsFreeSpnArray

func DsFreeSpnArray(cSpn uint32, spn **uint16)

func DsGetSpn

func DsGetSpn(serviceType int32, serviceClass *uint16, serviceName *uint16, instancePort uint16, cInstanceNames uint16, instanceNames **uint16, instancePorts *uint16, cSpn *uint32, spn ***uint16) error

func DsMakeSpn

func DsMakeSpn(serviceClass *uint16, serviceName *uint16, instanceName *uint16, instancePort uint16, referrer *uint16, spnLength *uint32, spn *uint16) error

func DsServerRegisterSpn

func DsServerRegisterSpn(operation int32, serviceClass *uint16, userObjectDN *uint16) error

func DsUnBind

func DsUnBind(hDS *syscall.Handle) error

func DsWriteAccountSpn

func DsWriteAccountSpn(hDS syscall.Handle, operation int32, account *uint16, cSpn uint32, spn *uint16) error

func DuplicateToken

func DuplicateToken(userToken syscall.Handle, newToken *syscall.Handle) error

func EndUpdateResource

func EndUpdateResource(update syscall.Handle, discard bool) error

func EnterCriticalSection

func EnterCriticalSection(criticalSection *CRITICAL_SECTION)

func EnumDesktops

func EnumDesktops(winsta syscall.Handle, fnEnum DESKTOPENUMPROC, param uintptr) error

func EnumDisplayDevices

func EnumDisplayDevices(device *uint16, devNum uint32, displayDevice *DISPLAY_DEVICE, flags uint32) bool

func EnumDisplayMonitors

func EnumDisplayMonitors(hdc syscall.Handle, clip *RECT, fnEnum MONITORENUMPROC, data uintptr) bool

func EnumServicesStatus

func EnumServicesStatus(scManager syscall.Handle, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32) error

func EqualSid

func EqualSid(sid1 *SID, sid2 *SID) bool

func ExitWindowsEx

func ExitWindowsEx(flags uint32, reason uint32) error

func ExpandEnvironmentStrings

func ExpandEnvironmentStrings(src *uint16, dst *uint16, size uint32) (uint32, error)

func ExtractIconExW

func ExtractIconExW(lpszFile *uint16, nIconIndex int, phiconLarge *syscall.Handle, phiconSmall *syscall.Handle, nIcons int) error

func FAILED

func FAILED(hr uint32) bool

func FindClose

func FindClose(findFile syscall.Handle) error

func FindFirstFile

func FindFirstFile(fileName *uint16, findFileData *WIN32_FIND_DATA) (syscall.Handle, error)

func FindNextFile

func FindNextFile(findFile syscall.Handle, findFileData *WIN32_FIND_DATA) error

func FormatMessage

func FormatMessage(flags uint32, source uintptr, messageId uint32, languageId uint32, buffer *uint16, size uint32, arguments *byte) (uint32, error)

func FreeEnvironmentStrings

func FreeEnvironmentStrings(environmentBlock *uint16) error

func FreeLibrary

func FreeLibrary(module syscall.Handle) error

func FreeSid

func FreeSid(sid *SID)

func GenerateConsoleCtrlEvent

func GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupId uint32) error

func GetBestRoute

func GetBestRoute(destAddr, sourceAddr uint32, bestRoute *MIB_IPFORWARDROW) int

func GetCompressedFileSize

func GetCompressedFileSize(fileName *uint16, fileSizeHigh *uint32) (uint32, error)

func GetComputerName

func GetComputerName(buffer *uint16, size *uint32) error

func GetComputerNameEx

func GetComputerNameEx(nameType uint32, buffer *uint16, size *uint32) error

func GetConsoleMode

func GetConsoleMode(consoleHandle syscall.Handle, mode *uint32) error

func GetCurrentProcess

func GetCurrentProcess() syscall.Handle

func GetCurrentProcessId

func GetCurrentProcessId() uint32

func GetCurrentThread

func GetCurrentThread() syscall.Handle

func GetDiskFreeSpace

func GetDiskFreeSpace(rootPathName *uint16, sectorsPerCluster *uint32, bytesPerSector *uint32, numberOfFreeClusters *uint32, totalNumberOfClusters *uint32) error

func GetDiskFreeSpaceEx

func GetDiskFreeSpaceEx(directoryName *uint16, freeBytesAvailable *uint64, totalNumberOfBytes *uint64, totalNumberOfFreeBytes *uint64) error

func GetDriveType

func GetDriveType(rootPathName *uint16) uint32

func GetEnvironmentStrings

func GetEnvironmentStrings() (*uint16, error)

func GetEnvironmentVariable

func GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (uint32, error)

func GetExtendedTcpTable

func GetExtendedTcpTable(tcpTable uintptr, size *uint32, order int32, af uint32, tableClass TCP_TABLE_CLASS) int

func GetExtendedUdpTable

func GetExtendedUdpTable(udpTable uintptr, size *uint32, order int32, af uint32, tableClass UDP_TABLE_CLASS) int

func GetFileAttributes

func GetFileAttributes(fileName *uint16) (uint32, error)

func GetFileSecurity

func GetFileSecurity(fileName *uint16, requestedInformation uint32, securityDescriptor *byte, length uint32, lengthNeeded *uint32) error

func GetFileSize

func GetFileSize(file syscall.Handle, fileSizeHigh *uint32) (uint32, error)

func GetFileVersionInfo

func GetFileVersionInfo(filename *uint16, handle uint32, len uint32, data *byte) error

func GetFileVersionInfoSize

func GetFileVersionInfoSize(filename *uint16, handle *uint32) (uint32, error)

func GetFinalPathNameByHandle

func GetFinalPathNameByHandle(handle syscall.Handle, filepath *uint16, size uint32, flags uint32) (uint32, error)

func GetForegroundWindow

func GetForegroundWindow() syscall.Handle

func GetIconInfo

func GetIconInfo(icon syscall.Handle, pinfo uintptr) error

func GetIfTable

func GetIfTable(table *MIB_IFTABLE, size *uint32, order int32) int

func GetInterfaceInfo

func GetInterfaceInfo(ifTable *IP_INTERFACE_INFO, outBufLen *uint32) int

func GetIpForwardTable

func GetIpForwardTable(table *MIB_IPFORWARDTABLE, size *uint32, order int32) int

func GetLastInputInfo

func GetLastInputInfo(lii *LASTINPUTINFO) bool

func GetLengthSid

func GetLengthSid(sid *SID) uint32

func GetModuleFileName

func GetModuleFileName(module syscall.Handle, filename *uint16, size uint32) (uint32, error)

func GetProcessTimes

func GetProcessTimes(hProcess syscall.Handle, creationTime, exitTime, kernelTime, userTime *FILETIME) error

func GetProcessWindowStation

func GetProcessWindowStation() syscall.Handle

func GetSecurityDescriptorOwner

func GetSecurityDescriptorOwner(securityDescriptor *byte, owner **SID, ownerDefaulted *bool) error

func GetShellWindow

func GetShellWindow() syscall.Handle

func GetStdHandle

func GetStdHandle(stdHandle uint32) (syscall.Handle, error)

func GetSystemDirectory

func GetSystemDirectory(buffer *uint16, size uint32) (uint32, error)

func GetSystemInfo

func GetSystemInfo(systemInfo *SYSTEM_INFO)

func GetSystemMetrics

func GetSystemMetrics(index int32) int

func GetSystemTimeAsFileTime

func GetSystemTimeAsFileTime(systemTimeAsFileTime *FILETIME)

func GetSystemTimes

func GetSystemTimes(idleTime, kernelTime, userTime *FILETIME) error

func GetSystemWindowsDirectory

func GetSystemWindowsDirectory(buffer *uint16, size uint32) (uint32, error)

func GetSystemWow64Directory

func GetSystemWow64Directory(buffer *uint16, size uint32) (uint32, error)

func GetTcpStatistics

func GetTcpStatistics(statistics *MIB_TCPSTATS) int

func GetTcpTable

func GetTcpTable(tcpTable *MIB_TCPTABLE, size *uint32, order bool) error

func GetTempFileName

func GetTempFileName(pathName *uint16, prefixString *uint16, unique uint32, tempFileName *uint16) (uint32, error)

func GetTempPath

func GetTempPath(bufferLength uint32, buffer *uint16) (uint32, error)

func GetTickCount

func GetTickCount() uint32

func GetTickCount64

func GetTickCount64() uint64

func GetTokenInformation

func GetTokenInformation(tokenHandle syscall.Handle, tokenInformationClass int32, tokenInformation *byte, tokenInformationLength uint32, returnLength *uint32) error

func GetUserObjectInformation

func GetUserObjectInformation(obj syscall.Handle, index int32, info uintptr, len uint32, lengthNeeded *uint32) error

func GetVersionEx

func GetVersionEx(osvi *OSVERSIONINFOEX) error

func GetVolumeInformation

func GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volumeNameSize uint32, volumeSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) error

func GetVolumeNameForVolumeMountPoint

func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferLength uint32) error

func GetVolumePathName

func GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength uint32) error

func GetWindowText

func GetWindowText(hwnd syscall.Handle, buffer *uint16, maxCount int32) (int32, error)

func GetWindowTextLength

func GetWindowTextLength(hwnd syscall.Handle) (int32, error)

func GetWindowThreadProcessId

func GetWindowThreadProcessId(hwnd syscall.Handle, processID *uint32) (uint32, error)

func GetWindowsDirectory

func GetWindowsDirectory(buffer *uint16, size uint32) (uint32, error)

func GlobalMemoryStatusEx

func GlobalMemoryStatusEx(buffer *MEMORYSTATUSEX) error

func HIWORD

func HIWORD(value uint32) uint16

func HRESULT_CODE

func HRESULT_CODE(hr uint32) uint16

func HRESULT_FACILITY

func HRESULT_FACILITY(hr uint32) uint16

func HRESULT_FROM_WIN32

func HRESULT_FROM_WIN32(x syscall.Errno) uint32

func HRESULT_SEVERITY

func HRESULT_SEVERITY(hr uint32) uint32

func HttpOpenRequest

func HttpOpenRequest(connect syscall.Handle, verb *uint16, objectName *uint16, version *uint16, referer *uint16, acceptTypes **uint16, flags uint32, context uintptr) (syscall.Handle, error)

func HttpQueryInfo

func HttpQueryInfo(request syscall.Handle, infoLevel uint32, buffer *byte, bufferLength *uint32, index *uint32) error

func HttpSendRequest

func HttpSendRequest(request syscall.Handle, headers *uint16, headersLength uint32, optional *byte, optionalLength uint32) error

func ImpersonateSelf

func ImpersonateSelf(impersonationLevel int32) error

func InetNtop

func InetNtop(family int32, addr *byte, stringBuf *uint16, stringBufSize uintptr) (*uint16, error)

func InitializeCriticalSection

func InitializeCriticalSection(criticalSection *CRITICAL_SECTION)

func InitializeSecurityDescriptor

func InitializeSecurityDescriptor(securityDescriptor *byte, revision uint32) error

func InitiateShutdown

func InitiateShutdown(machineName *uint16, message *uint16, gracePriod uint32, shutdownFlags uint32, reason uint32) error

func InitiateSystemShutdown

func InitiateSystemShutdown(machineName *uint16, message *uint16, timeout uint32, forceAppsClosed bool, rebootAfterShutdown bool) error

func InternetCloseHandle

func InternetCloseHandle(internet syscall.Handle) error

func InternetConnect

func InternetConnect(internet syscall.Handle, serverName *uint16, serverPort uint16, username *uint16, password *uint16, service uint32, flags uint32, context uintptr) (syscall.Handle, error)

func InternetOpen

func InternetOpen(agent *uint16, accessType uint32, proxyName *uint16, proxyBypass *uint16, flags uint32) (syscall.Handle, error)

func InternetOpenUrl

func InternetOpenUrl(internet syscall.Handle, url *uint16, headers *uint16, headersLength uint32, flags uint32, context uintptr) (syscall.Handle, error)

func InternetQueryDataAvailable

func InternetQueryDataAvailable(file syscall.Handle, numberOfBytesAvailable *uint32, flags uint32, context uintptr) error

func InternetReadFile

func InternetReadFile(file syscall.Handle, buffer *byte, numberOfBytesToRead uint32, numberOfBytesRead *uint32) error

func IsProcessInJob

func IsProcessInJob(processHandle syscall.Handle, jobHandle syscall.Handle, result *bool) error

func LANGIDFROMLCID

func LANGIDFROMLCID(lcid uint32) uint16

func LOWORD

func LOWORD(value uint32) uint16

func LeaveCriticalSection

func LeaveCriticalSection(criticalSection *CRITICAL_SECTION)

func LoadLibrary

func LoadLibrary(fileName *uint16) (syscall.Handle, error)

func LocalFree

func LocalFree(mem syscall.Handle) (syscall.Handle, error)

func LocaleNameToLCID

func LocaleNameToLCID(name *uint16, flags uint32) (uint32, error)

func LockWorkStation

func LockWorkStation() error

func LookupAccountName

func LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, cbSid *uint32, referencedDomainName *uint16, cchReferencedDomainName *uint32, use *int32) error

func LookupPrivilegeValue

func LookupPrivilegeValue(systemName *uint16, name *uint16, luid *LUID) error

func LsaAddAccountRights

func LsaAddAccountRights(policyHandle syscall.Handle, accountSid *SID, userRights *UNICODE_STRING, countOfRights uint32) uint32

func LsaClose

func LsaClose(objectHandle syscall.Handle) uint32

func LsaEnumerateAccountRights

func LsaEnumerateAccountRights(policyHandle syscall.Handle, accountSid *SID, userRights **UNICODE_STRING, countOfRights *uint32) uint32

func LsaFreeMemory

func LsaFreeMemory(buffer *byte) uint32

func LsaNtStatusToWinError

func LsaNtStatusToWinError(status uint32) error

func LsaOpenPolicy

func LsaOpenPolicy(systemName *UNICODE_STRING, objectAttributes *OBJECT_ATTRIBUTES, desiredAccess uint32, policyHandle *syscall.Handle) uint32

func LsaRemoveAccountRights

func LsaRemoveAccountRights(policyHandle syscall.Handle, accountSid *SID, allRights bool, userRights *UNICODE_STRING, countOfRights uint32) uint32

func Lstrlen

func Lstrlen(string *uint16) int32

func MAKEINTRESOURCE

func MAKEINTRESOURCE(integer uint16) uintptr

func MAKELANGID

func MAKELANGID(primaryLanguage uint16, subLanguage uint16) uint16

func MAKELCID

func MAKELCID(languageID uint16, sortID uint16) uint32

func MAKELONG

func MAKELONG(low uint16, high uint16) uint32

func MAKESORTLCID

func MAKESORTLCID(languageID uint16, sortID uint16, sortVersion uint16) uint32

func MessageBox

func MessageBox(desc, title string) error

func Module32First

func Module32First(snapshot syscall.Handle, me *MODULEENTRY32) error

func Module32Next

func Module32Next(snapshot syscall.Handle, me *MODULEENTRY32) error

func MoveFile

func MoveFile(existingFileName *uint16, newFileName *uint16) error

func MoveFileEx

func MoveFileEx(existingFileName *uint16, newFileName *uint16, flags uint32) error

func MsiCloseHandle

func MsiCloseHandle(handle uint32) error

func MsiConfigureProduct

func MsiConfigureProduct(product *uint16, installLevel int32, installState int32) error

func MsiConfigureProductEx

func MsiConfigureProductEx(product *uint16, installLevel int32, installState int32, commandLine *uint16) error

func MsiEnableLog

func MsiEnableLog(logMode uint32, logFile *uint16, logAttributes uint32) error

func MsiEnumProducts

func MsiEnumProducts(productIndex uint32, productBuf *uint16) error

func MsiEnumRelatedProducts

func MsiEnumRelatedProducts(upgradeCode *uint16, reserved uint32, productIndex uint32, productBuf *uint16) error

func MsiGetComponentPath

func MsiGetComponentPath(product *uint16, component *uint16, pathBuf *uint16, cchBuf *uint32) int32

func MsiGetProductInfo

func MsiGetProductInfo(product *uint16, property *uint16, valueBuf *uint16, cchValueBuf *uint32) error

func MsiGetProductProperty

func MsiGetProductProperty(product uint32, property *uint16, valueBuf *uint16, cchValueBuf *uint32) error

func MsiGetProperty

func MsiGetProperty(install uint32, name *uint16, valueBuf *uint16, cchValueBuf *uint32) error

func MsiGetShortcutTarget added in v0.0.10

func MsiGetShortcutTarget(shortcutFile string) (string, string)

func MsiInstallProduct

func MsiInstallProduct(packagePath *uint16, commandLine *uint16) error

func MsiOpenPackage

func MsiOpenPackage(packagePath *uint16, product *uint32) error

func MsiOpenProduct

func MsiOpenProduct(productCode *uint16, product *uint32) error

func MsiQueryProductState

func MsiQueryProductState(product *uint16) int32

func MsiSetInternalUI

func MsiSetInternalUI(uiLevel int32, window *syscall.Handle) int32

func MsiVerifyPackage

func MsiVerifyPackage(packagePath *uint16) error

func NT_ERROR

func NT_ERROR(status uint32) bool

func NT_INFORMATION

func NT_INFORMATION(status uint32) bool

func NT_SUCCESS

func NT_SUCCESS(status uint32) bool

func NT_WARNING

func NT_WARNING(status uint32) bool

func NetShareAdd added in v0.0.9

func NetShareAdd(serverName string, level uint32, buf *byte, parmErr *uint16) (neterr error)

NetShareAdd https://learn.microsoft.com/zh-cn/windows/win32/api/lmshare/nf-lmshare-netshareadd

func NetShareAdd2 added in v0.0.9

func NetShareAdd2(serverName string, share SHARE_INFO_2, parmErr *uint16) error

func NetShareAdd502 added in v0.0.9

func NetShareAdd502(serverName string, share SHARE_INFO_502, parmErr *uint16) error

func NetShareAdd503 added in v0.0.9

func NetShareAdd503(serverName string, share SHARE_INFO_503, parmErr *uint16) (neterr error)

func NetShareDel added in v0.0.9

func NetShareDel(serverName string, netName string, reserved uint32) (neterr error)

NetShareDel https://learn.microsoft.com/zh-cn/windows/win32/api/lmshare/nf-lmshare-netsharedel

func NtQueryInformationProcess

func NtQueryInformationProcess(processHandle syscall.Handle, processInformationClass int32, processInformation *byte, processInformationLength uint32,
	returnLength *uint32) uint32

NtQueryInformationProcess __kernel_entry NTSTATUS NtQueryInformationProcess(

[in]            HANDLE           ProcessHandle,
[in]            PROCESSINFOCLASS ProcessInformationClass,
[out]           PVOID            ProcessInformation,
[in]            ULONG            ProcessInformationLength,
[out, optional] PULONG           ReturnLength

);

func NtQueryQuotaInformationFile added in v0.0.12

func NtQueryQuotaInformationFile(fileHandle syscall.Handle, ioStatusBlock *IO_STATUS_BLOCK, buffer *byte, length uint32,
	returnSingleEntry uint32, sidList *byte, sidListLength uint32, startSid uint32, restartScan uint32) uint32

NtQueryQuotaInformationFile __kernel_entry NTSYSCALLAPI NTSTATUS NtQueryQuotaInformationFile(

[in]           HANDLE           FileHandle,
[out]          PIO_STATUS_BLOCK IoStatusBlock,
[out]          PVOID            Buffer,
[in]           ULONG            Length,
[in]           BOOLEAN          ReturnSingleEntry,
[in, optional] PVOID            SidList,
[in]           ULONG            SidListLength,
[in, optional] PSID             StartSid,
[in]           BOOLEAN          RestartScan

);

func Ntohs

func Ntohs(netshort uint16) uint16

func OpenDesktop

func OpenDesktop(desktop *uint16, flags uint32, inherit bool, desiredAccess uint32) (syscall.Handle, error)

func OpenEvent

func OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (syscall.Handle, error)

func OpenInputDesktop

func OpenInputDesktop(flags uint32, inherit bool, desiredAccess uint32) (syscall.Handle, error)

func OpenJobObject

func OpenJobObject(desiredAccess uint32, inheritHandle bool, name *uint16) (syscall.Handle, error)

func OpenMutex

func OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (syscall.Handle, error)

func OpenProcess

func OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (syscall.Handle, error)

func OpenProcessToken

func OpenProcessToken(processHandle syscall.Handle, desiredAccess uint32, tokenHandle *syscall.Handle) error

func OpenSCManager

func OpenSCManager(machineName *uint16, databaseName *uint16, desiredAccess uint32) (syscall.Handle, error)

func OpenService

func OpenService(scManager syscall.Handle, serviceName *uint16, desiredAccess uint32) (syscall.Handle, error)

func OpenThreadToken

func OpenThreadToken(threadHandle syscall.Handle, desiredAccess uint32, openAsSelf bool, tokenHandle *syscall.Handle) error

func PRIMARYLANGID

func PRIMARYLANGID(lgid uint16) uint16

func PrivateExtractIcons

func PrivateExtractIcons(szFileName string, nIconIndex, cxIcon, cyIcon uint32,
	phicon *syscall.Handle, piconid *uint32, nIcons, flags uint32) error

PrivateExtractIcons https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-privateextracticonsw

func Process32First

func Process32First(snapshot syscall.Handle, pe *PROCESSENTRY32) error

func Process32Next

func Process32Next(snapshot syscall.Handle, pe *PROCESSENTRY32) error

func ProcessIdToSessionId

func ProcessIdToSessionId(processId uint32, sessionId *uint32) error

func QueryFullProcessImageName

func QueryFullProcessImageName(process syscall.Handle, flags uint32, exeName *uint16, size *uint32) error

func QueryInformationJobObject

func QueryInformationJobObject(job syscall.Handle, jobObjectInfoClass int32, jobObjectInfo *byte, jobObjectInfoLength uint32, returnLength *uint32) error

func QueryServiceConfig

func QueryServiceConfig(service syscall.Handle, serviceConfig *QUERY_SERVICE_CONFIG, bufSize uint32, bytesNeeded *uint32) error

func QueryServiceConfig2

func QueryServiceConfig2(service syscall.Handle, infoLevel uint32, buffer *byte, bufSize uint32, bytesNeeded *uint32) error

func QueryServiceStatus

func QueryServiceStatus(service syscall.Handle, serviceStatus *SERVICE_STATUS) error

func QueryServiceStatusEx

func QueryServiceStatusEx(service syscall.Handle, infoLevel int32, buffer *byte, bufSize uint32, bytesNeeded *uint32) error

func ReadFile

func ReadFile(file syscall.Handle, buffer *byte, numberOfBytesToRead uint32, numberOfBytesRead *uint32, overlapped *OVERLAPPED) error

func ReadProcessMemory

func ReadProcessMemory(process syscall.Handle, baseAddress uintptr, buffer *byte, size uint32, numberOfBytesRead *uint32) error

func RegCloseKey

func RegCloseKey(key syscall.Handle) error

func RegCreateKeyEx

func RegCreateKeyEx(key syscall.Handle, subKey *uint16, reserved uint32, class *uint16,
	options uint32, samDesired uint32, securityAttributes *syscall.SecurityAttributes, result *syscall.Handle, disposition *uint32) error

func RegDeleteKey

func RegDeleteKey(key syscall.Handle, subKey *uint16) error

func RegDeleteValue

func RegDeleteValue(key syscall.Handle, valueName *uint16) error

func RegEnumKeyEx

func RegEnumKeyEx(key syscall.Handle, index uint32, name *uint16, cName *uint32, reserved *uint32, class *uint16, cClass *uint32, lastWriteTime *FILETIME) error

func RegEnumValue

func RegEnumValue(key syscall.Handle, index uint32, valueName *uint16, cchValueName *uint32, reserved *uint32, valueType *uint32, data *byte, cbData *uint32) error

func RegOpenKeyEx

func RegOpenKeyEx(key syscall.Handle, subKey *uint16, options uint32, samDesired uint32, result *syscall.Handle) error

func RegQueryInfoKey

func RegQueryInfoKey(key syscall.Handle, class *uint16, cClass *uint32, reserved *uint32, subKeys *uint32, maxSubKeyLen *uint32, maxClassLen *uint32, values *uint32, maxValueNameLen *uint32, maxValueLen *uint32, cbSecurityDescriptor *uint32, lastWriteTime *FILETIME) error

func RegQueryValueEx

func RegQueryValueEx(key syscall.Handle, valueName *uint16, reserved *uint32, valueType *uint32, data *byte, cbData *uint32) error

func RegSetValueEx

func RegSetValueEx(key syscall.Handle, valueName *uint16, reserved uint32, valueType uint32, data *byte, cbData uint32) error

func RegisterEventSource

func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (syscall.Handle, error)

func RegisterWindowMessage

func RegisterWindowMessage(messageName *uint16) (uint32, error)

func ReportEvent

func ReportEvent(eventLog syscall.Handle, eventType uint16, category uint16, eventID uint32, userSid *SID, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) error

func ResetEvent

func ResetEvent(handle syscall.Handle) error

func RevertToSelf

func RevertToSelf() error

func RtlFreeUnicodeString

func RtlFreeUnicodeString(unicodeString *UNICODE_STRING)

func RtlInitUnicodeString

func RtlInitUnicodeString(destinationString *UNICODE_STRING, sourceString *uint16)

func RtlMoveMemory

func RtlMoveMemory(destination *byte, source *byte, length uintptr)

func RtlZeroMemory

func RtlZeroMemory(destination *byte, length uintptr)

func SHFileOperation

func SHFileOperation(fileOp *SHFILEOPSTRUCT) error

func SHGetFileInfoW

func SHGetFileInfoW(pszPath *uint16, dwFileAttributes uint32, psfi uintptr, cbFileInfo uint32, uFlags uint32) error

func SHGetFolderPath

func SHGetFolderPath(owner syscall.Handle, folder uint32, token syscall.Handle, flags uint32, path *uint16) uint32

func SHGetKnownFolderPath

func SHGetKnownFolderPath(fid *GUID, flags uint32, token syscall.Handle, path **uint16) uint32

func SORTIDFROMLCID

func SORTIDFROMLCID(lcid uint32) uint16

func SORTVERSIONFROMLCID

func SORTVERSIONFROMLCID(lcid uint32) uint16

func SUBLANGID

func SUBLANGID(lgid uint16) uint16

func SUCCEEDED

func SUCCEEDED(hr uint32) bool

func SendARP

func SendARP(destIP, srcIP uint32, macAddr, macAddrLen *uint32) error

func SendNotifyMessage

func SendNotifyMessage(hwnd syscall.Handle, msg uint32, wparam, lparam uintptr) error

func SetConsoleMode

func SetConsoleMode(consoleHandle syscall.Handle, mode uint32) error

func SetEntriesInAcl

func SetEntriesInAcl(countOfExplicitEntries uint32, listOfExplicitEntries *EXPLICIT_ACCESS, oldAcl *ACL, newAcl **ACL) error

func SetEnvironmentVariable

func SetEnvironmentVariable(name *uint16, value *uint16) error

func SetEvent

func SetEvent(handle syscall.Handle) error

func SetFileAttributes

func SetFileAttributes(fileName *uint16, fileAttributes uint32) error

func SetFileSecurity

func SetFileSecurity(fileName *uint16, securityInformation uint32, securityDescriptor *byte) error

func SetFileTime

func SetFileTime(file syscall.Handle, creationTime *FILETIME, lastAccessTime *FILETIME, lastWriteTime *FILETIME) error

func SetInformationJobObject

func SetInformationJobObject(job syscall.Handle, jobObjectInfoClass int32, jobObjectInfo *byte, jobObjectInfoLength uint32) error

func SetLastError

func SetLastError(errCode syscall.Errno)

func SetProcessShutdownParameters

func SetProcessShutdownParameters(level, flags uint32) error

func SetSecurityDescriptorDacl

func SetSecurityDescriptorDacl(securityDescriptor *byte, daclPresent bool, dacl *ACL, daclDefaulted bool) error

func SetSecurityDescriptorOwner

func SetSecurityDescriptorOwner(securityDescriptor *byte, owner *SID, ownerDefaulted bool) error

func SetStdHandle

func SetStdHandle(stdHandle uint32, handle syscall.Handle) error

func SetThreadDesktop

func SetThreadDesktop(desktop syscall.Handle) error

func StartService

func StartService(service syscall.Handle, numServiceArgs uint32, serviceArgVectors **uint16) error

func SwitchDesktop

func SwitchDesktop(desktop syscall.Handle) error

func SysAllocString

func SysAllocString(psz *uint16) *uint16

func SysFreeString

func SysFreeString(bstrString *uint16)

func SysStringLen

func SysStringLen(bstr *uint16) uint32

func TerminateJobObject

func TerminateJobObject(job syscall.Handle, exitCode uint32) error

func TerminateProcess

func TerminateProcess(process syscall.Handle, exitCode uint32) error

func TryEnterCriticalSection

func TryEnterCriticalSection(criticalSection *CRITICAL_SECTION) bool

func UpdateResource

func UpdateResource(update syscall.Handle, resourceType uintptr, name uintptr, language uint16, data *byte, cbData uint32) error

func VariantChangeType

func VariantChangeType(dest *VARIANT, src *VARIANT, flags uint16, vt uint16) uint32

func VariantClear

func VariantClear(variant *VARIANT) uint32

func VariantInit

func VariantInit(variant *VARIANT)

func VerQueryValue

func VerQueryValue(block *byte, subBlock *uint16, buffer **byte, len *uint32) error

func VerSetConditionMask

func VerSetConditionMask(conditionMask uint64, typeBitMask uint32, condition uint8) uint64

func VerifyVersionInfo

func VerifyVersionInfo(versionInfo *OSVERSIONINFOEX, typeMask uint32, conditionMask uint64) error

func WNetAddConnection2W

func WNetAddConnection2W(ns *NETRESOURCE, username, password *uint16, flag uint32) error

WNetAddConnection2W DWORD WNetAddConnection2W(

[in] LPNETRESOURCEW lpNetResource,
[in] LPCWSTR        lpPassword,
[in] LPCWSTR        lpUserName,
[in] DWORD          dwFlags

);

func WNetCancelConnection2W

func WNetCancelConnection2W(lpName string, flag, force uint32) error

func WSAGetLastError

func WSAGetLastError() error

func WSASetLastError

func WSASetLastError(error syscall.Errno)

func WTSCloseServer

func WTSCloseServer(handle syscall.Handle)

func WTSDisconnectSession added in v0.0.12

func WTSDisconnectSession(handle syscall.Handle, sessionId uint32, wait bool) error

func WTSEnumerateProcesses

func WTSEnumerateProcesses(handle syscall.Handle, reserved *uint32, sessionId uint32, pProcessInfo **WTS_PROCESS_INFO, count *uint32) error

func WTSEnumerateProcessesEX

func WTSEnumerateProcessesEX(handle syscall.Handle, level *uint32, sessionId uint32, pProcessInfo **WTS_PROCESS_INFO_EX, count *uint32) error

func WTSEnumerateSessions

func WTSEnumerateSessions(server syscall.Handle, reserved uint32, version uint32, pSessionInfo **WTS_SESSION_INFO, count *uint32) error

func WTSFreeMemory

func WTSFreeMemory(memory *byte)

func WTSLogoffSession

func WTSLogoffSession(handle syscall.Handle, sessionId uint32, wait bool) error

func WTSOpenServer

func WTSOpenServer(serverName *uint16) syscall.Handle

func WTSQuerySessionInformation

func WTSQuerySessionInformation(handle syscall.Handle, sessionId uint32, infoClass uint32, buffer **uint16, bytesReturned *uint32) error

func WTSQueryUserToken

func WTSQueryUserToken(sessionId uint32, handle *syscall.Handle) error

func WTSRegisterSessionNotification

func WTSRegisterSessionNotification() error

func WTSSendMessageW added in v0.0.12

func WTSSendMessageW(handle syscall.Handle, sessionId uint32, title, content string, response *uint32) error

func WTSTerminateProcess added in v0.0.12

func WTSTerminateProcess(handle syscall.Handle, sessionId uint32, pid uint32) error

func WTSVirtualChannelClose

func WTSVirtualChannelClose(hChannelHandle syscall.Handle)

func WTSVirtualChannelOpenEx

func WTSVirtualChannelOpenEx(sessionID uint32, channelName string, flag uint32) syscall.Handle

func WTSVirtualChannelQuery

func WTSVirtualChannelQuery(hChannelHandle syscall.Handle, vclass uint32, buffer **uint16, pBytesRead *uint32) error

func WTSVirtualChannelRead

func WTSVirtualChannelRead(hChannelHandle syscall.Handle, timeout uint64, buffer *byte, size uint32, pBytesRead *uint32) error

func WTSVirtualChannelWrite

func WTSVirtualChannelWrite(hChannelHandle syscall.Handle, buffer *byte, length uint64, pBytesWritten *uint64) error

func WaitForMultipleObjects

func WaitForMultipleObjects(count uint32, handle *syscall.Handle, waitAll bool, milliseconds uint32) (uint32, error)

func WaitForSingleObject

func WaitForSingleObject(handle syscall.Handle, milliseconds uint32) (uint32, error)

Types

type ACL

type ACL struct {
	AclRevision byte
	Sbz1        byte
	AclSize     uint16
	AceCount    uint16
	Sbz2        uint16
}

type CRITICAL_SECTION

type CRITICAL_SECTION RTL_CRITICAL_SECTION

type DESKTOPENUMPROC

type DESKTOPENUMPROC NAMEENUMPROC

type DEVMODE

type DEVMODE struct {
	DeviceName       [CCHDEVICENAME]uint16
	SpecVersion      uint16
	DriverVersion    uint16
	Size             uint16
	DriverExtra      uint16
	Fields           uint32
	Orientation      int16
	PaperSize        int16
	PaperLength      int16
	PaperWidth       int16
	Scale            int16
	Copies           int16
	DefaultSource    int16
	PrintQuality     int16
	Color            int16
	Duplex           int16
	YResolution      int16
	TTOption         int16
	Collate          int16
	FormName         [CCHFORMNAME]uint16
	LogPixels        uint16
	BitsPerPel       uint32
	PelsWidth        uint32
	PelsHeight       uint32
	DisplayFlags     uint32
	DisplayFrequency uint32
	ICMMethod        uint32
	ICMIntent        uint32
	MediaType        uint32
	DitherType       uint32
	Reserved1        uint32
	Reserved2        uint32
	PanningWidth     uint32
	PanningHeight    uint32
}

type DISK_PERFORMANCE

type DISK_PERFORMANCE struct {
	BytesRead           int64
	BytesWritten        int64
	ReadTime            int64
	WriteTime           int64
	IdleTime            int64
	ReadCount           uint32
	WriteCount          uint32
	QueueDepth          uint32
	SplitCount          uint32
	QueryTime           int64
	StorageDeviceNumber uint32
	StorageManagerName  [8]uint16
}

type DISPLAY_DEVICE

type DISPLAY_DEVICE struct {
	Cb           uint32
	DeviceName   [32]uint16
	DeviceString [128]uint16
	StateFlags   uint32
	DeviceID     [128]uint16
	DeviceKey    [128]uint16
}

type ENUM_SERVICE_STATUS

type ENUM_SERVICE_STATUS struct {
	ServiceName   *uint16
	DisplayName   *uint16
	ServiceStatus SERVICE_STATUS
}

type EXPLICIT_ACCESS

type EXPLICIT_ACCESS struct {
	AccessPermissions uint32
	AccessMode        int32
	Inheritance       uint32
	Trustee           TRUSTEE
}

type FILETIME

type FILETIME struct {
	LowDateTime  uint32
	HighDateTime uint32
}

type FILE_DIRECTORY_INFORMATION added in v0.0.12

type FILE_DIRECTORY_INFORMATION struct {
	NextEntryOffset uint32
	FileIndex       uint32
	CreationTime    uint64
	LastAccessTime  uint64
	LastWriteTime   uint64
	ChangeTime      uint64
	EndOfFile       uint64
	AllocationSize  uint64
	FileAttributes  uint32
	FileNameLength  uint32
	FileName        [1]uint16
}

type FILE_NAMES_INFORMATION added in v0.0.12

type FILE_NAMES_INFORMATION struct {
	NextEntryOffset uint32
	FileIndex       uint32
	FileNameLength  uint32
	FileName        [1]uint16
}

type GROUP_INFO_0 added in v0.0.11

type GROUP_INFO_0 struct {
	Grpi0Name LPWSTR
}

func (GROUP_INFO_0) GroupInfo added in v0.0.12

func (g GROUP_INFO_0) GroupInfo() GroupInfo

type GROUP_INFO_1

type GROUP_INFO_1 struct {
	// contains filtered or unexported fields
}

func (GROUP_INFO_1) GroupInfo1

func (g GROUP_INFO_1) GroupInfo1() GroupInfo1

type GROUP_USERS_INFO_0

type GROUP_USERS_INFO_0 struct {
	// contains filtered or unexported fields
}

func (GROUP_USERS_INFO_0) GroupUserInfo

func (g GROUP_USERS_INFO_0) GroupUserInfo() GroupUserInfo

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

type GroupInfo added in v0.0.12

type GroupInfo struct {
	GroupName string
}

type GroupInfo1

type GroupInfo1 struct {
	GroupName    string
	GroupComment string
}

type GroupUserInfo

type GroupUserInfo struct {
	GroupName string
}

type IADsADSystemInfo

type IADsADSystemInfo struct {
	IDispatch
}

func (*IADsADSystemInfo) GetAnyDCName

func (self *IADsADSystemInfo) GetAnyDCName(dcName **uint16) uint32

func (*IADsADSystemInfo) GetDCSiteName

func (self *IADsADSystemInfo) GetDCSiteName(server *uint16, siteName **uint16) uint32

func (*IADsADSystemInfo) GetTrees

func (self *IADsADSystemInfo) GetTrees(trees *VARIANT) uint32

func (*IADsADSystemInfo) Get_ComputerName

func (self *IADsADSystemInfo) Get_ComputerName(retval **uint16) uint32

func (*IADsADSystemInfo) Get_DomainDNSName

func (self *IADsADSystemInfo) Get_DomainDNSName(retval **uint16) uint32

func (*IADsADSystemInfo) Get_DomainShortName

func (self *IADsADSystemInfo) Get_DomainShortName(retval **uint16) uint32

func (*IADsADSystemInfo) Get_ForestDNSName

func (self *IADsADSystemInfo) Get_ForestDNSName(retval **uint16) uint32

func (*IADsADSystemInfo) Get_IsNativeMode

func (self *IADsADSystemInfo) Get_IsNativeMode(retval *bool) uint32

func (*IADsADSystemInfo) Get_PDCRoleOwner

func (self *IADsADSystemInfo) Get_PDCRoleOwner(retval **uint16) uint32

func (*IADsADSystemInfo) Get_SchemaRoleOwner

func (self *IADsADSystemInfo) Get_SchemaRoleOwner(retval **uint16) uint32

func (*IADsADSystemInfo) Get_SiteName

func (self *IADsADSystemInfo) Get_SiteName(retval **uint16) uint32

func (*IADsADSystemInfo) Get_UserName

func (self *IADsADSystemInfo) Get_UserName(retval **uint16) uint32

func (*IADsADSystemInfo) RefreshSchemaCache

func (self *IADsADSystemInfo) RefreshSchemaCache() uint32

type IADsADSystemInfoVtbl

type IADsADSystemInfoVtbl struct {
	IDispatchVtbl
	Get_UserName        uintptr
	Get_ComputerName    uintptr
	Get_SiteName        uintptr
	Get_DomainShortName uintptr
	Get_DomainDNSName   uintptr
	Get_ForestDNSName   uintptr
	Get_PDCRoleOwner    uintptr
	Get_SchemaRoleOwner uintptr
	Get_IsNativeMode    uintptr
	GetAnyDCName        uintptr
	GetDCSiteName       uintptr
	RefreshSchemaCache  uintptr
	GetTrees            uintptr
}

type IADsNameTranslate

type IADsNameTranslate struct {
	IDispatch
}

func (*IADsNameTranslate) Get

func (self *IADsNameTranslate) Get(formatType int32, adsPath **uint16) uint32

func (*IADsNameTranslate) Init

func (self *IADsNameTranslate) Init(setType int32, adsPath *uint16) uint32

func (*IADsNameTranslate) InitEx

func (self *IADsNameTranslate) InitEx(setType int32, adsPath *uint16, userID *uint16, domain *uint16, password *uint16) uint32

func (*IADsNameTranslate) Put_ChaseReferral

func (self *IADsNameTranslate) Put_ChaseReferral(chaseReferral int32) uint32

func (*IADsNameTranslate) Set

func (self *IADsNameTranslate) Set(setType int32, adsPath *uint16) uint32

type IADsNameTranslateVtbl

type IADsNameTranslateVtbl struct {
	IDispatchVtbl
	Put_ChaseReferral uintptr
	Init              uintptr
	InitEx            uintptr
	Set               uintptr
	Get               uintptr
	SetEx             uintptr
	GetEx             uintptr
}

type IADsWinNTSystemInfo

type IADsWinNTSystemInfo struct {
	IDispatch
}

func (*IADsWinNTSystemInfo) Get_ComputerName

func (self *IADsWinNTSystemInfo) Get_ComputerName(retval **uint16) uint32

func (*IADsWinNTSystemInfo) Get_DomainName

func (self *IADsWinNTSystemInfo) Get_DomainName(retval **uint16) uint32

func (*IADsWinNTSystemInfo) Get_PDC

func (self *IADsWinNTSystemInfo) Get_PDC(retval **uint16) uint32

func (*IADsWinNTSystemInfo) Get_UserName

func (self *IADsWinNTSystemInfo) Get_UserName(retval **uint16) uint32

type IADsWinNTSystemInfoVtbl

type IADsWinNTSystemInfoVtbl struct {
	IDispatchVtbl
	Get_UserName     uintptr
	Get_ComputerName uintptr
	Get_DomainName   uintptr
	Get_PDC          uintptr
}

type IDispatch

type IDispatch struct {
	IUnknown
}

type IDispatchVtbl

type IDispatchVtbl struct {
	IUnknownVtbl
	GetTypeInfoCount uintptr
	GetTypeInfo      uintptr
	GetIDsOfNames    uintptr
	Invoke           uintptr
}

type IEnumVARIANT

type IEnumVARIANT struct {
	IUnknown
}

func (*IEnumVARIANT) Clone

func (self *IEnumVARIANT) Clone(ppEnum *IEnumVARIANT) uint32

func (*IEnumVARIANT) Next

func (self *IEnumVARIANT) Next(celt uint32, rgVar *VARIANT, celtFetched *uint32) uint32

func (*IEnumVARIANT) Reset

func (self *IEnumVARIANT) Reset() uint32

func (*IEnumVARIANT) Skip

func (self *IEnumVARIANT) Skip(celt uint32) uint32

type IEnumVARIANTVtbl

type IEnumVARIANTVtbl struct {
	IUnknownVtbl
	Next  uintptr
	Skip  uintptr
	Reset uintptr
	Clone uintptr
}

type IGroupPolicyObject added in v0.0.12

type IGroupPolicyObject struct {
	IDispatch
}

func (*IGroupPolicyObject) Delete added in v0.0.12

func (self *IGroupPolicyObject) Delete() uint32

func (*IGroupPolicyObject) GetDisplayName added in v0.0.12

func (self *IGroupPolicyObject) GetDisplayName(pszName *byte, cchMaxLength uint32) uint32

GetDisplayName HRESULT GetDisplayName(

[out] LPOLESTR pszName,
[in]  int      cchMaxLength

);

func (*IGroupPolicyObject) GetRegistryKey added in v0.0.12

func (self *IGroupPolicyObject) GetRegistryKey(dwSection uint32, hKey *syscall.Handle) uint32

GetRegistryKey HRESULT GetRegistryKey(

[in]  DWORD dwSection,
[out] HKEY  *hKey

);

func (*IGroupPolicyObject) OpenLocalMachineGPO added in v0.0.12

func (self *IGroupPolicyObject) OpenLocalMachineGPO(flag uint32) uint32

func (*IGroupPolicyObject) Save added in v0.0.12

func (self *IGroupPolicyObject) Save(bMachine, bAdd uint32, pGuidExtension, pGuid *GUID) uint32

Save HRESULT Save(

[in] BOOL bMachine,
[in] BOOL bAdd,
[in] GUID *pGuidExtension,
[in] GUID *pGuid

);

type IGroupPolicyObjectVtbl added in v0.0.12

type IGroupPolicyObjectVtbl struct {
	IDispatchVtbl
	Delete                uintptr
	GetDisplayName        uintptr
	GetDSPath             uintptr
	GetFileSysPath        uintptr
	GetMachineName        uintptr
	GetName               uintptr
	GetOptions            uintptr
	GetPath               uintptr
	GetPropertySheetPages uintptr
	GetRegistryKey        uintptr
	GetType               uintptr
	New                   uintptr
	OpenDSGPO             uintptr
	OpenLocalMachineGPO   uintptr
	OpenRemoteMachineGPO  uintptr
	/*method*/
	Save           uintptr
	SetDisplayName uintptr
	SetOptions     uintptr
}

type INetFwMgr

type INetFwMgr struct {
	IDispatch
}

func (*INetFwMgr) Get_CurrentProfileType

func (self *INetFwMgr) Get_CurrentProfileType(profileType *int32) uint32

func (*INetFwMgr) IsIcmpTypeAllowed

func (self *INetFwMgr) IsIcmpTypeAllowed(ipVersion int32, localAddress *uint16, icmpType *uint16, allowed *VARIANT, restricted *VARIANT) uint32

func (*INetFwMgr) IsPortAllowed

func (self *INetFwMgr) IsPortAllowed(imageFileName *uint16, ipVersion int32, portNumber int32, localAddress *uint16, ipProtocol int32, allowed *VARIANT, restricted *VARIANT) uint32

func (*INetFwMgr) RestoreDefaults

func (self *INetFwMgr) RestoreDefaults() uint32

type INetFwMgrVtbl

type INetFwMgrVtbl struct {
	IDispatchVtbl
	Get_LocalPolicy        uintptr
	Get_CurrentProfileType uintptr
	RestoreDefaults        uintptr
	IsPortAllowed          uintptr
	IsIcmpTypeAllowed      uintptr
}

type INetFwPolicy2

type INetFwPolicy2 struct {
	IDispatch
}

func (*INetFwPolicy2) Get_Rules

func (self *INetFwPolicy2) Get_Rules(rules **INetFwRules) uint32

type INetFwPolicy2Vtbl

type INetFwPolicy2Vtbl struct {
	IDispatchVtbl
	Get_CurrentProfileTypes                          uintptr
	Get_FirewallEnabled                              uintptr
	Put_FirewallEnabled                              uintptr
	Get_ExcludedInterfaces                           uintptr
	Put_ExcludedInterfaces                           uintptr
	Get_BlockAllInboundTraffic                       uintptr
	Put_BlockAllInboundTraffic                       uintptr
	Get_NotificationsDisabled                        uintptr
	Put_NotificationsDisabled                        uintptr
	Get_UnicastResponsesToMulticastBroadcastDisabled uintptr
	Put_UnicastRepsonsesToMulticastBroadcastDisabled uintptr
	Get_Rules                                        uintptr
	Get_ServiceRestriction                           uintptr
	EnableRuleGroup                                  uintptr
	IsRuleGroupEnabled                               uintptr
	RestoreLocalFirewallDefaults                     uintptr
	Get_DefaultInboundAction                         uintptr
	Put_DefaultInboundAction                         uintptr
	Get_DefaultOutboundAction                        uintptr
	Put_DefaultOutboundAction                        uintptr
	Get_IsRuleGroupCurrentlyEnabled                  uintptr
	Get_LocalPolicyModifyState                       uintptr
}

type INetFwRule

type INetFwRule struct {
	IDispatch
}

func (*INetFwRule) Get_Action

func (self *INetFwRule) Get_Action(action *int32) uint32

func (*INetFwRule) Get_ApplicationName

func (self *INetFwRule) Get_ApplicationName(imageFileName **uint16) uint32

func (*INetFwRule) Get_Description

func (self *INetFwRule) Get_Description(desc **uint16) uint32

func (*INetFwRule) Get_Direction

func (self *INetFwRule) Get_Direction(dir *int32) uint32

func (*INetFwRule) Get_EdgeTraversal

func (self *INetFwRule) Get_EdgeTraversal(enabled *bool) uint32

func (*INetFwRule) Get_Enabled

func (self *INetFwRule) Get_Enabled(enabled *bool) uint32

func (*INetFwRule) Get_Grouping

func (self *INetFwRule) Get_Grouping(context **uint16) uint32

func (*INetFwRule) Get_IcmpTypesAndCodes

func (self *INetFwRule) Get_IcmpTypesAndCodes(icmpTypesAndCodes **uint16) uint32

func (*INetFwRule) Get_InterfaceTypes

func (self *INetFwRule) Get_InterfaceTypes(interfaceTypes **uint16) uint32

func (*INetFwRule) Get_LocalAddresses

func (self *INetFwRule) Get_LocalAddresses(localAddrs **uint16) uint32

func (*INetFwRule) Get_LocalPorts

func (self *INetFwRule) Get_LocalPorts(portNumbers **uint16) uint32

func (*INetFwRule) Get_Name

func (self *INetFwRule) Get_Name(name **uint16) uint32

func (*INetFwRule) Get_Profiles

func (self *INetFwRule) Get_Profiles(profileTypesBitmask *int32) uint32

func (*INetFwRule) Get_Protocol

func (self *INetFwRule) Get_Protocol(protocol *int32) uint32

func (*INetFwRule) Get_RemoteAddresses

func (self *INetFwRule) Get_RemoteAddresses(remoteAddrs **uint16) uint32

func (*INetFwRule) Get_RemotePorts

func (self *INetFwRule) Get_RemotePorts(portNumbers **uint16) uint32

func (*INetFwRule) Get_ServiceName

func (self *INetFwRule) Get_ServiceName(serviceName **uint16) uint32

func (*INetFwRule) Put_Action

func (self *INetFwRule) Put_Action(action int32) uint32

func (*INetFwRule) Put_ApplicationName

func (self *INetFwRule) Put_ApplicationName(imageFileName *uint16) uint32

func (*INetFwRule) Put_Description

func (self *INetFwRule) Put_Description(desc *uint16) uint32

func (*INetFwRule) Put_Direction

func (self *INetFwRule) Put_Direction(dir int32) uint32

func (*INetFwRule) Put_EdgeTraversal

func (self *INetFwRule) Put_EdgeTraversal(enabled bool) uint32

func (*INetFwRule) Put_Enabled

func (self *INetFwRule) Put_Enabled(enabled bool) uint32

func (*INetFwRule) Put_Grouping

func (self *INetFwRule) Put_Grouping(context *uint16) uint32

func (*INetFwRule) Put_IcmpTypesAndCodes

func (self *INetFwRule) Put_IcmpTypesAndCodes(icmpTypesAndCodes *uint16) uint32

func (*INetFwRule) Put_InterfaceTypes

func (self *INetFwRule) Put_InterfaceTypes(interfaceTypes *uint16) uint32

func (*INetFwRule) Put_LocalAddresses

func (self *INetFwRule) Put_LocalAddresses(localAddrs *uint16) uint32

func (*INetFwRule) Put_LocalPorts

func (self *INetFwRule) Put_LocalPorts(portNumbers *uint16) uint32

func (*INetFwRule) Put_Name

func (self *INetFwRule) Put_Name(name *uint16) uint32

func (*INetFwRule) Put_Profiles

func (self *INetFwRule) Put_Profiles(profileTypesBitmask int32) uint32

func (*INetFwRule) Put_Protocol

func (self *INetFwRule) Put_Protocol(protocol int32) uint32

func (*INetFwRule) Put_RemoteAddresses

func (self *INetFwRule) Put_RemoteAddresses(remoteAddrs *uint16) uint32

func (*INetFwRule) Put_RemotePorts

func (self *INetFwRule) Put_RemotePorts(portNumbers *uint16) uint32

func (*INetFwRule) Put_ServiceName

func (self *INetFwRule) Put_ServiceName(serviceName *uint16) uint32

type INetFwRuleVtbl

type INetFwRuleVtbl struct {
	IDispatchVtbl
	Get_Name              uintptr
	Put_Name              uintptr
	Get_Description       uintptr
	Put_Description       uintptr
	Get_ApplicationName   uintptr
	Put_ApplicationName   uintptr
	Get_ServiceName       uintptr
	Put_ServiceName       uintptr
	Get_Protocol          uintptr
	Put_Protocol          uintptr
	Get_LocalPorts        uintptr
	Put_LocalPorts        uintptr
	Get_RemotePorts       uintptr
	Put_RemotePorts       uintptr
	Get_LocalAddresses    uintptr
	Put_LocalAddresses    uintptr
	Get_RemoteAddresses   uintptr
	Put_RemoteAddresses   uintptr
	Get_IcmpTypesAndCodes uintptr
	Put_IcmpTypesAndCodes uintptr
	Get_Direction         uintptr
	Put_Direction         uintptr
	Get_Interfaces        uintptr
	Put_Interfaces        uintptr
	Get_InterfaceTypes    uintptr
	Put_InterfaceTypes    uintptr
	Get_Enabled           uintptr
	Put_Enabled           uintptr
	Get_Grouping          uintptr
	Put_Grouping          uintptr
	Get_Profiles          uintptr
	Put_Profiles          uintptr
	Get_EdgeTraversal     uintptr
	Put_EdgeTraversal     uintptr
	Get_Action            uintptr
	Put_Action            uintptr
}

type INetFwRules

type INetFwRules struct {
	IDispatch
}

func (*INetFwRules) Add

func (self *INetFwRules) Add(rule *INetFwRule) uint32

func (*INetFwRules) Get_Count

func (self *INetFwRules) Get_Count(count *int32) uint32

func (*INetFwRules) Get__NewEnum

func (self *INetFwRules) Get__NewEnum(newEnum **IUnknown) uint32

func (*INetFwRules) Item

func (self *INetFwRules) Item(name *uint16, rule **INetFwRule) uint32

func (*INetFwRules) Remove

func (self *INetFwRules) Remove(name *uint16) uint32

type INetFwRulesVtbl

type INetFwRulesVtbl struct {
	IDispatchVtbl
	Get_Count    uintptr
	Add          uintptr
	Remove       uintptr
	Item         uintptr
	Get__NewEnum uintptr
}

type IO_COUNTERS

type IO_COUNTERS struct {
	ReadOperationCount  uint64
	WriteOperationCount uint64
	OtherOperationCount uint64
	ReadTransferCount   uint64
	WriteTransferCount  uint64
	OtherTransferCount  uint64
}

type IO_STATUS_BLOCK added in v0.0.12

type IO_STATUS_BLOCK struct {
	StatusPointer uintptr
	Information   uintptr
}

type IUnknown

type IUnknown struct {
	Vtbl *IUnknownVtbl
}

func (*IUnknown) AddRef

func (self *IUnknown) AddRef() uint32

func (*IUnknown) QueryInterface

func (self *IUnknown) QueryInterface(iid *GUID, object *uintptr) uint32

func (*IUnknown) Release

func (self *IUnknown) Release() uint32

type IUnknownVtbl

type IUnknownVtbl struct {
	QueryInterface uintptr
	AddRef         uintptr
	Release        uintptr
}

type JOBOBJECT_ASSOCIATE_COMPLETION_PORT

type JOBOBJECT_ASSOCIATE_COMPLETION_PORT struct {
	CompletionKey  *byte
	CompletionPort syscall.Handle
}

type JOBOBJECT_BASIC_ACCOUNTING_INFORMATION

type JOBOBJECT_BASIC_ACCOUNTING_INFORMATION struct {
	TotalUserTime             int64
	TotalKernelTime           int64
	ThisPeriodTotalUserTime   int64
	ThisPeriodTotalKernelTime int64
	TotalPageFaultCount       uint32
	TotalProcesses            uint32
	ActiveProcesses           uint32
	TotalTerminatedProcesses  uint32
}

type JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION

type JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION struct {
	BasicInfo JOBOBJECT_BASIC_ACCOUNTING_INFORMATION
	IoInfo    IO_COUNTERS
}

type JOBOBJECT_BASIC_LIMIT_INFORMATION

type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
	PerProcessUserTimeLimit int64
	PerJobUserTimeLimit     int64
	LimitFlags              uint32
	MinimumWorkingSetSize   uintptr
	MaximumWorkingSetSize   uintptr
	ActiveProcessLimit      uint32
	Affinity                uintptr
	PriorityClass           uint32
	SchedulingClass         uint32
}

type JOBOBJECT_BASIC_PROCESS_ID_LIST

type JOBOBJECT_BASIC_PROCESS_ID_LIST struct {
	NumberOfAssignedProcesses uint32
	NumberOfProcessIdsInList  uint32
	ProcessIdList             [1]uintptr
}

type JOBOBJECT_BASIC_UI_RESTRICTIONS

type JOBOBJECT_BASIC_UI_RESTRICTIONS struct {
	UIRestrictionsClass uint32
}

type JOBOBJECT_END_OF_JOB_TIME_INFORMATION

type JOBOBJECT_END_OF_JOB_TIME_INFORMATION struct {
	EndOfJobTimeAction uint32
}

type JOBOBJECT_EXTENDED_LIMIT_INFORMATION

type JOBOBJECT_EXTENDED_LIMIT_INFORMATION struct {
	BasicLimitInformation JOBOBJECT_BASIC_LIMIT_INFORMATION
	IoInfo                IO_COUNTERS
	ProcessMemoryLimit    uintptr
	JobMemoryLimit        uintptr
	PeakProcessMemoryUsed uintptr
	PeakJobMemoryUsed     uintptr
}

type JOBOBJECT_SECURITY_LIMIT_INFORMATION

type JOBOBJECT_SECURITY_LIMIT_INFORMATION struct {
	SecurityLimitFlags uint32
	JobToken           syscall.Handle
	SidsToDisable      *TOKEN_GROUPS
	PrivilegesToDelete *TOKEN_PRIVILEGES
	RestrictedSids     *TOKEN_GROUPS
}

type LASTINPUTINFO

type LASTINPUTINFO struct {
	Size uint32
	Time uint32
}

type LIST_ENTRY

type LIST_ENTRY struct {
	Flink *LIST_ENTRY
	Blink *LIST_ENTRY
}

type LUID

type LUID struct {
	LowPart  uint32
	HighPart int32
}

type LUID_AND_ATTRIBUTES

type LUID_AND_ATTRIBUTES struct {
	Luid       LUID
	Attributes uint32
}

type MEMORYSTATUSEX

type MEMORYSTATUSEX struct {
	Length               uint32
	MemoryLoad           uint32
	TotalPhys            uint64
	AvailPhys            uint64
	TotalPageFile        uint64
	AvailPageFile        uint64
	TotalVirtual         uint64
	AvailVirtual         uint64
	AvailExtendedVirtual uint64
}

type MESSAGE_RESOURCE_BLOCK

type MESSAGE_RESOURCE_BLOCK struct {
	LowId           uint32
	HighId          uint32
	OffsetToEntries uint32
}

type MESSAGE_RESOURCE_DATA

type MESSAGE_RESOURCE_DATA struct {
	NumberOfBlocks uint32
}

type MESSAGE_RESOURCE_ENTRY

type MESSAGE_RESOURCE_ENTRY struct {
	Length uint16
	Flags  uint16
}

type MIB_TCPROW

type MIB_TCPROW struct {
	State      uint32
	LocalAddr  uint32
	LocalPort  uint32
	RemoteAddr uint32
	RemotePort uint32
}

type MIB_TCPTABLE

type MIB_TCPTABLE struct {
	NumEntries uint32
}

type MODULEENTRY32

type MODULEENTRY32 struct {
	Size         uint32
	ModuleID     uint32
	ProcessID    uint32
	GlblcntUsage uint32
	ProccntUsage uint32
	ModBaseAddr  *byte
	ModBaseSize  uint32
	Module       syscall.Handle
	ModuleName   [MAX_MODULE_NAME32 + 1]uint16
	ExePath      [MAX_PATH]uint16
}

type MONITORENUMPROC

type MONITORENUMPROC func(hmonitor syscall.Handle, hdc syscall.Handle, rect *RECT, lparam uintptr) int32

type NAMEENUMPROC

type NAMEENUMPROC func(name *uint16, lparam uintptr) bool

type NETRESOURCE

type NETRESOURCE struct {
	DwScope       uint32
	DwType        uint32
	DwDisplayType uint32
	DwUsage       uint32
	LpLocalName   *uint16
	LpRemoteName  *uint16
	LpComment     *uint16
	LpProvider    *uint16
}

type NET_API_STATUS

type NET_API_STATUS DWORD

func NetApiBufferFree

func NetApiBufferFree(Buffer uintptr) (status NET_API_STATUS)

func NetGroupAdd added in v0.0.11

func NetGroupAdd(servername *uint16, level uint32, bufptr *byte, parmErr *LPDWORD) NET_API_STATUS

NetGroupAdd NET_API_STATUS NET_API_FUNCTION NetGroupAdd(

[in]  LPCWSTR servername,
[in]  DWORD   level,
[in]  LPBYTE  buf,
[out] LPDWORD parm_err

);

func NetGroupAddUser added in v0.0.11

func NetGroupAddUser(servername, groupName, username *uint16) NET_API_STATUS

NetGroupAddUser NET_API_STATUS NET_API_FUNCTION NetGroupAddUser(

[in] LPCWSTR servername,
[in] LPCWSTR GroupName,
[in] LPCWSTR username

);

func NetGroupDel added in v0.0.11

func NetGroupDel(servername *uint16, groupname *uint16) NET_API_STATUS

NetGroupDel NET_API_STATUS NET_API_FUNCTION NetGroupDel(

[in] LPCWSTR servername,
[in] LPCWSTR groupname

);

func NetGroupDelUser added in v0.0.11

func NetGroupDelUser(servername, groupName, username *uint16) NET_API_STATUS

NetGroupDelUser NET_API_STATUS NET_API_FUNCTION NetGroupDelUser(

[in] LPCWSTR servername,
[in] LPCWSTR GroupName,
[in] LPCWSTR Username

);

func NetGroupEnum

func NetGroupEnum(servername *uint16, level uint32, bufptr *uintptr, prefmaxlen uint32,
	entriesread LPDWORD, totalentries LPDWORD, resume_handle *uintptr) NET_API_STATUS

NetGroupEnum NET_API_STATUS NET_API_FUNCTION NetGroupEnum(

[in]      LPCWSTR    servername,
[in]      DWORD      level,
[out]     LPBYTE     *bufptr,
[in]      DWORD      prefmaxlen,
[out]     LPDWORD    entriesread,
[out]     LPDWORD    totalentries,
[in, out] PDWORD_PTR resume_handle

);

func NetGroupGetUsers

func NetGroupGetUsers(servername *uint16, groupname *uint16, level uint32, bufptr *uintptr, prefmaxlen uint32,
	entriesread *uint32, totalentries *uint32, resume_handle *uint32) NET_API_STATUS

NetGroupGetUsers NET_API_STATUS NET_API_FUNCTION NetGroupGetUsers(

[in]      LPCWSTR    servername,
[in]      LPCWSTR    groupname,
[in]      DWORD      level,
[out]     LPBYTE     *bufptr,
[in]      DWORD      prefmaxlen,
[out]     LPDWORD    entriesread,
[out]     LPDWORD    totalentries,
[in, out] PDWORD_PTR ResumeHandle

);

func NetQueryDisplayInformation

func NetQueryDisplayInformation(servername *uint16, level uint32, index uint32,
	entriesRequested uint32, preferredMaximumLength uint32, returnedEntryCount *uint32, sortedBuffer *uintptr) NET_API_STATUS

NetQueryDisplayInformation NET_API_STATUS NET_API_FUNCTION NetQueryDisplayInformation(

[in]  LPCWSTR ServerName,
[in]  DWORD   Level,
[in]  DWORD   Index,
[in]  DWORD   EntriesRequested,
[in]  DWORD   PreferredMaximumLength,
[out] LPDWORD ReturnedEntryCount,
[out] PVOID   *SortedBuffer

);

func NetShareEnum added in v0.0.9

func NetShareEnum(servername string, level uint32, buf *uintptr,
	prefmaxlen uint32, entriesread *uint32, totalentries *uint32, resume_handle *uint32) NET_API_STATUS

func NetUserAdd added in v0.0.10

func NetUserAdd(servername *uint16, level uint32, bufptr *byte, parmErr *LPDWORD) NET_API_STATUS

NetUserAdd NET_API_STATUS NET_API_FUNCTION NetUserAdd(

[in]  LPCWSTR servername,
[in]  DWORD   level,
[in]  LPBYTE  buf,
[out] LPDWORD parm_err

);

func NetUserChangePassword added in v0.0.12

func NetUserChangePassword(domainname, username, oldpassword, newpassword *uint16) NET_API_STATUS

NetUserChangePassword NET_API_STATUS NET_API_FUNCTION NetUserChangePassword(

[in] LPCWSTR domainname,
[in] LPCWSTR username,
[in] LPCWSTR oldpassword,
[in] LPCWSTR newpassword

);

func NetUserDel added in v0.0.12

func NetUserDel(servername *uint16, username *uint16) NET_API_STATUS

func NetUserEnum

func NetUserEnum(servername *uint16, level uint32, filter uint32, bufptr *uintptr,
	prefmaxlen uint32, entriesread *uint32, totalentries *uint32, resume_handle *uint32) NET_API_STATUS

func NetUserGetGroups

func NetUserGetGroups(servername *uint16, username *uint16, level uint32, bufptr *uintptr, prefmaxlen uint32,
	entriesread *uint32, totalentries *uint32) (status NET_API_STATUS)

func NetUserGetInfo added in v0.0.12

func NetUserGetInfo(servername *uint16, username *uint16, level uint32, bufptr *byte) NET_API_STATUS

NetUserGetInfo NET_API_STATUS NET_API_FUNCTION NetUserGetInfo(

[in]  LPCWSTR servername,
[in]  LPCWSTR username,
[in]  DWORD   level,
[out] LPBYTE  *bufptr

);

func NetUserSetGroups added in v0.0.11

func NetUserSetGroups(servername *uint16, username *uint16, level uint32, bufptr *byte, entries uint32) NET_API_STATUS

NetUserSetGroups NET_API_STATUS NET_API_FUNCTION NetUserSetGroups(

[in] LPCWSTR servername,
[in] LPCWSTR username,
[in] DWORD   level,
[in] LPBYTE  buf,
[in] DWORD   num_entries

);

func NetUserSetInfo added in v0.0.12

func NetUserSetInfo(servername *uint16, username *uint16, level uint32, bufptr *byte, parmErr *LPDWORD) NET_API_STATUS

NetUserSetInfo NET_API_STATUS NET_API_FUNCTION NetUserSetInfo(

[in]  LPCWSTR servername,
[in]  LPCWSTR username,
[in]  DWORD   level,
[in]  LPBYTE  buf,
[out] LPDWORD parm_err

);

type NET_DISPLAY_GROUP

type NET_DISPLAY_GROUP struct {
	// contains filtered or unexported fields
}

func (NET_DISPLAY_GROUP) NetDisplayGroup

func (g NET_DISPLAY_GROUP) NetDisplayGroup() NetDisplayGroup

func (*NET_DISPLAY_GROUP) NextIndex

func (g *NET_DISPLAY_GROUP) NextIndex() uint32

type NET_DISPLAY_MACHINE

type NET_DISPLAY_MACHINE struct {
	// contains filtered or unexported fields
}

func (NET_DISPLAY_MACHINE) NetDisplayMachine

func (g NET_DISPLAY_MACHINE) NetDisplayMachine() NetDisplayMachine

func (*NET_DISPLAY_MACHINE) NextIndex

func (g *NET_DISPLAY_MACHINE) NextIndex() uint32

type NET_DISPLAY_USER

type NET_DISPLAY_USER struct {
	// contains filtered or unexported fields
}

func (NET_DISPLAY_USER) NetDisplayUser

func (d NET_DISPLAY_USER) NetDisplayUser() NetDisplayUser

func (*NET_DISPLAY_USER) NextIndex

func (d *NET_DISPLAY_USER) NextIndex() uint32

type NetDisplayGroup

type NetDisplayGroup struct {
	GroupName       string
	GroupComment    string
	GroupId         uint32
	GroupAttributes uint32
}

type NetDisplayMachine

type NetDisplayMachine struct {
	MachineName    string
	MachineComment string
	MachineFlags   uint32
	MachineUserId  uint32
}

type NetDisplayUser

type NetDisplayUser struct {
	UserName     string
	UserFullName string
	UserComment  string
	UserFlag     uint32
	UserId       uint32
}

type OBJECTS_AND_NAME

type OBJECTS_AND_NAME struct {
	ObjectsPresent          uint32
	ObjectType              int32
	ObjectTypeName          *uint16
	InheritedObjectTypeName *uint16
	Name                    *uint16
}

type OBJECTS_AND_SID

type OBJECTS_AND_SID struct {
	ObjectsPresent          uint32
	ObjectTypeGuid          GUID
	InheritedObjectTypeGuid GUID
	Sid                     *SID
}

type OBJECT_ATTRIBUTES

type OBJECT_ATTRIBUTES struct {
	Length                   uint32
	RootDirectory            syscall.Handle
	ObjectName               *UNICODE_STRING
	Attributes               uint32
	SecurityDescriptor       uintptr
	SecurityQualityOfService uintptr
}

type OSVERSIONINFO

type OSVERSIONINFO struct {
	OSVersionInfoSize uint32
	MajorVersion      uint32
	MinorVersion      uint32
	BuildNumber       uint32
	PlatformId        uint32
	CSDVersion        [128]uint16
}

type OSVERSIONINFOEX

type OSVERSIONINFOEX struct {
	OSVERSIONINFO
	ServicePackMajor uint16
	ServicePackMinor uint16
	SuiteMask        uint16
	ProductType      uint8
	Reserved         uint8
}

type OVERLAPPED

type OVERLAPPED struct {
	Internal     uintptr
	InternalHigh uintptr
	Offset       uint32
	OffsetHigh   uint32
	Event        syscall.Handle
}

type PEB

type PEB struct {
	Reserved1              [2]byte
	BeingDebugged          byte
	Reserved2              [1]byte
	Reserved3              [2]uintptr
	Ldr                    uintptr
	ProcessParameters      uintptr
	Reserved4              [104]byte
	Reserved5              [52]uintptr
	PostProcessInitRoutine uintptr
	Reserved6              [128]byte
	Reserved7              [1]uintptr
	SessionId              uint32
}

type PROCESSENTRY32

type PROCESSENTRY32 struct {
	Size            uint32
	Usage           uint32
	ProcessID       uint32
	DefaultHeapID   uintptr
	ModuleID        uint32
	Threads         uint32
	ParentProcessID uint32
	PriClassBase    int32
	Flags           uint32
	ExeFile         [MAX_PATH]uint16
}

type PROCESS_BASIC_INFORMATION

type PROCESS_BASIC_INFORMATION struct {
	Reserved1       uintptr
	PebBaseAddress  uintptr
	Reserved2       [2]uintptr
	UniqueProcessId uintptr
	Reserved3       uintptr
}

type PROCESS_INFORMATION

type PROCESS_INFORMATION struct {
	Process   syscall.Handle
	Thread    syscall.Handle
	ProcessId uint32
	ThreadId  uint32
}

type QUERY_SERVICE_CONFIG

type QUERY_SERVICE_CONFIG struct {
	ServiceType      uint32
	StartType        uint32
	ErrorControl     uint32
	BinaryPathName   *uint16
	LoadOrderGroup   *uint16
	TagId            uint32
	Dependencies     *uint16
	ServiceStartName *uint16
	DisplayName      *uint16
}

type RECT

type RECT struct {
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
}

type REPARSE_DATA_BUFFER

type REPARSE_DATA_BUFFER struct {
	ReparseTag           uint32
	ReparseDataLength    uint16
	Reserved             uint16
	SubstituteNameOffset uint16
	SubstituteNameLength uint16
	PrintNameOffset      uint16
	PrintNameLength      uint16
	Flags                uint32
}

type RTL_CRITICAL_SECTION

type RTL_CRITICAL_SECTION struct {
	DebugInfo      *RTL_CRITICAL_SECTION_DEBUG
	LockCount      int32
	RecursionCount int32
	OwningThread   syscall.Handle
	LockSemaphore  syscall.Handle
	SpinCount      uintptr
}

type RTL_CRITICAL_SECTION_DEBUG

type RTL_CRITICAL_SECTION_DEBUG struct {
	Type                      uint16
	CreatorBackTraceIndex     uint16
	CriticalSection           *RTL_CRITICAL_SECTION
	ProcessLocksList          LIST_ENTRY
	EntryCount                uint32
	ContentionCount           uint32
	Flags                     uint32
	CreatorBackTraceIndexHigh uint16
	SpareWORD                 uint16
}

type RTL_USER_PROCESS_PARAMETERS

type RTL_USER_PROCESS_PARAMETERS struct {
	Reserved1     [16]byte
	Reserved2     [10]uintptr
	ImagePathName UNICODE_STRING
	CommandLine   UNICODE_STRING
}

type SC_ACTION

type SC_ACTION struct {
	Type  int32
	Delay uint32
}

type SECURITY_ATTRIBUTES

type SECURITY_ATTRIBUTES struct {
	Length             uint32
	SecurityDescriptor *byte
	InheritHandle      int32
}

type SECURITY_DESCRIPTOR

type SECURITY_DESCRIPTOR struct {
	Revision byte
	Sbz1     byte
	Control  uint16
	Owner    *SID
	Group    *SID
	Sacl     *ACL
	Dacl     *ACL
}

type SERVICE_DELAYED_AUTO_START_INFO

type SERVICE_DELAYED_AUTO_START_INFO struct {
	DelayedAutostart int32
}

type SERVICE_DESCRIPTION

type SERVICE_DESCRIPTION struct {
	Description *uint16
}

type SERVICE_FAILURE_ACTIONS

type SERVICE_FAILURE_ACTIONS struct {
	ResetPeriod uint32
	RebootMsg   *uint16
	Command     *uint16
	CActions    uint32
	Actions     *SC_ACTION
}

type SERVICE_FAILURE_ACTIONS_FLAG

type SERVICE_FAILURE_ACTIONS_FLAG struct {
	FailureActionsOnNonCrashFailures int32
}

type SERVICE_PREFERRED_NODE_INFO

type SERVICE_PREFERRED_NODE_INFO struct {
	PreferredNode uint16
	Delete        uint16
}

type SERVICE_PRESHUTDOWN_INFO

type SERVICE_PRESHUTDOWN_INFO struct {
	PreshutdownTimeout uint32
}

type SERVICE_REQUIRED_PRIVILEGES_INFO

type SERVICE_REQUIRED_PRIVILEGES_INFO struct {
	RequiredPrivileges *uint16
}

type SERVICE_SID_INFO

type SERVICE_SID_INFO struct {
	ServiceSidType uint32
}

type SERVICE_STATUS

type SERVICE_STATUS struct {
	ServiceType             uint32
	CurrentState            uint32
	ControlsAccepted        uint32
	Win32ExitCode           uint32
	ServiceSpecificExitCode uint32
	CheckPoint              uint32
	WaitHint                uint32
}

type SERVICE_STATUS_PROCESS

type SERVICE_STATUS_PROCESS struct {
	ServiceType             uint32
	CurrentState            uint32
	ControlsAccepted        uint32
	Win32ExitCode           uint32
	ServiceSpecificExitCode uint32
	CheckPoint              uint32
	WaitHint                uint32
	ProcessId               uint32
	ServiceFlags            uint32
}

type SERVICE_TRIGGER

type SERVICE_TRIGGER struct {
	TriggerType    uint32
	Action         uint32
	TriggerSubtype *GUID
	CDataItems     uint32
	DataItems      *SERVICE_TRIGGER_SPECIFIC_DATA_ITEM
}

type SERVICE_TRIGGER_INFO

type SERVICE_TRIGGER_INFO struct {
	CTriggers uint32
	Triggers  *SERVICE_TRIGGER
	Reserved  *byte
}

type SERVICE_TRIGGER_SPECIFIC_DATA_ITEM

type SERVICE_TRIGGER_SPECIFIC_DATA_ITEM struct {
	DataType uint32
	CbData   uint32
	Data     *byte
}

type SHARE_INFO_2 added in v0.0.9

type SHARE_INFO_2 struct {
	Netname     *uint16
	Type        uint32
	Remark      *uint16
	Permissions uint32
	MaxUses     uint32
	CurrentUses uint32
	Path        *uint16
	Passwd      *uint16
}

func (SHARE_INFO_2) ShareInfo added in v0.0.9

func (a SHARE_INFO_2) ShareInfo() ShareInfo

type SHARE_INFO_502 added in v0.0.9

type SHARE_INFO_502 struct {
	Netname             *uint16
	Type                uint32
	Remark              *uint16
	Permissions         uint32
	Max_uses            uint32
	Current_uses        uint32
	Path                *uint16
	Passwd              *uint16
	Reserved            uint32
	Security_descriptor *byte
}

type SHARE_INFO_503 added in v0.0.9

type SHARE_INFO_503 struct {
	Netname             *uint16
	Type                uint32
	Remark              *uint16
	Permissions         uint32
	Max_uses            uint32
	Current_uses        uint32
	Path                *uint16
	Passwd              *uint16
	Servername          *uint16
	Reserved            uint32
	Security_descriptor *byte
}

type SHFILEINFO

type SHFILEINFO struct {
	HIcon         syscall.Handle
	IIcon         int32
	DwAttributes  uint32
	SzDisplayName [MAX_PATH]uint16
	SzTypeName    [80]uint16
}

type SHFILEOPSTRUCT

type SHFILEOPSTRUCT struct {
	Hwnd                 syscall.Handle
	Func                 uint32
	From                 *uint16
	To                   *uint16
	Flags                uint16
	AnyOperationsAborted int32
	NameMappings         *byte
	ProgressTitle        *uint16
}

type SID

type SID struct{}

type SID_AND_ATTRIBUTES

type SID_AND_ATTRIBUTES struct {
	Sid        *SID
	Attributes uint32
}

type SID_AND_ATTRIBUTES_HASH

type SID_AND_ATTRIBUTES_HASH struct {
	SidCount uint32
	SidAttr  *SID_AND_ATTRIBUTES
	Hash     [SID_HASH_SIZE]uintptr
}

type SID_IDENTIFIER_AUTHORITY

type SID_IDENTIFIER_AUTHORITY struct {
	Value [6]byte
}

type STARTUPINFO

type STARTUPINFO struct {
	Cb            uint32
	Reserved      *uint16
	Desktop       *uint16
	Title         *uint16
	X             uint32
	Y             uint32
	XSize         uint32
	YSize         uint32
	XCountChars   uint32
	YCountChars   uint32
	FillAttribute uint32
	Flags         uint32
	ShowWindow    uint16
	CbReserved2   uint16
	Reserved2     *byte
	StdInput      syscall.Handle
	StdOutput     syscall.Handle
	StdError      syscall.Handle
}

type SYSTEM_INFO

type SYSTEM_INFO struct {
	ProcessorArchitecture     uint16
	Reserved                  uint16
	PageSize                  uint32
	MinimumApplicationAddress *byte
	MaximumApplicationAddress *byte
	ActiveProcessorMask       uintptr
	NumberOfProcessors        uint32
	ProcessorType             uint32
	AllocationGranularity     uint32
	ProcessorLevel            uint16
	ProcessorRevision         uint16
}

type ShareInfo added in v0.0.9

type ShareInfo struct {
	Netname     string
	Remark      string
	Path        string
	Passwd      string
	Type        int
	Permissions int
	MaxUses     int
	CurrentUses int
}

type TOKEN_ACCESS_INFORMATION

type TOKEN_ACCESS_INFORMATION struct {
	SidHash            *SID_AND_ATTRIBUTES_HASH
	RestrictedSidHash  *SID_AND_ATTRIBUTES_HASH
	Privileges         *TOKEN_PRIVILEGES
	AuthenticationId   LUID
	TokenType          int32
	ImpersonationLevel int32
	MandatoryPolicy    TOKEN_MANDATORY_POLICY
	Flags              uint32
}

type TOKEN_DEFAULT_DACL

type TOKEN_DEFAULT_DACL struct {
	DefaultDacl *ACL
}

type TOKEN_ELEVATION

type TOKEN_ELEVATION struct {
	TokenIsElevated uint32
}

type TOKEN_GROUPS

type TOKEN_GROUPS struct {
	GroupCount uint32
	Groups     [ANYSIZE_ARRAY]SID_AND_ATTRIBUTES
}

type TOKEN_GROUPS_AND_PRIVILEGES

type TOKEN_GROUPS_AND_PRIVILEGES struct {
	SidCount            uint32
	SidLength           uint32
	Sids                *SID_AND_ATTRIBUTES
	RestrictedSidCount  uint32
	RestrictedSidLength uint32
	RestrictedSids      *SID_AND_ATTRIBUTES
	PrivilegeCount      uint32
	PrivilegeLength     uint32
	Privileges          *LUID_AND_ATTRIBUTES
	AuthenticationId    LUID
}

type TOKEN_LINKED_TOKEN

type TOKEN_LINKED_TOKEN struct {
	LinkedToken syscall.Handle
}

type TOKEN_MANDATORY_LABEL

type TOKEN_MANDATORY_LABEL struct {
	Label SID_AND_ATTRIBUTES
}

type TOKEN_MANDATORY_POLICY

type TOKEN_MANDATORY_POLICY struct {
	Policy uint32
}

type TOKEN_ORIGIN

type TOKEN_ORIGIN struct {
	OriginatingLogonSession LUID
}

type TOKEN_OWNER

type TOKEN_OWNER struct {
	Owner *SID
}

type TOKEN_PRIMARY_GROUP

type TOKEN_PRIMARY_GROUP struct {
	PrimaryGroup *SID
}

type TOKEN_PRIVILEGES

type TOKEN_PRIVILEGES struct {
	PrivilegeCount uint32
	Privileges     [ANYSIZE_ARRAY]LUID_AND_ATTRIBUTES
}

type TOKEN_SOURCE

type TOKEN_SOURCE struct {
	SourceName       [TOKEN_SOURCE_LENGTH]byte
	SourceIdentifier LUID
}

type TOKEN_STATISTICS

type TOKEN_STATISTICS struct {
	TokenId            LUID
	AuthenticationId   LUID
	ExpirationTime     int64
	TokenType          int32
	ImpersonationLevel int32
	DynamicCharged     uint32
	DynamicAvailable   uint32
	GroupCount         uint32
	PrivilegeCount     uint32
	ModifiedId         LUID
}

type TOKEN_USER

type TOKEN_USER struct {
	User SID_AND_ATTRIBUTES
}

type TRUSTEE

type TRUSTEE struct {
	MultipleTrustee          *TRUSTEE
	MultipleTrusteeOperation int32
	TrusteeForm              int32
	TrusteeType              int32
	Name                     *uint16
}

type UNICODE_STRING

type UNICODE_STRING struct {
	Length        uint16
	MaximumLength uint16
	Buffer        uintptr
}

type USER_INFO_1 added in v0.0.10

type USER_INFO_1 struct {
	//	LPWSTR usri1_name;
	//  LPWSTR usri1_password;
	//  DWORD  usri1_password_age;
	//  DWORD  usri1_priv;
	//  LPWSTR usri1_home_dir;
	//  LPWSTR usri1_comment;
	//  DWORD  usri1_flags;
	//  LPWSTR usri1_script_path;
	Name         LPWSTR
	Password     LPWSTR
	Password_age DWORD
	Priv         DWORD
	Home_dir     LPWSTR
	Comment      LPWSTR
	Flags        DWORD
	Script_path  LPWSTR
}

type USER_INFO_3

type USER_INFO_3 struct {
	Name             LPWSTR
	Password         LPWSTR
	Password_age     DWORD
	Priv             DWORD
	Home_dir         LPWSTR
	Comment          LPWSTR
	Flags            DWORD
	Script_path      LPWSTR
	Auth_flags       DWORD
	Full_name        LPWSTR
	Usr_comment      LPWSTR
	Parms            LPWSTR
	Workstations     LPWSTR
	Last_logon       DWORD
	Last_logoff      DWORD
	Acct_expires     DWORD
	Max_storage      DWORD
	Units_per_week   DWORD
	Logon_hours      PBYTE
	Bad_pw_count     DWORD
	Num_logons       DWORD
	Logon_server     LPWSTR
	Country_code     DWORD
	Code_page        DWORD
	User_id          DWORD
	Primary_group_id DWORD
	Profile          LPWSTR
	Home_dir_drive   LPWSTR
	Password_expired DWORD
}

func (USER_INFO_3) UserRecord

func (a USER_INFO_3) UserRecord() UserRecord

type UserRecord

type UserRecord struct {
	Name            string
	Password        string
	PasswordAge     int
	Priv            int
	HomeDir         string
	Comment         string
	Flags           int
	ScriptPath      string
	AuthFlags       int
	FullName        string
	UserComment     string
	Params          string
	Workstations    string
	LastLogon       int
	LastLogoff      int
	AcctExpires     int
	MaxStorage      int
	UnitsPerWeek    int
	BadPwCount      int
	NumLogons       int
	LogonServer     string
	CountryCode     int
	CodePage        int
	UserId          int
	UserSid         string
	PrimaryGroupId  int
	Profile         string
	HomeDirDrive    string
	PasswordExpired int
}

type VARIANT

type VARIANT struct {
	Vt        uint16
	Reserved1 uint16
	Reserved2 uint16
	Reserved3 uint16
	Val       [variantDataBytes / 8]uint64
}

type VS_FIXEDFILEINFO

type VS_FIXEDFILEINFO struct {
	Signature        uint32
	StrucVersion     uint32
	FileVersionMS    uint32
	FileVersionLS    uint32
	ProductVersionMS uint32
	ProductVersionLS uint32
	FileFlagsMask    uint32
	FileFlags        uint32
	FileOS           uint32
	FileType         uint32
	FileSubtype      uint32
	FileDateMS       uint32
	FileDateLS       uint32
}

type WIN32_FIND_DATA

type WIN32_FIND_DATA struct {
	FileAttributes    uint32
	CreationTime      FILETIME
	LastAccessTime    FILETIME
	LastWriteTime     FILETIME
	FileSizeHigh      uint32
	FileSizeLow       uint32
	Reserved0         uint32
	Reserved1         uint32
	FileName          [MAX_PATH]uint16
	AlternateFileName [14]uint16
}

type WTSCLIENT

type WTSCLIENT struct {
	ClientName          [CLIENTNAME_LENGTH + 1]uint16
	Domain              [DOMAIN_LENGTH + 1]uint16
	UserName            [USERNAME_LENGTH + 1]uint16
	WorkDirectory       [MAX_PATH + 1]uint16
	InitialProgram      [MAX_PATH + 1]uint16
	EncryptionLevel     byte
	ClientAddressFamily uint32
	ClientAddress       [CLIENTADDRESS_LENGTH + 1]uint16
	HRes                uint16
	VRes                uint16
	ColorDepth          uint16
	ClientDirectory     [MAX_PATH + 1]uint16
	ClientBuildNumber   uint32
	ClientHardwareId    uint32
	ClientProductId     uint16
	OutBufCountHost     uint16
	OutBufCountClient   uint16
	OutBufLength        uint16
	DeviceId            [MAX_PATH + 1]uint16
}

type WTSINFO

type WTSINFO struct {
	State                   uint32
	SessionId               uint32
	IncomingBytes           uint32
	OutgoingBytes           uint32
	IncomingFrames          uint32
	OutgoingFrames          uint32
	IncomingCompressedBytes uint32
	OutgoingCompressedBytes uint32
	WinStationName          [WINSTATIONNAME_LENGTH]uint16
	Domain                  [DOMAIN_LENGTH]uint16
	UserName                [USERNAME_LENGTH + 1]uint16
	ConnectTime             int64
	DisconnectTime          int64
	LastInputTime           int64
	LogonTime               int64
	CurrentTime             int64
}

type WTSSESSION_NOTIFICATION

type WTSSESSION_NOTIFICATION struct {
	Size      uint32
	SessionId uint32
}

type WTS_CLIENT_ADDRESS

type WTS_CLIENT_ADDRESS struct {
	AddressFamily uint32
	Address       [20]byte
}

type WTS_CLIENT_DISPLAY

type WTS_CLIENT_DISPLAY struct {
	HorizontalResolution uint32
	VerticalResolution   uint32
	ColorDepth           uint32
}

type WTS_PROCESS_INFO

type WTS_PROCESS_INFO struct {
	SessionId   uint32
	ProcessId   uint32
	ProcessName *uint16
	UserSid     uintptr
}

type WTS_PROCESS_INFO_EX

type WTS_PROCESS_INFO_EX struct {
	SessionId          uint32
	ProcessId          uint32
	ProcessName        *uint16
	UserSid            uintptr
	NumberOfThreads    uint32
	HandleCount        uint32
	PagefileUsage      uint32
	PeakPagefileUsage  uint32
	WorkingSetSize     uint32
	PeakWorkingSetSize uint32
	UserTime           uint64 //LARGE_INTEGER
	KernelTime         uint64
}

type WTS_SESSION_INFO

type WTS_SESSION_INFO struct {
	SessionId      uint32
	WinStationName *uint16
	State          uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL