Module: Msf::Post::Windows::Services

Includes:
Error, ExtAPI, Registry
Included in:
MSSQL, ShadowCopy
Defined in:
lib/msf/core/post/windows/services.rb

Overview

Post module mixin for dealing with Windows services

Constant Summary collapse

START_TYPE =
['Boot', 'System', 'Auto', 'Manual', 'Disabled']
START_TYPE_BOOT =
0
START_TYPE_SYSTEM =
1
START_TYPE_AUTO =
2
START_TYPE_MANUAL =
3
START_TYPE_DISABLED =
4
SERVICE_STOPPED =
1
SERVICE_START_PENDING =
2
SERVICE_STOP_PENDING =
3
SERVICE_RUNNING =
4
SERVICE_CONTINUE_PENDING =
5
SERVICE_PAUSE_PENDING =
6
SERVICE_PAUSED =
7
SERVICE_KERNEL_DRIVER =

0x1 A Kernel device driver.

0x2 File system driver, which is also

a Kernel device driver.

0x4 A set of arguments for an adapter.

0x10 A Win32 program that can be started

by the Service Controller and that
obeys the service control protocol.
This type of Win32 service runs in
a process by itself.

0x20 A Win32 service that can share a process

with other Win32 services.

0x110 Same as 0x10 but allowed to interact with desktop.

0x120 Same as 0x20 but allowed to interact with desktop.

0x1
SERVICE_FILE_SYSTEM_DRIVER =
0x2
SERVICE_ADAPTER =
0x4
SERVICE_RECOGNIZER_DRIVER =
0x8
SERVICE_WIN32_OWN_PROCESS =
0x10
SERVICE_WIN32_SHARE_PROCESS =
0x20
SERVICE_WIN32_OWN_PROCESS_INTERACTIVE =
0x110
SERVICE_WIN32_SHARE_PROCESS_INTERACTIVE =
0x120

Constants included from Registry

Registry::HKEY_CLASSES_ROOT, Registry::HKEY_CURRENT_CONFIG, Registry::HKEY_CURRENT_USER, Registry::HKEY_DYN_DATA, Registry::HKEY_LOCAL_MACHINE, Registry::HKEY_PERFORMANCE_DATA, Registry::HKEY_USERS, Registry::REGISTRY_VIEW_32_BIT, Registry::REGISTRY_VIEW_64_BIT, Registry::REGISTRY_VIEW_NATIVE, Registry::REG_BIG_ENDIAN, Registry::REG_BINARY, Registry::REG_DWORD, Registry::REG_EXPAND_SZ, Registry::REG_LINK, Registry::REG_LITTLE_ENDIAN, Registry::REG_MULTI_SZ, Registry::REG_NONE, Registry::REG_QWORD, Registry::REG_SZ

Constants included from Error

Error::ABANDONED_WAIT_0, Error::ABANDONED_WAIT_63, Error::ABANDON_HIBERFILE, Error::ABIOS_ERROR, Error::ACCESS_AUDIT_BY_POLICY, Error::ACCESS_DENIED, Error::ACCESS_DISABLED_BY_POLICY, Error::ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY, Error::ACCESS_DISABLED_WEBBLADE, Error::ACCESS_DISABLED_WEBBLADE_TAMPER, Error::ACCOUNT_DISABLED, Error::ACCOUNT_EXPIRED, Error::ACCOUNT_LOCKED_OUT, Error::ACCOUNT_RESTRICTION, Error::ACPI_ERROR, Error::ACTIVATION_COUNT_EXCEEDED, Error::ACTIVE_CONNECTIONS, Error::ADAP_HDW_ERR, Error::ADDRESS_ALREADY_ASSOCIATED, Error::ADDRESS_NOT_ASSOCIATED, Error::ADVANCED_INSTALLER_FAILED, Error::ALERTED, Error::ALIAS_EXISTS, Error::ALLOCATE_BUCKET, Error::ALLOTTED_SPACE_EXCEEDED, Error::ALL_NODES_NOT_AVAILABLE, Error::ALL_USER_TRUST_QUOTA_EXCEEDED, Error::ALREADY_ASSIGNED, Error::ALREADY_EXISTS, Error::ALREADY_FIBER, Error::ALREADY_INITIALIZED, Error::ALREADY_REGISTERED, Error::ALREADY_RUNNING_LKG, Error::ALREADY_THREAD, Error::ALREADY_WAITING, Error::ALREADY_WIN32, Error::AMBIGUOUS_SYSTEM_DEVICE, Error::APPHELP_BLOCK, Error::APP_INIT_FAILURE, Error::APP_WRONG_OS, Error::ARBITRATION_UNHANDLED, Error::ARENA_TRASHED, Error::ARITHMETIC_OVERFLOW, Error::ASSERTION_FAILURE, Error::ATOMIC_LOCKS_NOT_SUPPORTED, Error::AUDIT_FAILED, Error::AUTHENTICATION_FIREWALL_FAILED, Error::AUTHIP_FAILURE, Error::AUTODATASEG_EXCEEDS_64k, Error::BACKUP_CONTROLLER, Error::BADDB, Error::BADKEY, Error::BADSTARTPOSITION, Error::BAD_ACCESSOR_FLAGS, Error::BAD_ARGUMENTS, Error::BAD_CLUSTERS, Error::BAD_COMMAND, Error::BAD_COMPRESSION_BUFFER, Error::BAD_CONFIGURATION, Error::BAD_CURRENT_DIRECTORY, Error::BAD_DESCRIPTOR_FORMAT, Error::BAD_DEVICE, Error::BAD_DEV_TYPE, Error::BAD_DLL_ENTRYPOINT, Error::BAD_DRIVER, Error::BAD_DRIVER_LEVEL, Error::BAD_ENVIRONMENT, Error::BAD_EXE_FORMAT, Error::BAD_FILE_TYPE, Error::BAD_FORMAT, Error::BAD_FUNCTION_TABLE, Error::BAD_IMPERSONATION_LEVEL, Error::BAD_INHERITANCE_ACL, Error::BAD_LENGTH, Error::BAD_LOGON_SESSION_STATE, Error::BAD_MCFG_TABLE, Error::BAD_NETPATH, Error::BAD_NET_NAME, Error::BAD_NET_RESP, Error::BAD_PATHNAME, Error::BAD_PIPE, Error::BAD_PROFILE, Error::BAD_PROVIDER, Error::BAD_QUERY_SYNTAX, Error::BAD_RECOVERY_POLICY, Error::BAD_REM_ADAP, Error::BAD_SERVICE_ENTRYPOINT, Error::BAD_STACK, Error::BAD_THREADID_ADDR, Error::BAD_TOKEN_TYPE, Error::BAD_UNIT, Error::BAD_USERNAME, Error::BAD_USER_PROFILE, Error::BAD_VALIDATION_CLASS, Error::BEGINNING_OF_MEDIA, Error::BEYOND_VDL, Error::BIOS_FAILED_TO_CONNECT_INTERRUPT, Error::BOOT_ALREADY_ACCEPTED, Error::BROKEN_PIPE, Error::BUFFER_ALL_ZEROS, Error::BUFFER_OVERFLOW, Error::BUSY, Error::BUSY_DRIVE, Error::BUS_RESET, Error::CACHE_PAGE_LOCKED, Error::CALLBACK_POP_STACK, Error::CALLBACK_SUPPLIED_INVALID_DATA, Error::CALL_NOT_IMPLEMENTED, Error::CANCELLED, Error::CANCEL_VIOLATION, Error::CANNOT_ABORT_TRANSACTIONS, Error::CANNOT_ACCEPT_TRANSACTED_WORK, Error::CANNOT_BREAK_OPLOCK, Error::CANNOT_COPY, Error::CANNOT_DETECT_DRIVER_FAILURE, Error::CANNOT_DETECT_PROCESS_ABORT, Error::CANNOT_EXECUTE_FILE_IN_TRANSACTION, Error::CANNOT_FIND_WND_CLASS, Error::CANNOT_GRANT_REQUESTED_OPLOCK, Error::CANNOT_IMPERSONATE, Error::CANNOT_LOAD_REGISTRY_FILE, Error::CANNOT_MAKE, Error::CANNOT_OPEN_PROFILE, Error::CANTFETCHBACKWARDS, Error::CANTOPEN, Error::CANTREAD, Error::CANTSCROLLBACKWARDS, Error::CANTWRITE, Error::CANT_ACCESS_DOMAIN_INFO, Error::CANT_ACCESS_FILE, Error::CANT_BREAK_TRANSACTIONAL_DEPENDENCY, Error::CANT_CREATE_MORE_STREAM_MINIVERSIONS, Error::CANT_CROSS_RM_BOUNDARY, Error::CANT_DELETE_LAST_ITEM, Error::CANT_DISABLE_MANDATORY, Error::CANT_ENABLE_DENY_ONLY, Error::CANT_EVICT_ACTIVE_NODE, Error::CANT_OPEN_ANONYMOUS, Error::CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT, Error::CANT_RECOVER_WITH_HANDLE_OPEN, Error::CANT_RESOLVE_FILENAME, Error::CANT_TERMINATE_SELF, Error::CANT_WAIT, Error::CAN_NOT_COMPLETE, Error::CAN_NOT_DEL_LOCAL_WINS, Error::CARDBUS_NOT_SUPPORTED, Error::CHECKING_FILE_SYSTEM, Error::CHECKOUT_REQUIRED, Error::CHILD_MUST_BE_VOLATILE, Error::CHILD_NOT_COMPLETE, Error::CHILD_WINDOW_MENU, Error::CIRCULAR_DEPENDENCY, Error::CLASS_ALREADY_EXISTS, Error::CLASS_DOES_NOT_EXIST, Error::CLASS_HAS_WINDOWS, Error::CLEANER_CARTRIDGE_INSTALLED, Error::CLEANER_CARTRIDGE_SPENT, Error::CLEANER_SLOT_NOT_SET, Error::CLEANER_SLOT_SET, Error::CLIENT_SERVER_PARAMETERS_INVALID, Error::CLIPBOARD_NOT_OPEN, Error::CLIPPING_NOT_SUPPORTED, Error::CLUSCFG_ALREADY_COMMITTED, Error::CLUSCFG_ROLLBACK_FAILED, Error::CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT, Error::CLUSTERLOG_CHKPOINT_NOT_FOUND, Error::CLUSTERLOG_CORRUPT, Error::CLUSTERLOG_EXCEEDS_MAXSIZE, Error::CLUSTERLOG_NOT_ENOUGH_SPACE, Error::CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE, Error::CLUSTER_BACKUP_IN_PROGRESS, Error::CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME, Error::CLUSTER_CANT_DESERIALIZE_DATA, Error::CLUSTER_DATABASE_SEQMISMATCH, Error::CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS, Error::CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS, Error::CLUSTER_EVICT_INVALID_REQUEST, Error::CLUSTER_EVICT_WITHOUT_CLEANUP, Error::CLUSTER_GROUP_BUSY, Error::CLUSTER_GROUP_MOVING, Error::CLUSTER_GROUP_SINGLETON_RESOURCE, Error::CLUSTER_GUM_NOT_LOCKER, Error::CLUSTER_INCOMPATIBLE_VERSIONS, Error::CLUSTER_INSTANCE_ID_MISMATCH, Error::CLUSTER_INTERNAL_INVALID_FUNCTION, Error::CLUSTER_INVALID_IPV6_NETWORK, Error::CLUSTER_INVALID_IPV6_TUNNEL_NETWORK, Error::CLUSTER_INVALID_NETWORK, Error::CLUSTER_INVALID_NETWORK_PROVIDER, Error::CLUSTER_INVALID_NODE, Error::CLUSTER_INVALID_REQUEST, Error::CLUSTER_INVALID_SECURITY_DESCRIPTOR, Error::CLUSTER_INVALID_STRING_FORMAT, Error::CLUSTER_INVALID_STRING_TERMINATION, Error::CLUSTER_IPADDR_IN_USE, Error::CLUSTER_JOIN_ABORTED, Error::CLUSTER_JOIN_IN_PROGRESS, Error::CLUSTER_JOIN_NOT_IN_PROGRESS, Error::CLUSTER_LAST_INTERNAL_NETWORK, Error::CLUSTER_LOCAL_NODE_NOT_FOUND, Error::CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED, Error::CLUSTER_MAX_NODES_IN_CLUSTER, Error::CLUSTER_MEMBERSHIP_HALT, Error::CLUSTER_MEMBERSHIP_INVALID_STATE, Error::CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME, Error::CLUSTER_NETINTERFACE_EXISTS, Error::CLUSTER_NETINTERFACE_NOT_FOUND, Error::CLUSTER_NETWORK_ALREADY_OFFLINE, Error::CLUSTER_NETWORK_ALREADY_ONLINE, Error::CLUSTER_NETWORK_EXISTS, Error::CLUSTER_NETWORK_HAS_DEPENDENTS, Error::CLUSTER_NETWORK_NOT_FOUND, Error::CLUSTER_NETWORK_NOT_FOUND_FOR_IP, Error::CLUSTER_NETWORK_NOT_INTERNAL, Error::CLUSTER_NODE_ALREADY_DOWN, Error::CLUSTER_NODE_ALREADY_HAS_DFS_ROOT, Error::CLUSTER_NODE_ALREADY_MEMBER, Error::CLUSTER_NODE_ALREADY_UP, Error::CLUSTER_NODE_DOWN, Error::CLUSTER_NODE_EXISTS, Error::CLUSTER_NODE_NOT_FOUND, Error::CLUSTER_NODE_NOT_MEMBER, Error::CLUSTER_NODE_NOT_PAUSED, Error::CLUSTER_NODE_NOT_READY, Error::CLUSTER_NODE_PAUSED, Error::CLUSTER_NODE_SHUTTING_DOWN, Error::CLUSTER_NODE_UNREACHABLE, Error::CLUSTER_NODE_UP, Error::CLUSTER_NOT_INSTALLED, Error::CLUSTER_NOT_SHARED_VOLUME, Error::CLUSTER_NO_NET_ADAPTERS, Error::CLUSTER_NO_QUORUM, Error::CLUSTER_NO_RPC_PACKAGES_REGISTERED, Error::CLUSTER_NO_SECURITY_CONTEXT, Error::CLUSTER_NULL_DATA, Error::CLUSTER_OBJECT_ALREADY_USED, Error::CLUSTER_OLD_VERSION, Error::CLUSTER_OWNER_NOT_IN_PREFLIST, Error::CLUSTER_PARAMETER_MISMATCH, Error::CLUSTER_PARAMETER_OUT_OF_BOUNDS, Error::CLUSTER_PARTIAL_READ, Error::CLUSTER_PARTIAL_SEND, Error::CLUSTER_PARTIAL_WRITE, Error::CLUSTER_POISONED, Error::CLUSTER_PROPERTY_DATA_TYPE_MISMATCH, Error::CLUSTER_QUORUMLOG_NOT_FOUND, Error::CLUSTER_REGISTRY_INVALID_FUNCTION, Error::CLUSTER_RESNAME_NOT_FOUND, Error::CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE, Error::CLUSTER_RESOURCE_CONFIGURATION_ERROR, Error::CLUSTER_RESOURCE_PROVIDER_FAILED, Error::CLUSTER_RESOURCE_TYPE_BUSY, Error::CLUSTER_RESOURCE_TYPE_NOT_FOUND, Error::CLUSTER_RESTYPE_NOT_SUPPORTED, Error::CLUSTER_RHS_FAILED_INITIALIZATION, Error::CLUSTER_SHARED_VOLUMES_IN_USE, Error::CLUSTER_SHUTTING_DOWN, Error::CLUSTER_SINGLETON_RESOURCE, Error::CLUSTER_SYSTEM_CONFIG_CHANGED, Error::CLUSTER_TOO_MANY_NODES, Error::CLUSTER_USE_SHARED_VOLUMES_API, Error::CLUSTER_WATCHDOG_TERMINATING, Error::CLUSTER_WRONG_OS_VERSION, Error::COLORSPACE_MISMATCH, Error::COMMITMENT_LIMIT, Error::COMMITMENT_MINIMUM, Error::COMPRESSION_DISABLED, Error::COMPRESSION_NOT_ALLOWED_IN_TRANSACTION, Error::CONNECTED_OTHER_PASSWORD, Error::CONNECTED_OTHER_PASSWORD_DEFAULT, Error::CONNECTION_ABORTED, Error::CONNECTION_ACTIVE, Error::CONNECTION_COUNT_LIMIT, Error::CONNECTION_INVALID, Error::CONNECTION_REFUSED, Error::CONNECTION_UNAVAIL, Error::CONTENT_BLOCKED, Error::CONTEXT_EXPIRED, Error::CONTINUE, Error::CONTROLLING_IEPORT, Error::CONTROL_C_EXIT, Error::CONTROL_ID_NOT_FOUND, Error::CONVERT_TO_LARGE, Error::CORE_DRIVER_PACKAGE_NOT_FOUND, Error::CORE_RESOURCE, Error::CORRUPT_SYSTEM_FILE, Error::COULD_NOT_INTERPRET, Error::COULD_NOT_RESIZE_LOG, Error::COUNTER_TIMEOUT, Error::CRASH_DUMP, Error::CRC, Error::CREATE_FAILED, Error::CRM_PROTOCOL_ALREADY_EXISTS, Error::CRM_PROTOCOL_NOT_FOUND, Error::CSCSHARE_OFFLINE, Error::CSV_VOLUME_NOT_LOCAL, Error::CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE, Error::CS_ENCRYPTION_FILE_NOT_CSE, Error::CS_ENCRYPTION_INVALID_SERVER_RESPONSE, Error::CS_ENCRYPTION_NEW_ENCRYPTED_FILE, Error::CS_ENCRYPTION_UNSUPPORTED_SERVER, Error::CTX_ACCOUNT_RESTRICTION, Error::CTX_BAD_VIDEO_MODE, Error::CTX_CANNOT_MAKE_EVENTLOG_ENTRY, Error::CTX_CDM_CONNECT, Error::CTX_CDM_DISCONNECT, Error::CTX_CLIENT_LICENSE_IN_USE, Error::CTX_CLIENT_LICENSE_NOT_SET, Error::CTX_CLIENT_QUERY_TIMEOUT, Error::CTX_CLOSE_PENDING, Error::CTX_CONSOLE_CONNECT, Error::CTX_CONSOLE_DISCONNECT, Error::CTX_ENCRYPTION_LEVEL_REQUIRED, Error::CTX_GRAPHICS_INVALID, Error::CTX_INVALID_MODEMNAME, Error::CTX_INVALID_PD, Error::CTX_INVALID_WD, Error::CTX_LICENSE_CLIENT_INVALID, Error::CTX_LICENSE_EXPIRED, Error::CTX_LICENSE_NOT_AVAILABLE, Error::CTX_LOGON_DISABLED, Error::CTX_MODEM_INF_NOT_FOUND, Error::CTX_MODEM_RESPONSE_BUSY, Error::CTX_MODEM_RESPONSE_ERROR, Error::CTX_MODEM_RESPONSE_NO_CARRIER, Error::CTX_MODEM_RESPONSE_NO_DIALTONE, Error::CTX_MODEM_RESPONSE_TIMEOUT, Error::CTX_MODEM_RESPONSE_VOICE, Error::CTX_NOT_CONSOLE, Error::CTX_NO_FORCE_LOGOFF, Error::CTX_NO_OUTBUF, Error::CTX_PD_NOT_FOUND, Error::CTX_SECURITY_LAYER_ERROR, Error::CTX_SERVICE_NAME_COLLISION, Error::CTX_SESSION_IN_USE, Error::CTX_SHADOW_DENIED, Error::CTX_SHADOW_DISABLED, Error::CTX_SHADOW_ENDED_BY_MODE_CHANGE, Error::CTX_SHADOW_INVALID, Error::CTX_SHADOW_NOT_RUNNING, Error::CTX_TD_ERROR, Error::CTX_WD_NOT_FOUND, Error::CTX_WINSTATIONS_DISABLED, Error::CTX_WINSTATION_ACCESS_DENIED, Error::CTX_WINSTATION_ALREADY_EXISTS, Error::CTX_WINSTATION_BUSY, Error::CTX_WINSTATION_NAME_INVALID, Error::CTX_WINSTATION_NOT_FOUND, Error::CURRENT_DIRECTORY, Error::CURRENT_DOMAIN_NOT_ALLOWED, Error::CURRENT_TRANSACTION_NOT_VALID, Error::DATABASE_BACKUP_CORRUPT, Error::DATABASE_DOES_NOT_EXIST, Error::DATABASE_FAILURE, Error::DATABASE_FULL, Error::DATATYPE_MISMATCH, Error::DATA_LOST_REPAIR, Error::DATA_NOT_ACCEPTED, Error::DBG_COMMAND_EXCEPTION, Error::DBG_CONTINUE, Error::DBG_CONTROL_BREAK, Error::DBG_CONTROL_C, Error::DBG_EXCEPTION_HANDLED, Error::DBG_EXCEPTION_NOT_HANDLED, Error::DBG_PRINTEXCEPTION_C, Error::DBG_REPLY_LATER, Error::DBG_RIPEXCEPTION, Error::DBG_TERMINATE_PROCESS, Error::DBG_TERMINATE_THREAD, Error::DBG_UNABLE_TO_PROVIDE_HANDLE, Error::DC_NOT_FOUND, Error::DDE_FAIL, Error::DEBUGGER_INACTIVE, Error::DEBUG_ATTACH_FAILED, Error::DECRYPTION_FAILED, Error::DELAY_LOAD_FAILED, Error::DELETE_PENDING, Error::DELETING_ICM_XFORM, Error::DEPENDENCY_ALREADY_EXISTS, Error::DEPENDENCY_NOT_ALLOWED, Error::DEPENDENCY_NOT_FOUND, Error::DEPENDENCY_TREE_TOO_COMPLEX, Error::DEPENDENT_RESOURCE_EXISTS, Error::DEPENDENT_RESOURCE_PROPERTY_CONFLICT, Error::DEPENDENT_SERVICES_RUNNING, Error::DESTINATION_ELEMENT_FULL, Error::DESTROY_OBJECT_OF_OTHER_THREAD, Error::DEVICE_ALREADY_ATTACHED, Error::DEVICE_ALREADY_REMEMBERED, Error::DEVICE_DOOR_OPEN, Error::DEVICE_ENUMERATION_ERROR, Error::DEVICE_IN_USE, Error::DEVICE_NOT_AVAILABLE, Error::DEVICE_NOT_CONNECTED, Error::DEVICE_NOT_PARTITIONED, Error::DEVICE_REINITIALIZATION_NEEDED, Error::DEVICE_REMOVED, Error::DEVICE_REQUIRES_CLEANING, Error::DEV_NOT_EXIST, Error::DHCP_ADDRESS_CONFLICT, Error::DIFFERENT_SERVICE_ACCOUNT, Error::DIRECTORY, Error::DIRECTORY_NOT_RM, Error::DIRECT_ACCESS_HANDLE, Error::DIR_EFS_DISALLOWED, Error::DIR_NOT_EMPTY, Error::DIR_NOT_ROOT, Error::DISCARDED, Error::DISK_CHANGE, Error::DISK_CORRUPT, Error::DISK_FULL, Error::DISK_OPERATION_FAILED, Error::DISK_QUOTA_EXCEEDED, Error::DISK_RECALIBRATE_FAILED, Error::DISK_REPAIR_DISABLED, Error::DISK_RESET_FAILED, Error::DISK_TOO_FRAGMENTED, Error::DLL_INIT_FAILED, Error::DLL_INIT_FAILED_LOGOFF, Error::DLL_MIGHT_BE_INCOMPATIBLE, Error::DLL_MIGHT_BE_INSECURE, Error::DLL_NOT_FOUND, Error::DNS_ALIAS_LOOP, Error::DNS_AUTOZONE_ALREADY_EXISTS, Error::DNS_AXFR, Error::DNS_BACKGROUND_LOADING, Error::DNS_BAD_PACKET, Error::DNS_CANNOT_FIND_ROOT_HINTS, Error::DNS_CNAME_COLLISION, Error::DNS_CNAME_LOOP, Error::DNS_DATAFILE_OPEN_FAILURE, Error::DNS_DATAFILE_PARSING, Error::DNS_DELEGATION_REQUIRED, Error::DNS_DNAME_COLLISION, Error::DNS_DP_ALREADY_ENLISTED, Error::DNS_DP_ALREADY_EXISTS, Error::DNS_DP_DOES_NOT_EXIST, Error::DNS_DP_FSMO_ERROR, Error::DNS_DP_NOT_AVAILABLE, Error::DNS_DP_NOT_ENLISTED, Error::DNS_DS_UNAVAILABLE, Error::DNS_DS_ZONE_ALREADY_EXISTS, Error::DNS_DWORD_VALUE_TOO_LARGE, Error::DNS_DWORD_VALUE_TOO_SMALL, Error::DNS_FILE_WRITEBACK_FAILED, Error::DNS_FORWARDER_ALREADY_EXISTS, Error::DNS_INCONSISTENT_ROOT_HINTS, Error::DNS_INFO_ADDED_LOCAL_WINS, Error::DNS_INFO_AXFR_COMPLETE, Error::DNS_INFO_NO_RECORDS, Error::DNS_INVALID_DATAFILE_NAME, Error::DNS_INVALID_IP_ADDRESS, Error::DNS_INVALID_NAME_CHAR, Error::DNS_INVALID_POLICY_TABLE, Error::DNS_INVALID_PROPERTY, Error::DNS_INVALID_TYPE, Error::DNS_INVALID_ZONE_OPERATION, Error::DNS_INVALID_ZONE_TYPE, Error::DNS_NAME_DOES_NOT_EXIST, Error::DNS_NAME_NOT_IN_ZONE, Error::DNS_NBSTAT_INIT_FAILED, Error::DNS_NEED_SECONDARY_ADDRESSES, Error::DNS_NEED_WINS_SERVERS, Error::DNS_NODE_CREATION_FAILED, Error::DNS_NODE_IS_CNAME, Error::DNS_NODE_IS_DNAME, Error::DNS_NON_RFC_NAME, Error::DNS_NOT_ALLOWED_ON_RODC, Error::DNS_NOT_ALLOWED_ON_ROOT_SERVER, Error::DNS_NOT_ALLOWED_UNDER_DELEGATION, Error::DNS_NOT_ALLOWED_UNDER_DNAME, Error::DNS_NOT_UNIQUE, Error::DNS_NO_BOOTFILE_IF_DS_ZONE, Error::DNS_NO_CREATE_CACHE_DATA, Error::DNS_NO_DNS_SERVERS, Error::DNS_NO_PACKET, Error::DNS_NO_TCPIP, Error::DNS_NO_ZONE_INFO, Error::DNS_NUMERIC_NAME, Error::DNS_PRIMARY_REQUIRES_DATAFILE, Error::DNS_RCODE, Error::DNS_RCODE_BADKEY, Error::DNS_RCODE_BADSIG, Error::DNS_RCODE_BADTIME, Error::DNS_RCODE_FORMAT_ERROR, Error::DNS_RCODE_NAME_ERROR, Error::DNS_RCODE_NOTAUTH, Error::DNS_RCODE_NOTZONE, Error::DNS_RCODE_NOT_IMPLEMENTED, Error::DNS_RCODE_NXRRSET, Error::DNS_RCODE_REFUSED, Error::DNS_RCODE_SERVER_FAILURE, Error::DNS_RCODE_YXDOMAIN, Error::DNS_RCODE_YXRRSET, Error::DNS_RECORD_ALREADY_EXISTS, Error::DNS_RECORD_DOES_NOT_EXIST, Error::DNS_RECORD_FORMAT, Error::DNS_RECORD_ONLY_AT_ZONE_ROOT, Error::DNS_RECORD_TIMED_OUT, Error::DNS_SECONDARY_DATA, Error::DNS_SECONDARY_REQUIRES_MASTER_IP, Error::DNS_SOA_DELETE_INVALID, Error::DNS_STATUS_CONTINUE_NEEDED, Error::DNS_STATUS_DOTTED_NAME, Error::DNS_STATUS_FQDN, Error::DNS_STATUS_SINGLE_PART_NAME, Error::DNS_TRY_AGAIN_LATER, Error::DNS_UNKNOWN_RECORD_TYPE, Error::DNS_UNSECURE_PACKET, Error::DNS_WARNING_DOMAIN_UNDELETED, Error::DNS_WARNING_PTR_CREATE_FAILED, Error::DNS_WINS_INIT_FAILED, Error::DNS_ZONE_ALREADY_EXISTS, Error::DNS_ZONE_CONFIGURATION_ERROR, Error::DNS_ZONE_CREATION_FAILED, Error::DNS_ZONE_DOES_NOT_EXIST, Error::DNS_ZONE_HAS_NO_NS_RECORDS, Error::DNS_ZONE_HAS_NO_SOA_RECORD, Error::DNS_ZONE_IS_SHUTDOWN, Error::DNS_ZONE_LOCKED, Error::DNS_ZONE_NOT_SECONDARY, Error::DNS_ZONE_REQUIRES_MASTER_IP, Error::DOMAIN_CONTROLLER_EXISTS, Error::DOMAIN_CONTROLLER_NOT_FOUND, Error::DOMAIN_CTRLR_CONFIG_ERROR, Error::DOMAIN_EXISTS, Error::DOMAIN_LIMIT_EXCEEDED, Error::DOMAIN_TRUST_INCONSISTENT, Error::DOWNGRADE_DETECTED, Error::DRIVERS_LEAKING_LOCKED_PAGES, Error::DRIVER_BLOCKED, Error::DRIVER_CANCEL_TIMEOUT, Error::DRIVER_DATABASE_ERROR, Error::DRIVER_FAILED_PRIOR_UNLOAD, Error::DRIVER_FAILED_SLEEP, Error::DRIVER_PROCESS_TERMINATED, Error::DRIVE_LOCKED, Error::DRIVE_MEDIA_MISMATCH, Error::DS_ADD_REPLICA_INHIBITED, Error::DS_ADMIN_LIMIT_EXCEEDED, Error::DS_AFFECTS_MULTIPLE_DSAS, Error::DS_AG_CANT_HAVE_UNIVERSAL_MEMBER, Error::DS_ALIASED_OBJ_MISSING, Error::DS_ALIAS_DEREF_PROBLEM, Error::DS_ALIAS_POINTS_TO_ALIAS, Error::DS_ALIAS_PROBLEM, Error::DS_ATTRIBUTE_OR_VALUE_EXISTS, Error::DS_ATTRIBUTE_OWNED_BY_SAM, Error::DS_ATTRIBUTE_TYPE_UNDEFINED, Error::DS_ATT_ALREADY_EXISTS, Error::DS_ATT_IS_NOT_ON_OBJ, Error::DS_ATT_NOT_DEF_FOR_CLASS, Error::DS_ATT_NOT_DEF_IN_SCHEMA, Error::DS_ATT_SCHEMA_REQ_ID, Error::DS_ATT_SCHEMA_REQ_SYNTAX, Error::DS_ATT_VAL_ALREADY_EXISTS, Error::DS_AUDIT_FAILURE, Error::DS_AUTHORIZATION_FAILED, Error::DS_AUTH_METHOD_NOT_SUPPORTED, Error::DS_AUTH_UNKNOWN, Error::DS_AUX_CLS_TEST_FAIL, Error::DS_BACKLINK_WITHOUT_LINK, Error::DS_BAD_ATT_SCHEMA_SYNTAX, Error::DS_BAD_HIERARCHY_FILE, Error::DS_BAD_INSTANCE_TYPE, Error::DS_BAD_NAME_SYNTAX, Error::DS_BAD_RDN_ATT_ID_SYNTAX, Error::DS_BUILD_HIERARCHY_TABLE_FAILED, Error::DS_BUSY, Error::DS_CANT_ACCESS_REMOTE_PART_OF_AD, Error::DS_CANT_ADD_ATT_VALUES, Error::DS_CANT_ADD_SYSTEM_ONLY, Error::DS_CANT_ADD_TO_GC, Error::DS_CANT_CACHE_ATT, Error::DS_CANT_CACHE_CLASS, Error::DS_CANT_CREATE_IN_NONDOMAIN_NC, Error::DS_CANT_CREATE_UNDER_SCHEMA, Error::DS_CANT_DELETE, Error::DS_CANT_DELETE_DSA_OBJ, Error::DS_CANT_DEL_MASTER_CROSSREF, Error::DS_CANT_DEMOTE_WITH_WRITEABLE_NC, Error::DS_CANT_DEREF_ALIAS, Error::DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN, Error::DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF, Error::DS_CANT_FIND_DC_FOR_SRC_DOMAIN, Error::DS_CANT_FIND_DSA_OBJ, Error::DS_CANT_FIND_EXPECTED_NC, Error::DS_CANT_FIND_NC_IN_CACHE, Error::DS_CANT_MIX_MASTER_AND_REPS, Error::DS_CANT_MOD_OBJ_CLASS, Error::DS_CANT_MOD_PRIMARYGROUPID, Error::DS_CANT_MOD_SYSTEM_ONLY, Error::DS_CANT_MOVE_ACCOUNT_GROUP, Error::DS_CANT_MOVE_APP_BASIC_GROUP, Error::DS_CANT_MOVE_APP_QUERY_GROUP, Error::DS_CANT_MOVE_DELETED_OBJECT, Error::DS_CANT_MOVE_RESOURCE_GROUP, Error::DS_CANT_ON_NON_LEAF, Error::DS_CANT_ON_RDN, Error::DS_CANT_REMOVE_ATT_CACHE, Error::DS_CANT_REMOVE_CLASS_CACHE, Error::DS_CANT_REM_MISSING_ATT, Error::DS_CANT_REM_MISSING_ATT_VAL, Error::DS_CANT_REPLACE_HIDDEN_REC, Error::DS_CANT_RETRIEVE_ATTS, Error::DS_CANT_RETRIEVE_CHILD, Error::DS_CANT_RETRIEVE_DN, Error::DS_CANT_RETRIEVE_INSTANCE, Error::DS_CANT_RETRIEVE_SD, Error::DS_CANT_START, Error::DS_CANT_TREE_DELETE_CRITICAL_OBJ, Error::DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS, Error::DS_CHILDREN_EXIST, Error::DS_CLASS_MUST_BE_CONCRETE, Error::DS_CLASS_NOT_DSA, Error::DS_CLIENT_LOOP, Error::DS_CODE_INCONSISTENCY, Error::DS_COMPARE_FALSE, Error::DS_COMPARE_TRUE, Error::DS_CONFIDENTIALITY_REQUIRED, Error::DS_CONFIG_PARAM_MISSING, Error::DS_CONSTRAINT_VIOLATION, Error::DS_CONSTRUCTED_ATT_MOD, Error::DS_CONTROL_NOT_FOUND, Error::DS_COULDNT_CONTACT_FSMO, Error::DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE, Error::DS_COULDNT_LOCK_TREE_FOR_DELETE, Error::DS_COULDNT_UPDATE_SPNS, Error::DS_COUNTING_AB_INDICES_FAILED, Error::DS_CROSS_DOMAIN_CLEANUP_REQD, Error::DS_CROSS_DOM_MOVE_ERROR, Error::DS_CROSS_NC_DN_RENAME, Error::DS_CROSS_REF_BUSY, Error::DS_CROSS_REF_EXISTS, Error::DS_CR_IMPOSSIBLE_TO_VALIDATE, Error::DS_CR_IMPOSSIBLE_TO_VALIDATE_V2, Error::DS_DATABASE_ERROR, Error::DS_DECODING_ERROR, Error::DS_DESTINATION_AUDITING_NOT_ENABLED, Error::DS_DESTINATION_DOMAIN_NOT_IN_FOREST, Error::DS_DIFFERENT_REPL_EPOCHS, Error::DS_DISALLOWED_IN_SYSTEM_CONTAINER, Error::DS_DOMAIN_NAME_EXISTS_IN_FOREST, Error::DS_DOMAIN_RENAME_IN_PROGRESS, Error::DS_DOMAIN_VERSION_TOO_HIGH, Error::DS_DOMAIN_VERSION_TOO_LOW, Error::DS_DRA_ABANDON_SYNC, Error::DS_DRA_ACCESS_DENIED, Error::DS_DRA_BAD_DN, Error::DS_DRA_BAD_INSTANCE_TYPE, Error::DS_DRA_BAD_NC, Error::DS_DRA_BUSY, Error::DS_DRA_CONNECTION_FAILED, Error::DS_DRA_CORRUPT_UTD_VECTOR, Error::DS_DRA_DB_ERROR, Error::DS_DRA_DN_EXISTS, Error::DS_DRA_EARLIER_SCHEMA_CONLICT, Error::DS_DRA_EXTN_CONNECTION_FAILED, Error::DS_DRA_GENERIC, Error::DS_DRA_INCOMPATIBLE_PARTIAL_SET, Error::DS_DRA_INCONSISTENT_DIT, Error::DS_DRA_INTERNAL_ERROR, Error::DS_DRA_INVALID_PARAMETER, Error::DS_DRA_MAIL_PROBLEM, Error::DS_DRA_MISSING_KRBTGT_SECRET, Error::DS_DRA_MISSING_PARENT, Error::DS_DRA_NAME_COLLISION, Error::DS_DRA_NOT_SUPPORTED, Error::DS_DRA_NO_REPLICA, Error::DS_DRA_OBJ_IS_REP_SOURCE, Error::DS_DRA_OBJ_NC_MISMATCH, Error::DS_DRA_OUT_OF_MEM, Error::DS_DRA_OUT_SCHEDULE_WINDOW, Error::DS_DRA_PREEMPTED, Error::DS_DRA_RECYCLED_TARGET, Error::DS_DRA_REF_ALREADY_EXISTS, Error::DS_DRA_REF_NOT_FOUND, Error::DS_DRA_REPL_PENDING, Error::DS_DRA_RPC_CANCELLED, Error::DS_DRA_SCHEMA_CONFLICT, Error::DS_DRA_SCHEMA_INFO_SHIP, Error::DS_DRA_SCHEMA_MISMATCH, Error::DS_DRA_SECRETS_DENIED, Error::DS_DRA_SHUTDOWN, Error::DS_DRA_SINK_DISABLED, Error::DS_DRA_SOURCE_DISABLED, Error::DS_DRA_SOURCE_IS_PARTIAL_REPLICA, Error::DS_DRA_SOURCE_REINSTALLED, Error::DS_DRS_EXTENSIONS_CHANGED, Error::DS_DSA_MUST_BE_INT_MASTER, Error::DS_DST_DOMAIN_NOT_NATIVE, Error::DS_DST_NC_MISMATCH, Error::DS_DS_REQUIRED, Error::DS_DUPLICATE_ID_FOUND, Error::DS_DUP_LDAP_DISPLAY_NAME, Error::DS_DUP_LINK_ID, Error::DS_DUP_MAPI_ID, Error::DS_DUP_MSDS_INTID, Error::DS_DUP_OID, Error::DS_DUP_RDN, Error::DS_DUP_SCHEMA_ID_GUID, Error::DS_ENCODING_ERROR, Error::DS_EPOCH_MISMATCH, Error::DS_EXISTING_AD_CHILD_NC, Error::DS_EXISTS_IN_AUX_CLS, Error::DS_EXISTS_IN_MAY_HAVE, Error::DS_EXISTS_IN_MUST_HAVE, Error::DS_EXISTS_IN_POSS_SUP, Error::DS_EXISTS_IN_RDNATTID, Error::DS_EXISTS_IN_SUB_CLS, Error::DS_FILTER_UNKNOWN, Error::DS_FILTER_USES_CONTRUCTED_ATTRS, Error::DS_FLAT_NAME_EXISTS_IN_FOREST, Error::DS_FOREST_VERSION_TOO_HIGH, Error::DS_FOREST_VERSION_TOO_LOW, Error::DS_GCVERIFY_ERROR, Error::DS_GC_NOT_AVAILABLE, Error::DS_GC_REQUIRED, Error::DS_GENERIC_ERROR, Error::DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER, Error::DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER, Error::DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER, Error::DS_GOVERNSID_MISSING, Error::DS_GROUP_CONVERSION_ERROR, Error::DS_HAVE_PRIMARY_MEMBERS, Error::DS_HIERARCHY_TABLE_MALLOC_FAILED, Error::DS_HIERARCHY_TABLE_TOO_DEEP, Error::DS_ILLEGAL_BASE_SCHEMA_MOD, Error::DS_ILLEGAL_MOD_OPERATION, Error::DS_ILLEGAL_SUPERIOR, Error::DS_ILLEGAL_XDOM_MOVE_OPERATION, Error::DS_INAPPROPRIATE_AUTH, Error::DS_INAPPROPRIATE_MATCHING, Error::DS_INCOMPATIBLE_CONTROLS_USED, Error::DS_INCOMPATIBLE_VERSION, Error::DS_INCORRECT_ROLE_OWNER, Error::DS_INIT_FAILURE, Error::DS_INIT_FAILURE_CONSOLE, Error::DS_INSTALL_NO_SCH_VERSION_IN_INIFILE, Error::DS_INSTALL_NO_SRC_SCH_VERSION, Error::DS_INSTALL_SCHEMA_MISMATCH, Error::DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT, Error::DS_INSUFF_ACCESS_RIGHTS, Error::DS_INTERNAL_FAILURE, Error::DS_INVALID_ATTRIBUTE_SYNTAX, Error::DS_INVALID_DMD, Error::DS_INVALID_DN_SYNTAX, Error::DS_INVALID_GROUP_TYPE, Error::DS_INVALID_LDAP_DISPLAY_NAME, Error::DS_INVALID_NAME_FOR_SPN, Error::DS_INVALID_ROLE_OWNER, Error::DS_INVALID_SCRIPT, Error::DS_INVALID_SEARCH_FLAG, Error::DS_INVALID_SEARCH_FLAG_SUBTREE, Error::DS_INVALID_SEARCH_FLAG_TUPLE, Error::DS_IS_LEAF, Error::DS_KEY_NOT_UNIQUE, Error::DS_LDAP_SEND_QUEUE_FULL, Error::DS_LINK_ID_NOT_AVAILABLE, Error::DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER, Error::DS_LOCAL_ERROR, Error::DS_LOCAL_MEMBER_OF_LOCAL_ONLY, Error::DS_LOOKUP_FAILURE, Error::DS_LOOP_DETECT, Error::DS_LOW_DSA_VERSION, Error::DS_MACHINE_ACCOUNT_CREATED_PRENT4, Error::DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED, Error::DS_MAPI_ID_NOT_AVAILABLE, Error::DS_MASTERDSA_REQUIRED, Error::DS_MAX_OBJ_SIZE_EXCEEDED, Error::DS_MEMBERSHIP_EVALUATED_LOCALLY, Error::DS_MISSING_EXPECTED_ATT, Error::DS_MISSING_FSMO_SETTINGS, Error::DS_MISSING_INFRASTRUCTURE_CONTAINER, Error::DS_MISSING_REQUIRED_ATT, Error::DS_MISSING_SUPREF, Error::DS_MODIFYDN_DISALLOWED_BY_FLAG, Error::DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE, Error::DS_MODIFYDN_WRONG_GRANDPARENT, Error::DS_MUST_BE_RUN_ON_DST_DC, Error::DS_NAME_DOMAIN_ONLY, Error::DS_NAME_ERROR_NOT_UNIQUE, Error::DS_NAME_NOT_FOUND, Error::DS_NAME_NOT_UNIQUE, Error::DS_NAME_NO_MAPPING, Error::DS_NAME_NO_SYNTACTICAL_MAPPING, Error::DS_NAME_REFERENCE_INVALID, Error::DS_NAME_RESOLVING, Error::DS_NAME_TOO_LONG, Error::DS_NAME_TOO_MANY_PARTS, Error::DS_NAME_TRUST_REFERRAL, Error::DS_NAME_TYPE_UNKNOWN, Error::DS_NAME_UNPARSEABLE, Error::DS_NAME_VALUE_TOO_LONG, Error::DS_NAMING_MASTER_GC, Error::DS_NAMING_VIOLATION, Error::DS_NCNAME_MISSING_CR_REF, Error::DS_NCNAME_MUST_BE_NC, Error::DS_NC_MUST_HAVE_NC_PARENT, Error::DS_NC_STILL_HAS_DSAS, Error::DS_NONEXISTENT_MAY_HAVE, Error::DS_NONEXISTENT_MUST_HAVE, Error::DS_NONEXISTENT_POSS_SUP, Error::DS_NONSAFE_SCHEMA_CHANGE, Error::DS_NON_ASQ_SEARCH, Error::DS_NON_BASE_SEARCH, Error::DS_NOTIFY_FILTER_TOO_COMPLEX, Error::DS_NOT_AN_OBJECT, Error::DS_NOT_AUTHORITIVE_FOR_DST_NC, Error::DS_NOT_CLOSEST, Error::DS_NOT_INSTALLED, Error::DS_NOT_ON_BACKLINK, Error::DS_NOT_SUPPORTED, Error::DS_NOT_SUPPORTED_SORT_ORDER, Error::DS_NO_ATTRIBUTE_OR_VALUE, Error::DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN, Error::DS_NO_CHAINED_EVAL, Error::DS_NO_CHAINING, Error::DS_NO_CHECKPOINT_WITH_PDC, Error::DS_NO_CROSSREF_FOR_NC, Error::DS_NO_DELETED_NAME, Error::DS_NO_FPO_IN_UNIVERSAL_GROUPS, Error::DS_NO_MORE_RIDS, Error::DS_NO_MSDS_INTID, Error::DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN, Error::DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN, Error::DS_NO_NTDSA_OBJECT, Error::DS_NO_OBJECT_MOVE_IN_SCHEMA_NC, Error::DS_NO_PARENT_OBJECT, Error::DS_NO_PKT_PRIVACY_ON_CONNECTION, Error::DS_NO_RDN_DEFINED_IN_SCHEMA, Error::DS_NO_REF_DOMAIN, Error::DS_NO_REQUESTED_ATTS_FOUND, Error::DS_NO_RESULTS_RETURNED, Error::DS_NO_RIDS_ALLOCATED, Error::DS_NO_SERVER_OBJECT, Error::DS_NO_SUCH_OBJECT, Error::DS_NO_TREE_DELETE_ABOVE_NC, Error::DS_NTDSCRIPT_PROCESS_ERROR, Error::DS_NTDSCRIPT_SYNTAX_ERROR, Error::DS_OBJECT_CLASS_REQUIRED, Error::DS_OBJECT_RESULTS_TOO_LARGE, Error::DS_OBJ_CLASS_NOT_DEFINED, Error::DS_OBJ_CLASS_NOT_SUBCLASS, Error::DS_OBJ_CLASS_VIOLATION, Error::DS_OBJ_GUID_EXISTS, Error::DS_OBJ_NOT_FOUND, Error::DS_OBJ_STRING_NAME_EXISTS, Error::DS_OBJ_TOO_LARGE, Error::DS_OFFSET_RANGE_ERROR, Error::DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS, Error::DS_OID_NOT_FOUND, Error::DS_OPERATIONS_ERROR, Error::DS_OUT_OF_SCOPE, Error::DS_OUT_OF_VERSION_STORE, Error::DS_PARAM_ERROR, Error::DS_PARENT_IS_AN_ALIAS, Error::DS_PDC_OPERATION_IN_PROGRESS, Error::DS_POLICY_NOT_KNOWN, Error::DS_PROTOCOL_ERROR, Error::DS_RANGE_CONSTRAINT, Error::DS_RDN_DOESNT_MATCH_SCHEMA, Error::DS_RECALCSCHEMA_FAILED, Error::DS_REFERRAL, Error::DS_REFERRAL_LIMIT_EXCEEDED, Error::DS_REFUSING_FSMO_ROLES, Error::DS_REMOTE_CROSSREF_OP_FAILED, Error::DS_REPLICATOR_ONLY, Error::DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR, Error::DS_REPL_LIFETIME_EXCEEDED, Error::DS_RESERVED_LINK_ID, Error::DS_RESERVED_MAPI_ID, Error::DS_RIDMGR_INIT_ERROR, Error::DS_ROLE_NOT_VERIFIED, Error::DS_ROOT_CANT_BE_SUBREF, Error::DS_ROOT_MUST_BE_NC, Error::DS_ROOT_REQUIRES_CLASS_TOP, Error::DS_SAM_INIT_FAILURE, Error::DS_SAM_INIT_FAILURE_CONSOLE, Error::DS_SAM_NEED_BOOTKEY_FLOPPY, Error::DS_SAM_NEED_BOOTKEY_PASSWORD, Error::DS_SCHEMA_ALLOC_FAILED, Error::DS_SCHEMA_NOT_LOADED, Error::DS_SCHEMA_UPDATE_DISALLOWED, Error::DS_SECURITY_CHECKING_ERROR, Error::DS_SECURITY_ILLEGAL_MODIFY, Error::DS_SEC_DESC_INVALID, Error::DS_SEC_DESC_TOO_SHORT, Error::DS_SEMANTIC_ATT_TEST, Error::DS_SENSITIVE_GROUP_VIOLATION, Error::DS_SERVER_DOWN, Error::DS_SHUTTING_DOWN, Error::DS_SINGLE_USER_MODE_FAILED, Error::DS_SINGLE_VALUE_CONSTRAINT, Error::DS_SIZELIMIT_EXCEEDED, Error::DS_SORT_CONTROL_MISSING, Error::DS_SOURCE_AUDITING_NOT_ENABLED, Error::DS_SOURCE_DOMAIN_IN_FOREST, Error::DS_SRC_AND_DST_NC_IDENTICAL, Error::DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH, Error::DS_SRC_DC_MUST_BE_SP4_OR_GREATER, Error::DS_SRC_GUID_MISMATCH, Error::DS_SRC_NAME_MISMATCH, Error::DS_SRC_OBJ_NOT_GROUP_OR_USER, Error::DS_SRC_SID_EXISTS_IN_FOREST, Error::DS_STRING_SD_CONVERSION_FAILED, Error::DS_STRONG_AUTH_REQUIRED, Error::DS_SUBREF_MUST_HAVE_PARENT, Error::DS_SUBTREE_NOTIFY_NOT_NC_HEAD, Error::DS_SUB_CLS_TEST_FAIL, Error::DS_SYNTAX_MISMATCH, Error::DS_THREAD_LIMIT_EXCEEDED, Error::DS_TIMELIMIT_EXCEEDED, Error::DS_TREE_DELETE_NOT_FINISHED, Error::DS_UNABLE_TO_SURRENDER_ROLES, Error::DS_UNAVAILABLE, Error::DS_UNAVAILABLE_CRIT_EXTENSION, Error::DS_UNICODEPWD_NOT_IN_QUOTES, Error::DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER, Error::DS_UNKNOWN_ERROR, Error::DS_UNKNOWN_OPERATION, Error::DS_UNWILLING_TO_PERFORM, Error::DS_USER_BUFFER_TO_SMALL, Error::DS_VERSION_CHECK_FAILURE, Error::DS_WKO_CONTAINER_CANNOT_BE_SPECIAL, Error::DS_WRONG_LINKED_ATT_SYNTAX, Error::DS_WRONG_OM_OBJ_CLASS, Error::DUPLICATE_SERVICE_NAME, Error::DUPLICATE_TAG, Error::DUP_DOMAINNAME, Error::DUP_NAME, Error::DYNLINK_FROM_INVALID_RING, Error::EAS_DIDNT_FIT, Error::EAS_NOT_SUPPORTED, Error::EA_ACCESS_DENIED, Error::EA_FILE_CORRUPT, Error::EA_LIST_INCONSISTENT, Error::EA_TABLE_FULL, Error::EC_CIRCULAR_FORWARDING, Error::EC_CREDSTORE_FULL, Error::EC_CRED_NOT_FOUND, Error::EC_LOG_DISABLED, Error::EC_NO_ACTIVE_CHANNEL, Error::EC_SUBSCRIPTION_CANNOT_ACTIVATE, Error::EFS_ALG_BLOB_TOO_BIG, Error::EFS_DISABLED, Error::EFS_NOT_ALLOWED_IN_TRANSACTION, Error::EFS_SERVER_NOT_TRUSTED, Error::EFS_VERSION_NOT_SUPPORT, Error::ELEVATION_REQUIRED, Error::EMPTY, Error::ENCRYPTION_FAILED, Error::END_OF_MEDIA, Error::ENLISTMENT_NOT_FOUND, Error::ENLISTMENT_NOT_SUPERIOR, Error::ENVVAR_NOT_FOUND, Error::EOM_OVERFLOW, Error::EPT_S_CANT_CREATE, Error::EPT_S_CANT_PERFORM_OP, Error::EPT_S_INVALID_ENTRY, Error::EPT_S_NOT_REGISTERED, Error::ERRORS_ENCOUNTERED, Error::EVALUATION_EXPIRATION, Error::EVENTLOG_CANT_START, Error::EVENTLOG_FILE_CHANGED, Error::EVENTLOG_FILE_CORRUPT, Error::EVENT_DONE, Error::EVENT_PENDING, Error::EVT_CANNOT_OPEN_CHANNEL_OF_QUERY, Error::EVT_CHANNEL_CANNOT_ACTIVATE, Error::EVT_CHANNEL_NOT_FOUND, Error::EVT_CONFIGURATION_ERROR, Error::EVT_EVENT_DEFINITION_NOT_FOUND, Error::EVT_EVENT_TEMPLATE_NOT_FOUND, Error::EVT_FILTER_ALREADYSCOPED, Error::EVT_FILTER_INVARG, Error::EVT_FILTER_INVTEST, Error::EVT_FILTER_INVTYPE, Error::EVT_FILTER_NOTELTSET, Error::EVT_FILTER_OUT_OF_RANGE, Error::EVT_FILTER_PARSEERR, Error::EVT_FILTER_TOO_COMPLEX, Error::EVT_FILTER_UNEXPECTEDTOKEN, Error::EVT_FILTER_UNSUPPORTEDOP, Error::EVT_INVALID_CHANNEL_PATH, Error::EVT_INVALID_CHANNEL_PROPERTY_VALUE, Error::EVT_INVALID_EVENT_DATA, Error::EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL, Error::EVT_INVALID_PUBLISHER_NAME, Error::EVT_INVALID_PUBLISHER_PROPERTY_VALUE, Error::EVT_INVALID_QUERY, Error::EVT_MALFORMED_XML_TEXT, Error::EVT_MAX_INSERTS_REACHED, Error::EVT_MESSAGE_ID_NOT_FOUND, Error::EVT_MESSAGE_LOCALE_NOT_FOUND, Error::EVT_MESSAGE_NOT_FOUND, Error::EVT_NON_VALIDATING_MSXML, Error::EVT_PUBLISHER_DISABLED, Error::EVT_PUBLISHER_METADATA_NOT_FOUND, Error::EVT_QUERY_RESULT_INVALID_POSITION, Error::EVT_QUERY_RESULT_STALE, Error::EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL, Error::EVT_UNRESOLVED_PARAMETER_INSERT, Error::EVT_UNRESOLVED_VALUE_INSERT, Error::EVT_VERSION_TOO_NEW, Error::EVT_VERSION_TOO_OLD, Error::EXCEPTION_IN_RESOURCE_CALL, Error::EXCEPTION_IN_SERVICE, Error::EXCL_SEM_ALREADY_OWNED, Error::EXE_CANNOT_MODIFY_SIGNED_BINARY, Error::EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY, Error::EXE_MACHINE_TYPE_MISMATCH, Error::EXE_MARKED_INVALID, Error::EXPIRED_HANDLE, Error::EXTENDED_ERROR, Error::EXTRANEOUS_INFORMATION, Error::FAILED_DRIVER_ENTRY, Error::FAILED_SERVICE_CONTROLLER_CONNECT, Error::FAIL_FAST_EXCEPTION, Error::FAIL_I24, Error::FAIL_NOACTION_REBOOT, Error::FAIL_REBOOT_INITIATED, Error::FAIL_REBOOT_REQUIRED, Error::FAIL_RESTART, Error::FAIL_SHUTDOWN, Error::FATAL_APP_EXIT, Error::FILEMARK_DETECTED, Error::FILENAME_EXCED_RANGE, Error::FILE_CHECKED_OUT, Error::FILE_CORRUPT, Error::FILE_ENCRYPTED, Error::FILE_EXISTS, Error::FILE_IDENTITY_NOT_PERSISTENT, Error::FILE_INVALID, Error::FILE_NOT_ENCRYPTED, Error::FILE_NOT_FOUND, Error::FILE_OFFLINE, Error::FILE_READ_ONLY, Error::FILE_SHARE_RESOURCE_CONFLICT, Error::FILE_SYSTEM_LIMITATION, Error::FILE_TOO_LARGE, Error::FIRMWARE_UPDATED, Error::FLOATED_SECTION, Error::FLOAT_MULTIPLE_FAULTS, Error::FLOAT_MULTIPLE_TRAPS, Error::FLOPPY_BAD_REGISTERS, Error::FLOPPY_ID_MARK_NOT_FOUND, Error::FLOPPY_UNKNOWN_ERROR, Error::FLOPPY_VOLUME, Error::FLOPPY_WRONG_CYLINDER, Error::FORMS_AUTH_REQUIRED, Error::FOUND_OUT_OF_SCOPE, Error::FRS_ERR_AUTHENTICATION, Error::FRS_ERR_CHILD_TO_PARENT_COMM, Error::FRS_ERR_INSUFFICIENT_PRIV, Error::FRS_ERR_INTERNAL, Error::FRS_ERR_INTERNAL_API, Error::FRS_ERR_INVALID_API_SEQUENCE, Error::FRS_ERR_INVALID_SERVICE_PARAMETER, Error::FRS_ERR_PARENT_AUTHENTICATION, Error::FRS_ERR_PARENT_INSUFFICIENT_PRIV, Error::FRS_ERR_PARENT_TO_CHILD_COMM, Error::FRS_ERR_SERVICE_COMM, Error::FRS_ERR_STARTING_SERVICE, Error::FRS_ERR_STOPPING_SERVICE, Error::FRS_ERR_SYSVOL_DEMOTE, Error::FRS_ERR_SYSVOL_IS_BUSY, Error::FRS_ERR_SYSVOL_POPULATE, Error::FRS_ERR_SYSVOL_POPULATE_TIMEOUT, Error::FSFILTER_OP_COMPLETED_SUCCESSFULLY, Error::FS_DRIVER_REQUIRED, Error::FT_READ_RECOVERY_FROM_BACKUP, Error::FT_WRITE_RECOVERY, Error::FULLSCREEN_MODE, Error::FULL_BACKUP, Error::FUNCTION_FAILED, Error::FUNCTION_NOT_CALLED, Error::GENERIC_COMMAND_FAILED, Error::GENERIC_NOT_MAPPED, Error::GEN_FAILURE, Error::GLOBAL_ONLY_HOOK, Error::GRACEFUL_DISCONNECT, Error::GROUP_EXISTS, Error::GROUP_NOT_AVAILABLE, Error::GROUP_NOT_FOUND, Error::GROUP_NOT_ONLINE, Error::GUID_SUBSTITUTION_MADE, Error::HANDLES_CLOSED, Error::HANDLE_DISK_FULL, Error::HANDLE_EOF, Error::HANDLE_NO_LONGER_VALID, Error::HASH_NOT_PRESENT, Error::HASH_NOT_SUPPORTED, Error::HEURISTIC_DAMAGE_POSSIBLE, Error::HIBERNATED, Error::HIBERNATION_FAILURE, Error::HOOK_NEEDS_HMOD, Error::HOOK_NOT_INSTALLED, Error::HOOK_TYPE_NOT_ALLOWED, Error::HOST_DOWN, Error::HOST_NODE_NOT_AVAILABLE, Error::HOST_NODE_NOT_GROUP_OWNER, Error::HOST_NODE_NOT_RESOURCE_OWNER, Error::HOST_UNREACHABLE, Error::HOTKEY_ALREADY_REGISTERED, Error::HOTKEY_NOT_REGISTERED, Error::HWNDS_HAVE_DIFF_PARENT, Error::ICM_NOT_ENABLED, Error::IEPORT_FULL, Error::ILLEGAL_CHARACTER, Error::ILLEGAL_DLL_RELOCATION, Error::ILLEGAL_ELEMENT_ADDRESS, Error::ILLEGAL_FLOAT_CONTEXT, Error::ILL_FORMED_PASSWORD, Error::IMAGE_MACHINE_TYPE_MISMATCH, Error::IMAGE_MACHINE_TYPE_MISMATCH_EXE, Error::IMAGE_NOT_AT_BASE, Error::IMAGE_SUBSYSTEM_NOT_PRESENT, Error::IMPLEMENTATION_LIMIT, Error::IMPLICIT_TRANSACTION_NOT_SUPPORTED, Error::INCOMPATIBLE_SERVICE_PRIVILEGE, Error::INCOMPATIBLE_SERVICE_SID_TYPE, Error::INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING, Error::INCORRECT_ADDRESS, Error::INCORRECT_SIZE, Error::INC_BACKUP, Error::INDEX_ABSENT, Error::INDIGENOUS_TYPE, Error::INDOUBT_TRANSACTIONS_EXIST, Error::INFLOOP_IN_RELOC_CHAIN, Error::INSTALL_ALREADY_RUNNING, Error::INSTALL_FAILURE, Error::INSTALL_LANGUAGE_UNSUPPORTED, Error::INSTALL_LOG_FAILURE, Error::INSTALL_NOTUSED, Error::INSTALL_PACKAGE_INVALID, Error::INSTALL_PACKAGE_OPEN_FAILED, Error::INSTALL_PACKAGE_REJECTED, Error::INSTALL_PACKAGE_VERSION, Error::INSTALL_PLATFORM_UNSUPPORTED, Error::INSTALL_REMOTE_DISALLOWED, Error::INSTALL_REMOTE_PROHIBITED, Error::INSTALL_SERVICE_FAILURE, Error::INSTALL_SERVICE_SAFEBOOT, Error::INSTALL_SOURCE_ABSENT, Error::INSTALL_SUSPEND, Error::INSTALL_TEMP_UNWRITABLE, Error::INSTALL_TRANSFORM_FAILURE, Error::INSTALL_TRANSFORM_REJECTED, Error::INSTALL_UI_FAILURE, Error::INSTALL_USEREXIT, Error::INSTRUCTION_MISALIGNMENT, Error::INSUFFICIENT_BUFFER, Error::INSUFFICIENT_LOGON_INFO, Error::INSUFFICIENT_POWER, Error::INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE, Error::INTERNAL_DB_CORRUPTION, Error::INTERNAL_DB_ERROR, Error::INTERNAL_ERROR, Error::INTERRUPT_STILL_CONNECTED, Error::INTERRUPT_VECTOR_ALREADY_CONNECTED, Error::INVALID_ACCEL_HANDLE, Error::INVALID_ACCESS, Error::INVALID_ACCOUNT_NAME, Error::INVALID_ACE_CONDITION, Error::INVALID_ACL, Error::INVALID_ADDRESS, Error::INVALID_AT_INTERRUPT_TIME, Error::INVALID_BLOCK, Error::INVALID_BLOCK_LENGTH, Error::INVALID_CATEGORY, Error::INVALID_CLEANER, Error::INVALID_CLUSTER_IPV6_ADDRESS, Error::INVALID_CMM, Error::INVALID_COLORINDEX, Error::INVALID_COLORSPACE, Error::INVALID_COMBOBOX_MESSAGE, Error::INVALID_COMMAND_LINE, Error::INVALID_COMPUTERNAME, Error::INVALID_CRUNTIME_PARAMETER, Error::INVALID_CURSOR_HANDLE, Error::INVALID_DATA, Error::INVALID_DATATYPE, Error::INVALID_DEVICE_OBJECT_PARAMETER, Error::INVALID_DLL, Error::INVALID_DOMAINNAME, Error::INVALID_DOMAIN_ROLE, Error::INVALID_DOMAIN_STATE, Error::INVALID_DRIVE, Error::INVALID_DRIVE_OBJECT, Error::INVALID_DWP_HANDLE, Error::INVALID_EA_HANDLE, Error::INVALID_EA_NAME, Error::INVALID_EDIT_HEIGHT, Error::INVALID_ENVIRONMENT, Error::INVALID_EVENTNAME, Error::INVALID_EVENT_COUNT, Error::INVALID_EXE_SIGNATURE, Error::INVALID_FIELD, Error::INVALID_FILTER_PROC, Error::INVALID_FLAGS, Error::INVALID_FLAG_NUMBER, Error::INVALID_FORM_NAME, Error::INVALID_FORM_SIZE, Error::INVALID_FUNCTION, Error::INVALID_GROUPNAME, Error::INVALID_GROUP_ATTRIBUTES, Error::INVALID_GW_COMMAND, Error::INVALID_HANDLE, Error::INVALID_HANDLE_STATE, Error::INVALID_HANDLE_VALUE, Error::INVALID_HOOK_FILTER, Error::INVALID_HOOK_HANDLE, Error::INVALID_HW_PROFILE, Error::INVALID_ICON_HANDLE, Error::INVALID_ID_AUTHORITY, Error::INVALID_IMAGE_HASH, Error::INVALID_IMPORT_OF_NON_DLL, Error::INVALID_INDEX, Error::INVALID_KEYBOARD_HANDLE, Error::INVALID_LABEL, Error::INVALID_LB_MESSAGE, Error::INVALID_LDT_DESCRIPTOR, Error::INVALID_LDT_OFFSET, Error::INVALID_LDT_SIZE, Error::INVALID_LEVEL, Error::INVALID_LIBRARY, Error::INVALID_LIST_FORMAT, Error::INVALID_LOCK_RANGE, Error::INVALID_LOGON_HOURS, Error::INVALID_LOGON_TYPE, Error::INVALID_MEDIA, Error::INVALID_MEDIA_POOL, Error::INVALID_MEMBER, Error::INVALID_MENU_HANDLE, Error::INVALID_MESSAGE, Error::INVALID_MESSAGEDEST, Error::INVALID_MESSAGENAME, Error::INVALID_MINALLOCSIZE, Error::INVALID_MODULETYPE, Error::INVALID_MONITOR_HANDLE, Error::INVALID_MSGBOX_STYLE, Error::INVALID_NAME, Error::INVALID_NETNAME, Error::INVALID_OPERATION, Error::INVALID_OPERATION_ON_QUORUM, Error::INVALID_OPLOCK_PROTOCOL, Error::INVALID_ORDINAL, Error::INVALID_OWNER, Error::INVALID_PARAMETER, Error::INVALID_PASSWORD, Error::INVALID_PASSWORDNAME, Error::INVALID_PATCH_XML, Error::INVALID_PIXEL_FORMAT, Error::INVALID_PLUGPLAY_DEVICE_PATH, Error::INVALID_PORT_ATTRIBUTES, Error::INVALID_PRIMARY_GROUP, Error::INVALID_PRINTER_COMMAND, Error::INVALID_PRINTER_NAME, Error::INVALID_PRINTER_STATE, Error::INVALID_PRINT_MONITOR, Error::INVALID_PRIORITY, Error::INVALID_PROFILE, Error::INVALID_QUOTA_LOWER, Error::INVALID_REPARSE_DATA, Error::INVALID_SCROLLBAR_RANGE, Error::INVALID_SECURITY_DESCR, Error::INVALID_SEGDPL, Error::INVALID_SEGMENT_NUMBER, Error::INVALID_SEPARATOR_FILE, Error::INVALID_SERVER_STATE, Error::INVALID_SERVICENAME, Error::INVALID_SERVICE_ACCOUNT, Error::INVALID_SERVICE_CONTROL, Error::INVALID_SERVICE_LOCK, Error::INVALID_SHARENAME, Error::INVALID_SHOWWIN_COMMAND, Error::INVALID_SID, Error::INVALID_SIGNAL_NUMBER, Error::INVALID_SPI_VALUE, Error::INVALID_STACKSEG, Error::INVALID_STARTING_CODESEG, Error::INVALID_STATE, Error::INVALID_SUB_AUTHORITY, Error::INVALID_TABLE, Error::INVALID_TARGET_HANDLE, Error::INVALID_TASK_INDEX, Error::INVALID_TASK_NAME, Error::INVALID_THREAD_ID, Error::INVALID_TIME, Error::INVALID_TRANSACTION, Error::INVALID_TRANSFORM, Error::INVALID_UNWIND_TARGET, Error::INVALID_USER_BUFFER, Error::INVALID_USER_PRINCIPAL_NAME, Error::INVALID_VARIANT, Error::INVALID_VERIFY_SWITCH, Error::INVALID_WINDOW_HANDLE, Error::INVALID_WINDOW_STYLE, Error::INVALID_WORKSTATION, Error::IOPL_NOT_ENABLED, Error::IO_DEVICE, Error::IO_INCOMPLETE, Error::IO_PENDING, Error::IO_PRIVILEGE_FAILED, Error::IO_REISSUE_AS_CACHED, Error::IPSEC_AUTH_FIREWALL_DROP, Error::IPSEC_BAD_SPI, Error::IPSEC_CLEAR_TEXT_DROP, Error::IPSEC_DEFAULT_MM_AUTH_NOT_FOUND, Error::IPSEC_DEFAULT_MM_POLICY_NOT_FOUND, Error::IPSEC_DEFAULT_QM_POLICY_NOT_FOUND, Error::IPSEC_DOSP_BLOCK, Error::IPSEC_DOSP_INVALID_PACKET, Error::IPSEC_DOSP_KEYMOD_NOT_ALLOWED, Error::IPSEC_DOSP_MAX_ENTRIES, Error::IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES, Error::IPSEC_DOSP_NOT_INSTALLED, Error::IPSEC_DOSP_RECEIVED_MULTICAST, Error::IPSEC_DOSP_STATE_LOOKUP_FAILED, Error::IPSEC_IKE_ADD_UPDATE_KEY_FAILED, Error::IPSEC_IKE_ATTRIB_FAIL, Error::IPSEC_IKE_AUTHORIZATION_FAILURE, Error::IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY, Error::IPSEC_IKE_AUTH_FAIL, Error::IPSEC_IKE_BENIGN_REINIT, Error::IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH, Error::IPSEC_IKE_CGA_AUTH_FAILED, Error::IPSEC_IKE_COEXISTENCE_SUPPRESS, Error::IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED, Error::IPSEC_IKE_CRL_FAILED, Error::IPSEC_IKE_DECRYPT, Error::IPSEC_IKE_DH_FAIL, Error::IPSEC_IKE_DH_FAILURE, Error::IPSEC_IKE_DOS_COOKIE_SENT, Error::IPSEC_IKE_DROP_NO_RESPONSE, Error::IPSEC_IKE_ENCRYPT, Error::IPSEC_IKE_ERROR, Error::IPSEC_IKE_FAILQUERYSSP, Error::IPSEC_IKE_FAILSSPINIT, Error::IPSEC_IKE_GENERAL_PROCESSING_ERROR, Error::IPSEC_IKE_GETSPIFAIL, Error::IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE, Error::IPSEC_IKE_INVALID_AUTH_ALG, Error::IPSEC_IKE_INVALID_AUTH_PAYLOAD, Error::IPSEC_IKE_INVALID_CERT_KEYLEN, Error::IPSEC_IKE_INVALID_CERT_TYPE, Error::IPSEC_IKE_INVALID_COOKIE, Error::IPSEC_IKE_INVALID_ENCRYPT_ALG, Error::IPSEC_IKE_INVALID_FILTER, Error::IPSEC_IKE_INVALID_GROUP, Error::IPSEC_IKE_INVALID_HASH, Error::IPSEC_IKE_INVALID_HASH_ALG, Error::IPSEC_IKE_INVALID_HASH_SIZE, Error::IPSEC_IKE_INVALID_HEADER, Error::IPSEC_IKE_INVALID_KEY_USAGE, Error::IPSEC_IKE_INVALID_MM_FOR_QM, Error::IPSEC_IKE_INVALID_PAYLOAD, Error::IPSEC_IKE_INVALID_POLICY, Error::IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY, Error::IPSEC_IKE_INVALID_SIG, Error::IPSEC_IKE_INVALID_SIGNATURE, Error::IPSEC_IKE_INVALID_SITUATION, Error::IPSEC_IKE_KERBEROS_ERROR, Error::IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL, Error::IPSEC_IKE_LOAD_FAILED, Error::IPSEC_IKE_LOAD_SOFT_SA, Error::IPSEC_IKE_MM_ACQUIRE_DROP, Error::IPSEC_IKE_MM_DELAY_DROP, Error::IPSEC_IKE_MM_EXPIRED, Error::IPSEC_IKE_MM_LIMIT, Error::IPSEC_IKE_NEGOTIATION_DISABLED, Error::IPSEC_IKE_NEGOTIATION_PENDING, Error::IPSEC_IKE_NEG_STATUS_END, Error::IPSEC_IKE_NOTCBPRIV, Error::IPSEC_IKE_NO_CERT, Error::IPSEC_IKE_NO_MM_POLICY, Error::IPSEC_IKE_NO_PEER_CERT, Error::IPSEC_IKE_NO_POLICY, Error::IPSEC_IKE_NO_PRIVATE_KEY, Error::IPSEC_IKE_NO_PUBLIC_KEY, Error::IPSEC_IKE_OUT_OF_MEMORY, Error::IPSEC_IKE_PEER_CRL_FAILED, Error::IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE, Error::IPSEC_IKE_PEER_MM_ASSUMED_INVALID, Error::IPSEC_IKE_POLICY_CHANGE, Error::IPSEC_IKE_POLICY_MATCH, Error::IPSEC_IKE_PROCESS_ERR, Error::IPSEC_IKE_PROCESS_ERR_CERT, Error::IPSEC_IKE_PROCESS_ERR_CERT_REQ, Error::IPSEC_IKE_PROCESS_ERR_DELETE, Error::IPSEC_IKE_PROCESS_ERR_HASH, Error::IPSEC_IKE_PROCESS_ERR_ID, Error::IPSEC_IKE_PROCESS_ERR_KE, Error::IPSEC_IKE_PROCESS_ERR_NATOA, Error::IPSEC_IKE_PROCESS_ERR_NONCE, Error::IPSEC_IKE_PROCESS_ERR_NOTIFY, Error::IPSEC_IKE_PROCESS_ERR_PROP, Error::IPSEC_IKE_PROCESS_ERR_SA, Error::IPSEC_IKE_PROCESS_ERR_SIG, Error::IPSEC_IKE_PROCESS_ERR_TRANS, Error::IPSEC_IKE_PROCESS_ERR_VENDOR, Error::IPSEC_IKE_QM_ACQUIRE_DROP, Error::IPSEC_IKE_QM_DELAY_DROP, Error::IPSEC_IKE_QM_EXPIRED, Error::IPSEC_IKE_QM_LIMIT, Error::IPSEC_IKE_QM_LIMIT_REAP, Error::IPSEC_IKE_QUEUE_DROP_MM, Error::IPSEC_IKE_QUEUE_DROP_NO_MM, Error::IPSEC_IKE_RATELIMIT_DROP, Error::IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING, Error::IPSEC_IKE_RPC_DELETE, Error::IPSEC_IKE_SA_DELETED, Error::IPSEC_IKE_SA_REAPED, Error::IPSEC_IKE_SECLOADFAIL, Error::IPSEC_IKE_SHUTTING_DOWN, Error::IPSEC_IKE_SOFT_SA_TORN_DOWN, Error::IPSEC_IKE_SRVACQFAIL, Error::IPSEC_IKE_SRVQUERYCRED, Error::IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE, Error::IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE, Error::IPSEC_IKE_TIMED_OUT, Error::IPSEC_IKE_TOO_MANY_FILTERS, Error::IPSEC_IKE_UNEXPECTED_MESSAGE_ID, Error::IPSEC_IKE_UNKNOWN_DOI, Error::IPSEC_IKE_UNSUPPORTED_ID, Error::IPSEC_INTEGRITY_CHECK_FAILED, Error::IPSEC_INVALID_PACKET, Error::IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING, Error::IPSEC_MM_AUTH_EXISTS, Error::IPSEC_MM_AUTH_IN_USE, Error::IPSEC_MM_AUTH_NOT_FOUND, Error::IPSEC_MM_AUTH_PENDING_DELETION, Error::IPSEC_MM_FILTER_EXISTS, Error::IPSEC_MM_FILTER_NOT_FOUND, Error::IPSEC_MM_FILTER_PENDING_DELETION, Error::IPSEC_MM_POLICY_EXISTS, Error::IPSEC_MM_POLICY_IN_USE, Error::IPSEC_MM_POLICY_NOT_FOUND, Error::IPSEC_MM_POLICY_PENDING_DELETION, Error::IPSEC_QM_POLICY_EXISTS, Error::IPSEC_QM_POLICY_IN_USE, Error::IPSEC_QM_POLICY_NOT_FOUND, Error::IPSEC_QM_POLICY_PENDING_DELETION, Error::IPSEC_REPLAY_CHECK_FAILED, Error::IPSEC_SA_LIFETIME_EXPIRED, Error::IPSEC_THROTTLE_DROP, Error::IPSEC_TRANSPORT_FILTER_EXISTS, Error::IPSEC_TRANSPORT_FILTER_NOT_FOUND, Error::IPSEC_TRANSPORT_FILTER_PENDING_DELETION, Error::IPSEC_TUNNEL_FILTER_EXISTS, Error::IPSEC_TUNNEL_FILTER_NOT_FOUND, Error::IPSEC_TUNNEL_FILTER_PENDING_DELETION, Error::IPSEC_WRONG_SA, Error::IP_ADDRESS_CONFLICT1, Error::IP_ADDRESS_CONFLICT2, Error::IRQ_BUSY, Error::IS_JOINED, Error::IS_JOIN_PATH, Error::IS_JOIN_TARGET, Error::IS_SUBSTED, Error::IS_SUBST_PATH, Error::IS_SUBST_TARGET, Error::ITERATED_DATA_EXCEEDS_64k, Error::JOIN_TO_JOIN, Error::JOIN_TO_SUBST, Error::JOURNAL_DELETE_IN_PROGRESS, Error::JOURNAL_ENTRY_DELETED, Error::JOURNAL_HOOK_SET, Error::JOURNAL_NOT_ACTIVE, Error::KERNEL_APC, Error::KEY_DELETED, Error::KEY_HAS_CHILDREN, Error::KM_DRIVER_BLOCKED, Error::LABEL_TOO_LONG, Error::LAST_ADMIN, Error::LB_WITHOUT_TABSTOPS, Error::LIBRARY_FULL, Error::LIBRARY_OFFLINE, Error::LICENSE_QUOTA_EXCEEDED, Error::LISTBOX_ID_NOT_FOUND, Error::LM_CROSS_ENCRYPTION_REQUIRED, Error::LOCAL_USER_SESSION_KEY, Error::LOCKED, Error::LOCK_FAILED, Error::LOCK_VIOLATION, Error::LOGIN_TIME_RESTRICTION, Error::LOGIN_WKSTA_RESTRICTION, Error::LOGON_FAILURE, Error::LOGON_NOT_GRANTED, Error::LOGON_SERVER_CONFLICT, Error::LOGON_SESSION_COLLISION, Error::LOGON_SESSION_EXISTS, Error::LOGON_TYPE_NOT_GRANTED, Error::LOG_APPENDED_FLUSH_FAILED, Error::LOG_ARCHIVE_IN_PROGRESS, Error::LOG_ARCHIVE_NOT_IN_PROGRESS, Error::LOG_BLOCKS_EXHAUSTED, Error::LOG_BLOCK_INCOMPLETE, Error::LOG_BLOCK_INVALID, Error::LOG_BLOCK_VERSION, Error::LOG_CANT_DELETE, Error::LOG_CLIENT_ALREADY_REGISTERED, Error::LOG_CLIENT_NOT_REGISTERED, Error::LOG_CONTAINER_LIMIT_EXCEEDED, Error::LOG_CONTAINER_OPEN_FAILED, Error::LOG_CONTAINER_READ_FAILED, Error::LOG_CONTAINER_STATE_INVALID, Error::LOG_CONTAINER_WRITE_FAILED, Error::LOG_CORRUPTION_DETECTED, Error::LOG_DEDICATED, Error::LOG_EPHEMERAL, Error::LOG_FILE_FULL, Error::LOG_FULL, Error::LOG_FULL_HANDLER_IN_PROGRESS, Error::LOG_GROWTH_FAILED, Error::LOG_HARD_ERROR, Error::LOG_INCONSISTENT_SECURITY, Error::LOG_INVALID_RANGE, Error::LOG_METADATA_CORRUPT, Error::LOG_METADATA_FLUSH_FAILED, Error::LOG_METADATA_INCONSISTENT, Error::LOG_METADATA_INVALID, Error::LOG_MULTIPLEXED, Error::LOG_NOT_ENOUGH_CONTAINERS, Error::LOG_NO_RESTART, Error::LOG_PINNED, Error::LOG_PINNED_ARCHIVE_TAIL, Error::LOG_PINNED_RESERVATION, Error::LOG_POLICY_ALREADY_INSTALLED, Error::LOG_POLICY_CONFLICT, Error::LOG_POLICY_INVALID, Error::LOG_POLICY_NOT_INSTALLED, Error::LOG_READ_CONTEXT_INVALID, Error::LOG_READ_MODE_INVALID, Error::LOG_RECORDS_RESERVED_INVALID, Error::LOG_RECORD_NONEXISTENT, Error::LOG_RESERVATION_INVALID, Error::LOG_RESIZE_INVALID_SIZE, Error::LOG_RESTART_INVALID, Error::LOG_SECTOR_INVALID, Error::LOG_SECTOR_PARITY_INVALID, Error::LOG_SECTOR_REMAPPED, Error::LOG_SPACE_RESERVED_INVALID, Error::LOG_START_OF_LOG, Error::LOG_STATE_INVALID, Error::LOG_TAIL_INVALID, Error::LONGJUMP, Error::LOST_WRITEBEHIND_DATA, Error::LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR, Error::LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED, Error::LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR, Error::LUIDS_EXHAUSTED, Error::MACHINE_LOCKED, Error::MAGAZINE_NOT_PRESENT, Error::MALFORMED_SUBSTITUTION_STRING, Error::MAPPED_ALIGNMENT, Error::MARSHALL_OVERFLOW, Error::MAX_SESSIONS_REACHED, Error::MAX_THRDS_REACHED, Error::MCA_EXCEPTION, Error::MCA_INTERNAL_ERROR, Error::MCA_INVALID_CAPABILITIES_STRING, Error::MCA_INVALID_TECHNOLOGY_TYPE_RETURNED, Error::MCA_INVALID_VCP_VERSION, Error::MCA_MCCS_VERSION_MISMATCH, Error::MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION, Error::MCA_OCCURED, Error::MCA_UNSUPPORTED_COLOR_TEMPERATURE, Error::MCA_UNSUPPORTED_MCCS_VERSION, Error::MEDIA_CHANGED, Error::MEDIA_CHECK, Error::MEDIA_INCOMPATIBLE, Error::MEDIA_NOT_AVAILABLE, Error::MEDIA_OFFLINE, Error::MEDIA_UNAVAILABLE, Error::MEDIUM_NOT_ACCESSIBLE, Error::MEMBERS_PRIMARY_GROUP, Error::MEMBER_IN_ALIAS, Error::MEMBER_IN_GROUP, Error::MEMBER_NOT_IN_ALIAS, Error::MEMBER_NOT_IN_GROUP, Error::MEMORY_HARDWARE, Error::MENU_ITEM_NOT_FOUND, Error::MESSAGE_EXCEEDS_MAX_SIZE, Error::MESSAGE_SYNC_ONLY, Error::METAFILE_NOT_SUPPORTED, Error::META_EXPANSION_TOO_LONG, Error::MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION, Error::MISSING_SYSTEMFILE, Error::MOD_NOT_FOUND, Error::MORE_DATA, Error::MORE_WRITES, Error::MOUNT_POINT_NOT_RESOLVED, Error::MP_PROCESSOR_MISMATCH, Error::MR_MID_NOT_FOUND, Error::MUI_FILE_NOT_FOUND, Error::MUI_FILE_NOT_LOADED, Error::MUI_INTLSETTINGS_INVALID_LOCALE_NAME, Error::MUI_INTLSETTINGS_UILANG_NOT_INSTALLED, Error::MUI_INVALID_FILE, Error::MUI_INVALID_LOCALE_NAME, Error::MUI_INVALID_RC_CONFIG, Error::MUI_INVALID_ULTIMATEFALLBACK_NAME, Error::MULTIPLE_FAULT_VIOLATION, Error::MUTANT_LIMIT_EXCEEDED, Error::MUTUAL_AUTH_FAILED, Error::NEGATIVE_SEEK, Error::NESTING_NOT_ALLOWED, Error::NETLOGON_NOT_STARTED, Error::NETNAME_DELETED, Error::NETWORK_ACCESS_DENIED, Error::NETWORK_BUSY, Error::NETWORK_NOT_AVAILABLE, Error::NETWORK_UNREACHABLE, Error::NET_OPEN_FAILED, Error::NET_WRITE_FAULT, Error::NOACCESS, Error::NODE_CANNOT_BE_CLUSTERED, Error::NODE_CANT_HOST_RESOURCE, Error::NODE_NOT_AVAILABLE, Error::NOINTERFACE, Error::NOLOGON_INTERDOMAIN_TRUST_ACCOUNT, Error::NOLOGON_SERVER_TRUST_ACCOUNT, Error::NOLOGON_WORKSTATION_TRUST_ACCOUNT, Error::NONCORE_GROUPS_FOUND, Error::NONE_MAPPED, Error::NONPAGED_SYSTEM_RESOURCES, Error::NON_ACCOUNT_SID, Error::NON_CSV_PATH, Error::NON_DOMAIN_SID, Error::NON_MDICHILD_WINDOW, Error::NOTHING_TO_TERMINATE, Error::NOTIFICATION_GUID_ALREADY_DEFINED, Error::NOTIFY_CLEANUP, Error::NOTIFY_ENUM_DIR, Error::NOT_ALL_ASSIGNED, Error::NOT_AUTHENTICATED, Error::NOT_A_REPARSE_POINT, Error::NOT_CAPABLE, Error::NOT_CHILD_WINDOW, Error::NOT_CONNECTED, Error::NOT_CONTAINER, Error::NOT_DOS_DISK, Error::NOT_EMPTY, Error::NOT_ENOUGH_MEMORY, Error::NOT_ENOUGH_QUOTA, Error::NOT_ENOUGH_SERVER_MEMORY, Error::NOT_EXPORT_FORMAT, Error::NOT_FOUND, Error::NOT_JOINED, Error::NOT_LOCKED, Error::NOT_LOGGED_ON, Error::NOT_LOGON_PROCESS, Error::NOT_OWNER, Error::NOT_QUORUM_CAPABLE, Error::NOT_QUORUM_CLASS, Error::NOT_READY, Error::NOT_REGISTRY_FILE, Error::NOT_SAFEBOOT_SERVICE, Error::NOT_SAFE_MODE_DRIVER, Error::NOT_SAME_DEVICE, Error::NOT_SNAPSHOT_VOLUME, Error::NOT_SUBSTED, Error::NOT_SUPPORTED, Error::NOT_SUPPORTED_ON_SBS, Error::NOT_SUPPORTED_ON_STANDARD_SERVER, Error::NOT_TINY_STREAM, Error::NO_ACE_CONDITION, Error::NO_ASSOCIATION, Error::NO_BROWSER_SERVERS_FOUND, Error::NO_CALLBACK_ACTIVE, Error::NO_DATA, Error::NO_DATA_DETECTED, Error::NO_EFS, Error::NO_EVENT_PAIR, Error::NO_GUID_TRANSLATION, Error::NO_IMPERSONATION_TOKEN, Error::NO_INHERITANCE, Error::NO_LINK_TRACKING_IN_TRANSACTION, Error::NO_LOGON_SERVERS, Error::NO_LOG_SPACE, Error::NO_MATCH, Error::NO_MEDIA_IN_DRIVE, Error::NO_MORE_DEVICES, Error::NO_MORE_FILES, Error::NO_MORE_ITEMS, Error::NO_MORE_MATCHES, Error::NO_MORE_SEARCH_HANDLES, Error::NO_MORE_USER_HANDLES, Error::NO_NETWORK, Error::NO_NET_OR_BAD_PATH, Error::NO_NVRAM_RESOURCES, Error::NO_PAGEFILE, Error::NO_PROC_SLOTS, Error::NO_PROMOTION_ACTIVE, Error::NO_QUOTAS_FOR_ACCOUNT, Error::NO_RECOVERY_POLICY, Error::NO_RECOVERY_PROGRAM, Error::NO_SAVEPOINT_WITH_OPEN_FILES, Error::NO_SCROLLBARS, Error::NO_SECRETS, Error::NO_SECURITY_ON_OBJECT, Error::NO_SHUTDOWN_IN_PROGRESS, Error::NO_SIGNAL_SENT, Error::NO_SITENAME, Error::NO_SITE_SETTINGS_OBJECT, Error::NO_SPOOL_SPACE, Error::NO_SUCH_ALIAS, Error::NO_SUCH_DOMAIN, Error::NO_SUCH_GROUP, Error::NO_SUCH_LOGON_SESSION, Error::NO_SUCH_MEMBER, Error::NO_SUCH_PACKAGE, Error::NO_SUCH_PRIVILEGE, Error::NO_SUCH_SITE, Error::NO_SUCH_USER, Error::NO_SUPPORTING_DRIVES, Error::NO_SYSTEM_MENU, Error::NO_SYSTEM_RESOURCES, Error::NO_TOKEN, Error::NO_TRACKING_SERVICE, Error::NO_TRUST_LSA_SECRET, Error::NO_TRUST_SAM_ACCOUNT, Error::NO_TXF_METADATA, Error::NO_UNICODE_TRANSLATION, Error::NO_USER_KEYS, Error::NO_USER_SESSION_KEY, Error::NO_VOLUME_ID, Error::NO_VOLUME_LABEL, Error::NO_WILDCARD_CHARACTERS, Error::NO_WRITABLE_DC_FOUND, Error::NO_YIELD_PERFORMED, Error::NTLM_BLOCKED, Error::NT_CROSS_ENCRYPTION_REQUIRED, Error::NULL_LM_PASSWORD, Error::OBJECT_ALREADY_EXISTS, Error::OBJECT_IN_LIST, Error::OBJECT_NAME_EXISTS, Error::OBJECT_NOT_FOUND, Error::OBJECT_NO_LONGER_EXISTS, Error::OLD_WIN_VERSION, Error::ONLY_IF_CONNECTED, Error::OPEN_FAILED, Error::OPEN_FILES, Error::OPERATION_ABORTED, Error::OPERATION_NOT_SUPPORTED_IN_TRANSACTION, Error::OPLOCK_BREAK_IN_PROGRESS, Error::OPLOCK_HANDLE_CLOSED, Error::OPLOCK_NOT_GRANTED, Error::OPLOCK_SWITCHED_TO_NEW_HANDLE, Error::OR_INVALID_OID, Error::OR_INVALID_OXID, Error::OR_INVALID_SET, Error::OUTOFMEMORY, Error::OUT_OF_PAPER, Error::OUT_OF_STRUCTURES, Error::OVERRIDE_NOCHANGES, Error::PAGED_SYSTEM_RESOURCES, Error::PAGEFILE_CREATE_FAILED, Error::PAGEFILE_QUOTA, Error::PAGEFILE_QUOTA_EXCEEDED, Error::PAGE_FAULT_COPY_ON_WRITE, Error::PAGE_FAULT_DEMAND_ZERO, Error::PAGE_FAULT_GUARD_PAGE, Error::PAGE_FAULT_PAGING_FILE, Error::PAGE_FAULT_TRANSITION, Error::PARAMETER_QUOTA_EXCEEDED, Error::PARTIAL_COPY, Error::PARTITION_FAILURE, Error::PASSWORD_EXPIRED, Error::PASSWORD_MUST_CHANGE, Error::PASSWORD_RESTRICTION, Error::PATCH_MANAGED_ADVERTISED_PRODUCT, Error::PATCH_NO_SEQUENCE, Error::PATCH_PACKAGE_INVALID, Error::PATCH_PACKAGE_OPEN_FAILED, Error::PATCH_PACKAGE_REJECTED, Error::PATCH_PACKAGE_UNSUPPORTED, Error::PATCH_REMOVAL_DISALLOWED, Error::PATCH_REMOVAL_UNSUPPORTED, Error::PATCH_TARGET_NOT_FOUND, Error::PATH_BUSY, Error::PATH_NOT_FOUND, Error::PEERDIST_ALREADY_COMPLETED, Error::PEERDIST_ALREADY_EXISTS, Error::PEERDIST_ALREADY_INITIALIZED, Error::PEERDIST_CANNOT_PARSE_CONTENTINFO, Error::PEERDIST_CONTENTINFO_VERSION_UNSUPPORTED, Error::PEERDIST_INVALIDATED, Error::PEERDIST_INVALID_CONFIGURATION, Error::PEERDIST_MISSING_DATA, Error::PEERDIST_NOT_INITIALIZED, Error::PEERDIST_NOT_LICENSED, Error::PEERDIST_NO_MORE, Error::PEERDIST_OPERATION_NOTFOUND, Error::PEERDIST_OUT_OF_BOUNDS, Error::PEERDIST_SERVICE_UNAVAILABLE, Error::PEERDIST_SHUTDOWN_IN_PROGRESS, Error::PEERDIST_VERSION_UNSUPPORTED, Error::PER_USER_TRUST_QUOTA_EXCEEDED, Error::PIPE_BUSY, Error::PIPE_CONNECTED, Error::PIPE_LISTENING, Error::PIPE_LOCAL, Error::PIPE_NOT_CONNECTED, Error::PKINIT_FAILURE, Error::PLUGPLAY_QUERY_VETOED, Error::PNP_BAD_MPS_TABLE, Error::PNP_INVALID_ID, Error::PNP_IRQ_TRANSLATION_FAILED, Error::PNP_REBOOT_REQUIRED, Error::PNP_RESTART_ENUMERATION, Error::PNP_TRANSLATION_FAILED, Error::POINT_NOT_FOUND, Error::POLICY_OBJECT_NOT_FOUND, Error::POLICY_ONLY_IN_DS, Error::POPUP_ALREADY_ACTIVE, Error::PORT_MESSAGE_TOO_LONG, Error::PORT_NOT_SET, Error::PORT_UNREACHABLE, Error::POSSIBLE_DEADLOCK, Error::POTENTIAL_FILE_FOUND, Error::PREDEFINED_HANDLE, Error::PRIMARY_TRANSPORT_CONNECT_FAILED, Error::PRINTER_ALREADY_EXISTS, Error::PRINTER_DELETED, Error::PRINTER_DRIVER_ALREADY_INSTALLED, Error::PRINTER_DRIVER_BLOCKED, Error::PRINTER_DRIVER_DOWNLOAD_NEEDED, Error::PRINTER_DRIVER_IN_USE, Error::PRINTER_DRIVER_PACKAGE_IN_USE, Error::PRINTER_DRIVER_WARNED, Error::PRINTER_HAS_JOBS_QUEUED, Error::PRINTER_NOT_FOUND, Error::PRINTQ_FULL, Error::PRINT_CANCELLED, Error::PRINT_JOB_RESTART_REQUIRED, Error::PRINT_MONITOR_ALREADY_INSTALLED, Error::PRINT_MONITOR_IN_USE, Error::PRINT_PROCESSOR_ALREADY_INSTALLED, Error::PRIVATE_DIALOG_INDEX, Error::PRIVILEGE_NOT_HELD, Error::PROCESS_ABORTED, Error::PROCESS_IN_JOB, Error::PROCESS_IS_PROTECTED, Error::PROCESS_MODE_ALREADY_BACKGROUND, Error::PROCESS_MODE_NOT_BACKGROUND, Error::PROCESS_NOT_IN_JOB, Error::PROC_NOT_FOUND, Error::PRODUCT_UNINSTALLED, Error::PRODUCT_VERSION, Error::PROFILE_DOES_NOT_MATCH_DEVICE, Error::PROFILE_NOT_ASSOCIATED_WITH_DEVICE, Error::PROFILE_NOT_FOUND, Error::PROFILING_AT_LIMIT, Error::PROFILING_NOT_STARTED, Error::PROFILING_NOT_STOPPED, Error::PROMOTION_ACTIVE, Error::PROTOCOL_UNREACHABLE, Error::PWD_HISTORY_CONFLICT, Error::PWD_TOO_RECENT, Error::PWD_TOO_SHORT, Error::QUORUMLOG_OPEN_FAILED, Error::QUORUM_DISK_NOT_FOUND, Error::QUORUM_NOT_ALLOWED_IN_THIS_GROUP, Error::QUORUM_OWNER_ALIVE, Error::QUORUM_RESOURCE, Error::QUORUM_RESOURCE_ONLINE_FAILED, Error::QUOTA_LIST_INCONSISTENT, Error::RANGE_LIST_CONFLICT, Error::RANGE_NOT_FOUND, Error::RDP_PROTOCOL_ERROR, Error::READ_FAULT, Error::RECEIVE_EXPEDITED, Error::RECEIVE_PARTIAL, Error::RECEIVE_PARTIAL_EXPEDITED, Error::RECOVERY_FAILURE, Error::RECOVERY_NOT_NEEDED, Error::REC_NON_EXISTENT, Error::REDIRECTOR_HAS_OPEN_HANDLES, Error::REDIR_PAUSED, Error::REGISTRY_CORRUPT, Error::REGISTRY_HIVE_RECOVERED, Error::REGISTRY_IO_FAILED, Error::REGISTRY_QUOTA_LIMIT, Error::REGISTRY_RECOVERED, Error::REG_NAT_CONSUMPTION, Error::RELOC_CHAIN_XEEDS_SEGLIM, Error::REMOTE_FILE_VERSION_MISMATCH, Error::REMOTE_PRINT_CONNECTIONS_BLOCKED, Error::REMOTE_SESSION_LIMIT_EXCEEDED, Error::REMOTE_STORAGE_MEDIA_ERROR, Error::REMOTE_STORAGE_NOT_ACTIVE, Error::REM_NOT_LIST, Error::REPARSE, Error::REPARSE_ATTRIBUTE_CONFLICT, Error::REPARSE_OBJECT, Error::REPARSE_TAG_INVALID, Error::REPARSE_TAG_MISMATCH, Error::REPLY_MESSAGE_MISMATCH, Error::REQUEST_ABORTED, Error::REQUEST_OUT_OF_SEQUENCE, Error::REQUEST_REFUSED, Error::REQUIRES_INTERACTIVE_WINDOWSTATION, Error::REQ_NOT_ACCEP, Error::RESMON_CREATE_FAILED, Error::RESMON_INVALID_STATE, Error::RESMON_ONLINE_FAILED, Error::RESOURCEMANAGER_NOT_FOUND, Error::RESOURCEMANAGER_READ_ONLY, Error::RESOURCE_CALL_TIMED_OUT, Error::RESOURCE_DATA_NOT_FOUND, Error::RESOURCE_DISABLED, Error::RESOURCE_ENUM_USER_STOP, Error::RESOURCE_FAILED, Error::RESOURCE_LANG_NOT_FOUND, Error::RESOURCE_NAME_NOT_FOUND, Error::RESOURCE_NOT_AVAILABLE, Error::RESOURCE_NOT_FOUND, Error::RESOURCE_NOT_ONLINE, Error::RESOURCE_NOT_PRESENT, Error::RESOURCE_ONLINE, Error::RESOURCE_PROPERTIES_STORED, Error::RESOURCE_PROPERTY_UNCHANGEABLE, Error::RESOURCE_REQUIREMENTS_CHANGED, Error::RESOURCE_TYPE_NOT_FOUND, Error::RESTART_APPLICATION, Error::RESUME_HIBERNATION, Error::RETRY, Error::REVISION_MISMATCH, Error::RING2SEG_MUST_BE_MOVABLE, Error::RING2_STACK_IN_USE, Error::RMODE_APP, Error::RM_ALREADY_STARTED, Error::RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT, Error::RM_DISCONNECTED, Error::RM_METADATA_CORRUPT, Error::RM_NOT_ACTIVE, Error::ROLLBACK_TIMER_EXPIRED, Error::ROWSNOTRELEASED, Error::RPC_S_ADDRESS_ERROR, Error::RPC_S_ALREADY_LISTENING, Error::RPC_S_ALREADY_REGISTERED, Error::RPC_S_BINDING_HAS_NO_AUTH, Error::RPC_S_BINDING_INCOMPLETE, Error::RPC_S_CALL_CANCELLED, Error::RPC_S_CALL_FAILED, Error::RPC_S_CALL_FAILED_DNE, Error::RPC_S_CALL_IN_PROGRESS, Error::RPC_S_CANNOT_SUPPORT, Error::RPC_S_CANT_CREATE_ENDPOINT, Error::RPC_S_COMM_FAILURE, Error::RPC_S_COOKIE_AUTH_FAILED, Error::RPC_S_DUPLICATE_ENDPOINT, Error::RPC_S_ENTRY_ALREADY_EXISTS, Error::RPC_S_ENTRY_NOT_FOUND, Error::RPC_S_ENTRY_TYPE_MISMATCH, Error::RPC_S_FP_DIV_ZERO, Error::RPC_S_FP_OVERFLOW, Error::RPC_S_FP_UNDERFLOW, Error::RPC_S_GROUP_MEMBER_NOT_FOUND, Error::RPC_S_GRP_ELT_NOT_ADDED, Error::RPC_S_GRP_ELT_NOT_REMOVED, Error::RPC_S_INCOMPLETE_NAME, Error::RPC_S_INTERFACE_NOT_EXPORTED, Error::RPC_S_INTERFACE_NOT_FOUND, Error::RPC_S_INTERNAL_ERROR, Error::RPC_S_INVALID_ASYNC_CALL, Error::RPC_S_INVALID_ASYNC_HANDLE, Error::RPC_S_INVALID_AUTH_IDENTITY, Error::RPC_S_INVALID_BINDING, Error::RPC_S_INVALID_BOUND, Error::RPC_S_INVALID_ENDPOINT_FORMAT, Error::RPC_S_INVALID_NAF_ID, Error::RPC_S_INVALID_NAME_SYNTAX, Error::RPC_S_INVALID_NETWORK_OPTIONS, Error::RPC_S_INVALID_NET_ADDR, Error::RPC_S_INVALID_OBJECT, Error::RPC_S_INVALID_RPC_PROTSEQ, Error::RPC_S_INVALID_STRING_BINDING, Error::RPC_S_INVALID_STRING_UUID, Error::RPC_S_INVALID_TAG, Error::RPC_S_INVALID_TIMEOUT, Error::RPC_S_INVALID_VERS_OPTION, Error::RPC_S_MAX_CALLS_TOO_SMALL, Error::RPC_S_NAME_SERVICE_UNAVAILABLE, Error::RPC_S_NOTHING_TO_EXPORT, Error::RPC_S_NOT_ALL_OBJS_EXPORTED, Error::RPC_S_NOT_ALL_OBJS_UNEXPORTED, Error::RPC_S_NOT_CANCELLED, Error::RPC_S_NOT_LISTENING, Error::RPC_S_NOT_RPC_ERROR, Error::RPC_S_NO_BINDINGS, Error::RPC_S_NO_CALL_ACTIVE, Error::RPC_S_NO_CONTEXT_AVAILABLE, Error::RPC_S_NO_ENDPOINT_FOUND, Error::RPC_S_NO_ENTRY_NAME, Error::RPC_S_NO_INTERFACES, Error::RPC_S_NO_MORE_BINDINGS, Error::RPC_S_NO_MORE_MEMBERS, Error::RPC_S_NO_PRINC_NAME, Error::RPC_S_NO_PROTSEQS, Error::RPC_S_NO_PROTSEQS_REGISTERED, Error::RPC_S_OBJECT_NOT_FOUND, Error::RPC_S_OUT_OF_RESOURCES, Error::RPC_S_PRF_ELT_NOT_ADDED, Error::RPC_S_PRF_ELT_NOT_REMOVED, Error::RPC_S_PROCNUM_OUT_OF_RANGE, Error::RPC_S_PROFILE_NOT_ADDED, Error::RPC_S_PROTOCOL_ERROR, Error::RPC_S_PROTSEQ_NOT_FOUND, Error::RPC_S_PROTSEQ_NOT_SUPPORTED, Error::RPC_S_PROXY_ACCESS_DENIED, Error::RPC_S_SEC_PKG_ERROR, Error::RPC_S_SEND_INCOMPLETE, Error::RPC_S_SERVER_TOO_BUSY, Error::RPC_S_SERVER_UNAVAILABLE, Error::RPC_S_STRING_TOO_LONG, Error::RPC_S_TYPE_ALREADY_REGISTERED, Error::RPC_S_UNKNOWN_AUTHN_LEVEL, Error::RPC_S_UNKNOWN_AUTHN_SERVICE, Error::RPC_S_UNKNOWN_AUTHN_TYPE, Error::RPC_S_UNKNOWN_AUTHZ_SERVICE, Error::RPC_S_UNKNOWN_IF, Error::RPC_S_UNKNOWN_MGR_TYPE, Error::RPC_S_UNSUPPORTED_AUTHN_LEVEL, Error::RPC_S_UNSUPPORTED_NAME_SYNTAX, Error::RPC_S_UNSUPPORTED_TRANS_SYN, Error::RPC_S_UNSUPPORTED_TYPE, Error::RPC_S_UUID_LOCAL_ONLY, Error::RPC_S_UUID_NO_ADDRESS, Error::RPC_S_WRONG_KIND_OF_BINDING, Error::RPC_S_ZERO_DIVIDE, Error::RPC_X_BAD_STUB_DATA, Error::RPC_X_BYTE_COUNT_TOO_SMALL, Error::RPC_X_ENUM_VALUE_OUT_OF_RANGE, Error::RPC_X_INVALID_ES_ACTION, Error::RPC_X_INVALID_PIPE_OBJECT, Error::RPC_X_NO_MORE_ENTRIES, Error::RPC_X_NULL_REF_POINTER, Error::RPC_X_PIPE_CLOSED, Error::RPC_X_PIPE_DISCIPLINE_ERROR, Error::RPC_X_PIPE_EMPTY, Error::RPC_X_SS_CANNOT_GET_CALL_HANDLE, Error::RPC_X_SS_CHAR_TRANS_OPEN_FAIL, Error::RPC_X_SS_CHAR_TRANS_SHORT_FILE, Error::RPC_X_SS_CONTEXT_DAMAGED, Error::RPC_X_SS_HANDLES_MISMATCH, Error::RPC_X_SS_IN_NULL_CONTEXT, Error::RPC_X_WRONG_ES_VERSION, Error::RPC_X_WRONG_PIPE_ORDER, Error::RPC_X_WRONG_PIPE_VERSION, Error::RPC_X_WRONG_STUB_VERSION, Error::RPL_NOT_ALLOWED, Error::RXACT_COMMITTED, Error::RXACT_COMMIT_FAILURE, Error::RXACT_COMMIT_NECESSARY, Error::RXACT_INVALID_STATE, Error::RXACT_STATE_CREATED, Error::SAME_DRIVE, Error::SAM_INIT_FAILURE, Error::SCHED_E_SERVICE_NOT_LOCALSYSTEM, Error::SCOPE_NOT_FOUND, Error::SCREEN_ALREADY_LOCKED, Error::SECRET_TOO_LONG, Error::SECTOR_NOT_FOUND, Error::SECURITY_STREAM_IS_INCONSISTENT, Error::SEEK, Error::SEEK_ON_DEVICE, Error::SEGMENT_NOTIFICATION, Error::SEM_IS_SET, Error::SEM_NOT_FOUND, Error::SEM_OWNER_DIED, Error::SEM_TIMEOUT, Error::SEM_USER_LIMIT, Error::SERIAL_NO_DEVICE, Error::SERVER_DISABLED, Error::SERVER_HAS_OPEN_HANDLES, Error::SERVER_NOT_DISABLED, Error::SERVER_SHUTDOWN_IN_PROGRESS, Error::SERVER_SID_MISMATCH, Error::SERVICE_ALREADY_RUNNING, Error::SERVICE_CANNOT_ACCEPT_CTRL, Error::SERVICE_DATABASE_LOCKED, Error::SERVICE_DEPENDENCY_DELETED, Error::SERVICE_DEPENDENCY_FAIL, Error::SERVICE_DISABLED, Error::SERVICE_DOES_NOT_EXIST, Error::SERVICE_EXISTS, Error::SERVICE_LOGON_FAILED, Error::SERVICE_MARKED_FOR_DELETE, Error::SERVICE_NEVER_STARTED, Error::SERVICE_NOTIFICATION, Error::SERVICE_NOTIFY_CLIENT_LAGGING, Error::SERVICE_NOT_ACTIVE, Error::SERVICE_NOT_FOUND, Error::SERVICE_NOT_IN_EXE, Error::SERVICE_NO_THREAD, Error::SERVICE_REQUEST_TIMEOUT, Error::SERVICE_SPECIFIC_ERROR, Error::SERVICE_START_HANG, Error::SESSION_CREDENTIAL_CONFLICT, Error::SETCOUNT_ON_BAD_LB, Error::SETMARK_DETECTED, Error::SET_NOT_FOUND, Error::SET_POWER_STATE_FAILED, Error::SET_POWER_STATE_VETOED, Error::SHARED_POLICY, Error::SHARING_BUFFER_EXCEEDED, Error::SHARING_PAUSED, Error::SHARING_VIOLATION, Error::SHORT_NAMES_NOT_ENABLED_ON_VOLUME, Error::SHUTDOWN_CLUSTER, Error::SHUTDOWN_IN_PROGRESS, Error::SHUTDOWN_IS_SCHEDULED, Error::SHUTDOWN_USERS_LOGGED_ON, Error::SIGNAL_PENDING, Error::SIGNAL_REFUSED, Error::SINGLE_INSTANCE_APP, Error::SMARTCARD_SUBSYSTEM_FAILURE, Error::SMI_PRIMITIVE_INSTALLER_FAILED, Error::SOME_NOT_MAPPED, Error::SOURCE_ELEMENT_EMPTY, Error::SPARSE_NOT_ALLOWED_IN_TRANSACTION, Error::SPECIAL_ACCOUNT, Error::SPECIAL_GROUP, Error::SPECIAL_USER, Error::SPL_NO_ADDJOB, Error::SPL_NO_STARTDOC, Error::SPOOL_FILE_NOT_FOUND, Error::STACK_BUFFER_OVERRUN, Error::STACK_OVERFLOW, Error::STACK_OVERFLOW_READ, Error::STATIC_INIT, Error::STOPPED_ON_SYMLINK, Error::STREAM_MINIVERSION_NOT_FOUND, Error::STREAM_MINIVERSION_NOT_VALID, Error::SUBST_TO_JOIN, Error::SUBST_TO_SUBST, Error::SUCCESS, Error::SUCCESS_REBOOT_INITIATED, Error::SUCCESS_REBOOT_REQUIRED, Error::SUCCESS_RESTART_REQUIRED, Error::SWAPERROR, Error::SXS_ACTIVATION_CONTEXT_DISABLED, Error::SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT, Error::SXS_ASSEMBLY_MISSING, Error::SXS_ASSEMBLY_NOT_FOUND, Error::SXS_ASSEMBLY_NOT_LOCKED, Error::SXS_CANT_GEN_ACTCTX, Error::SXS_COMPONENT_STORE_CORRUPT, Error::SXS_CORRUPTION, Error::SXS_CORRUPT_ACTIVATION_STACK, Error::SXS_DUPLICATE_ASSEMBLY_NAME, Error::SXS_DUPLICATE_CLSID, Error::SXS_DUPLICATE_DLL_NAME, Error::SXS_DUPLICATE_IID, Error::SXS_DUPLICATE_PROGID, Error::SXS_DUPLICATE_TLBID, Error::SXS_DUPLICATE_WINDOWCLASS_NAME, Error::SXS_EARLY_DEACTIVATION, Error::SXS_FILE_HASH_MISMATCH, Error::SXS_FILE_HASH_MISSING, Error::SXS_FILE_NOT_PART_OF_ASSEMBLY, Error::SXS_IDENTITIES_DIFFERENT, Error::SXS_IDENTITY_DUPLICATE_ATTRIBUTE, Error::SXS_IDENTITY_PARSE_ERROR, Error::SXS_INCORRECT_PUBLIC_KEY_TOKEN, Error::SXS_INVALID_ACTCTXDATA_FORMAT, Error::SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE, Error::SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME, Error::SXS_INVALID_DEACTIVATION, Error::SXS_INVALID_IDENTITY_ATTRIBUTE_NAME, Error::SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE, Error::SXS_INVALID_XML_NAMESPACE_URI, Error::SXS_KEY_NOT_FOUND, Error::SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED, Error::SXS_MANIFEST_FORMAT_ERROR, Error::SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT, Error::SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE, Error::SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE, Error::SXS_MANIFEST_PARSE_ERROR, Error::SXS_MANIFEST_TOO_BIG, Error::SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE, Error::SXS_MULTIPLE_DEACTIVATION, Error::SXS_POLICY_PARSE_ERROR, Error::SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT, Error::SXS_PROCESS_DEFAULT_ALREADY_SET, Error::SXS_PROCESS_TERMINATION_REQUESTED, Error::SXS_PROTECTION_CATALOG_FILE_MISSING, Error::SXS_PROTECTION_CATALOG_NOT_VALID, Error::SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT, Error::SXS_PROTECTION_RECOVERY_FAILED, Error::SXS_RELEASE_ACTIVATION_CONTEXT, Error::SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED, Error::SXS_SECTION_NOT_FOUND, Error::SXS_SETTING_NOT_REGISTERED, Error::SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY, Error::SXS_THREAD_QUERIES_DISABLED, Error::SXS_TRANSACTION_CLOSURE_INCOMPLETE, Error::SXS_UNKNOWN_ENCODING, Error::SXS_UNKNOWN_ENCODING_GROUP, Error::SXS_UNTRANSLATABLE_HRESULT, Error::SXS_VERSION_CONFLICT, Error::SXS_WRONG_SECTION_TYPE, Error::SXS_XML_E_BADCHARDATA, Error::SXS_XML_E_BADCHARINSTRING, Error::SXS_XML_E_BADNAMECHAR, Error::SXS_XML_E_BADPEREFINSUBSET, Error::SXS_XML_E_BADSTARTNAMECHAR, Error::SXS_XML_E_BADXMLCASE, Error::SXS_XML_E_BADXMLDECL, Error::SXS_XML_E_COMMENTSYNTAX, Error::SXS_XML_E_DUPLICATEATTRIBUTE, Error::SXS_XML_E_EXPECTINGCLOSEQUOTE, Error::SXS_XML_E_EXPECTINGTAGEND, Error::SXS_XML_E_INCOMPLETE_ENCODING, Error::SXS_XML_E_INTERNALERROR, Error::SXS_XML_E_INVALIDATROOTLEVEL, Error::SXS_XML_E_INVALIDENCODING, Error::SXS_XML_E_INVALIDSWITCH, Error::SXS_XML_E_INVALID_DECIMAL, Error::SXS_XML_E_INVALID_HEXIDECIMAL, Error::SXS_XML_E_INVALID_STANDALONE, Error::SXS_XML_E_INVALID_UNICODE, Error::SXS_XML_E_INVALID_VERSION, Error::SXS_XML_E_MISSINGEQUALS, Error::SXS_XML_E_MISSINGQUOTE, Error::SXS_XML_E_MISSINGROOT, Error::SXS_XML_E_MISSINGSEMICOLON, Error::SXS_XML_E_MISSINGWHITESPACE, Error::SXS_XML_E_MISSING_PAREN, Error::SXS_XML_E_MULTIPLEROOTS, Error::SXS_XML_E_MULTIPLE_COLONS, Error::SXS_XML_E_RESERVEDNAMESPACE, Error::SXS_XML_E_UNBALANCEDPAREN, Error::SXS_XML_E_UNCLOSEDCDATA, Error::SXS_XML_E_UNCLOSEDCOMMENT, Error::SXS_XML_E_UNCLOSEDDECL, Error::SXS_XML_E_UNCLOSEDENDTAG, Error::SXS_XML_E_UNCLOSEDSTARTTAG, Error::SXS_XML_E_UNCLOSEDSTRING, Error::SXS_XML_E_UNCLOSEDTAG, Error::SXS_XML_E_UNEXPECTEDENDTAG, Error::SXS_XML_E_UNEXPECTEDEOF, Error::SXS_XML_E_UNEXPECTED_STANDALONE, Error::SXS_XML_E_UNEXPECTED_WHITESPACE, Error::SXS_XML_E_WHITESPACEORQUESTIONMARK, Error::SXS_XML_E_XMLDECLSYNTAX, Error::SYMLINK_CLASS_DISABLED, Error::SYMLINK_NOT_SUPPORTED, Error::SYNCHRONIZATION_REQUIRED, Error::SYNC_FOREGROUND_REFRESH_REQUIRED, Error::SYSTEM_DEVICE_NOT_FOUND, Error::SYSTEM_HIVE_TOO_LARGE, Error::SYSTEM_IMAGE_BAD_SIGNATURE, Error::SYSTEM_POWERSTATE_COMPLEX_TRANSITION, Error::SYSTEM_POWERSTATE_TRANSITION, Error::SYSTEM_PROCESS_TERMINATED, Error::SYSTEM_SHUTDOWN, Error::SYSTEM_TRACE, Error::TAG_NOT_FOUND, Error::TAG_NOT_PRESENT, Error::THREAD_1_INACTIVE, Error::THREAD_ALREADY_IN_TASK, Error::THREAD_MODE_ALREADY_BACKGROUND, Error::THREAD_MODE_NOT_BACKGROUND, Error::THREAD_NOT_IN_PROCESS, Error::THREAD_WAS_SUSPENDED, Error::TIMEOUT, Error::TIMER_NOT_CANCELED, Error::TIMER_RESOLUTION_NOT_SET, Error::TIMER_RESUME_IGNORED, Error::TIME_SKEW, Error::TLW_WITH_WSCHILD, Error::TM_IDENTITY_MISMATCH, Error::TM_INITIALIZATION_FAILED, Error::TM_VOLATILE, Error::TOKEN_ALREADY_IN_USE, Error::TOO_MANY_CMDS, Error::TOO_MANY_CONTEXT_IDS, Error::TOO_MANY_LINKS, Error::TOO_MANY_LUIDS_REQUESTED, Error::TOO_MANY_MODULES, Error::TOO_MANY_MUXWAITERS, Error::TOO_MANY_NAMES, Error::TOO_MANY_OPEN_FILES, Error::TOO_MANY_POSTS, Error::TOO_MANY_SECRETS, Error::TOO_MANY_SEMAPHORES, Error::TOO_MANY_SEM_REQUESTS, Error::TOO_MANY_SESS, Error::TOO_MANY_SIDS, Error::TOO_MANY_TCBS, Error::TOO_MANY_THREADS, Error::TRANSACTED_MAPPING_UNSUPPORTED_REMOTE, Error::TRANSACTIONAL_CONFLICT, Error::TRANSACTIONAL_OPEN_NOT_ALLOWED, Error::TRANSACTIONMANAGER_IDENTITY_MISMATCH, Error::TRANSACTIONMANAGER_NOT_FOUND, Error::TRANSACTIONMANAGER_NOT_ONLINE, Error::TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION, Error::TRANSACTIONS_NOT_FROZEN, Error::TRANSACTIONS_UNSUPPORTED_REMOTE, Error::TRANSACTION_ALREADY_ABORTED, Error::TRANSACTION_ALREADY_COMMITTED, Error::TRANSACTION_FREEZE_IN_PROGRESS, Error::TRANSACTION_INTEGRITY_VIOLATED, Error::TRANSACTION_INVALID_MARSHALL_BUFFER, Error::TRANSACTION_MUST_WRITETHROUGH, Error::TRANSACTION_NOT_ACTIVE, Error::TRANSACTION_NOT_ENLISTED, Error::TRANSACTION_NOT_FOUND, Error::TRANSACTION_NOT_JOINED, Error::TRANSACTION_NOT_REQUESTED, Error::TRANSACTION_NOT_ROOT, Error::TRANSACTION_NO_SUPERIOR, Error::TRANSACTION_OBJECT_EXPIRED, Error::TRANSACTION_PROPAGATION_FAILED, Error::TRANSACTION_RECORD_TOO_LONG, Error::TRANSACTION_REQUEST_NOT_VALID, Error::TRANSACTION_REQUIRED_PROMOTION, Error::TRANSACTION_RESPONSE_NOT_ENLISTED, Error::TRANSACTION_SCOPE_CALLBACKS_NOT_SET, Error::TRANSACTION_SUPERIOR_EXISTS, Error::TRANSFORM_NOT_SUPPORTED, Error::TRANSLATION_COMPLETE, Error::TRANSPORT_FULL, Error::TRUSTED_DOMAIN_FAILURE, Error::TRUSTED_RELATIONSHIP_FAILURE, Error::TRUST_FAILURE, Error::TS_INCOMPATIBLE_SESSIONS, Error::TS_VIDEO_SUBSYSTEM_ERROR, Error::TXF_ATTRIBUTE_CORRUPT, Error::TXF_DIR_NOT_EMPTY, Error::TXF_METADATA_ALREADY_PRESENT, Error::UNABLE_TO_CLEAN, Error::UNABLE_TO_EJECT_MOUNTED_MEDIA, Error::UNABLE_TO_INVENTORY_DRIVE, Error::UNABLE_TO_INVENTORY_SLOT, Error::UNABLE_TO_INVENTORY_TRANSPORT, Error::UNABLE_TO_LOAD_MEDIUM, Error::UNABLE_TO_LOCK_MEDIA, Error::UNABLE_TO_MOVE_REPLACEMENT, Error::UNABLE_TO_MOVE_REPLACEMENT_2, Error::UNABLE_TO_REMOVE_REPLACED, Error::UNABLE_TO_UNLOAD_MEDIA, Error::UNDEFINED_CHARACTER, Error::UNEXPECTED_MM_CREATE_ERR, Error::UNEXPECTED_MM_EXTEND_ERR, Error::UNEXPECTED_MM_MAP_ERROR, Error::UNEXPECTED_OMID, Error::UNEXP_NET_ERR, Error::UNHANDLED_EXCEPTION, Error::UNIDENTIFIED_ERROR, Error::UNKNOWN_COMPONENT, Error::UNKNOWN_FEATURE, Error::UNKNOWN_PATCH, Error::UNKNOWN_PORT, Error::UNKNOWN_PRINTER_DRIVER, Error::UNKNOWN_PRINTPROCESSOR, Error::UNKNOWN_PRINT_MONITOR, Error::UNKNOWN_PRODUCT, Error::UNKNOWN_PROPERTY, Error::UNKNOWN_REVISION, Error::UNMAPPED_SUBSTITUTION_STRING, Error::UNRECOGNIZED_MEDIA, Error::UNRECOGNIZED_VOLUME, Error::UNSUPPORTED_COMPRESSION, Error::UNSUPPORTED_TYPE, Error::UNWIND, Error::UNWIND_CONSOLIDATE, Error::USER_APC, Error::USER_DELETE_TRUST_QUOTA_EXCEEDED, Error::USER_EXISTS, Error::USER_MAPPED_FILE, Error::USER_PROFILE_LOAD, Error::VALIDATE_CONTINUE, Error::VC_DISCONNECTED, Error::VDM_DISALLOWED, Error::VDM_HARD_ERROR, Error::VERIFIER_STOP, Error::VERSION_PARSE_ERROR, Error::VIRUS_DELETED, Error::VIRUS_INFECTED, Error::VOLSNAP_HIBERNATE_READY, Error::VOLSNAP_PREPARE_HIBERNATE, Error::VOLUME_CONTAINS_SYS_FILES, Error::VOLUME_DIRTY, Error::VOLUME_MOUNTED, Error::VOLUME_NOT_SIS_ENABLED, Error::VOLUME_NOT_SUPPORT_EFS, Error::WAIT_1, Error::WAIT_2, Error::WAIT_3, Error::WAIT_63, Error::WAIT_FOR_OPLOCK, Error::WAIT_NO_CHILDREN, Error::WAIT_TIMEOUT, Error::WAKE_SYSTEM, Error::WAKE_SYSTEM_DEBUGGER, Error::WARNING_IPSEC_MM_POLICY_PRUNED, Error::WARNING_IPSEC_QM_POLICY_PRUNED, Error::WAS_LOCKED, Error::WAS_UNLOCKED, Error::WINDOW_NOT_COMBOBOX, Error::WINDOW_NOT_DIALOG, Error::WINDOW_OF_OTHER_THREAD, Error::WINS_INTERNAL, Error::WMI_ALREADY_DISABLED, Error::WMI_ALREADY_ENABLED, Error::WMI_DP_FAILED, Error::WMI_DP_NOT_FOUND, Error::WMI_GUID_DISCONNECTED, Error::WMI_GUID_NOT_FOUND, Error::WMI_INSTANCE_NOT_FOUND, Error::WMI_INVALID_MOF, Error::WMI_INVALID_REGINFO, Error::WMI_ITEMID_NOT_FOUND, Error::WMI_READ_ONLY, Error::WMI_SERVER_UNAVAILABLE, Error::WMI_SET_FAILURE, Error::WMI_TRY_AGAIN, Error::WMI_UNRESOLVED_INSTANCE_REF, Error::WORKING_SET_QUOTA, Error::WOW_ASSERTION, Error::WRITE_FAULT, Error::WRITE_PROTECT, Error::WRONG_COMPARTMENT, Error::WRONG_DISK, Error::WRONG_EFS, Error::WRONG_PASSWORD, Error::WRONG_TARGET_NAME, Error::WSAEACCES, Error::WSAEADDRINUSE, Error::WSAEADDRNOTAVAIL, Error::WSAEAFNOSUPPORT, Error::WSAEALREADY, Error::WSAEBADF, Error::WSAECANCELLED, Error::WSAECONNABORTED, Error::WSAECONNREFUSED, Error::WSAECONNRESET, Error::WSAEDESTADDRREQ, Error::WSAEDISCON, Error::WSAEDQUOT, Error::WSAEFAULT, Error::WSAEHOSTDOWN, Error::WSAEHOSTUNREACH, Error::WSAEINPROGRESS, Error::WSAEINTR, Error::WSAEINVAL, Error::WSAEINVALIDPROCTABLE, Error::WSAEINVALIDPROVIDER, Error::WSAEISCONN, Error::WSAELOOP, Error::WSAEMFILE, Error::WSAEMSGSIZE, Error::WSAENAMETOOLONG, Error::WSAENETDOWN, Error::WSAENETRESET, Error::WSAENETUNREACH, Error::WSAENOBUFS, Error::WSAENOMORE, Error::WSAENOPROTOOPT, Error::WSAENOTCONN, Error::WSAENOTEMPTY, Error::WSAENOTSOCK, Error::WSAEOPNOTSUPP, Error::WSAEPFNOSUPPORT, Error::WSAEPROCLIM, Error::WSAEPROTONOSUPPORT, Error::WSAEPROTOTYPE, Error::WSAEPROVIDERFAILEDINIT, Error::WSAEREFUSED, Error::WSAEREMOTE, Error::WSAESHUTDOWN, Error::WSAESOCKTNOSUPPORT, Error::WSAESTALE, Error::WSAETIMEDOUT, Error::WSAETOOMANYREFS, Error::WSAEUSERS, Error::WSAEWOULDBLOCK, Error::WSAHOST_NOT_FOUND, Error::WSANOTINITIALISED, Error::WSANO_DATA, Error::WSANO_RECOVERY, Error::WSASERVICE_NOT_FOUND, Error::WSASYSCALLFAILURE, Error::WSASYSNOTREADY, Error::WSATRY_AGAIN, Error::WSATYPE_NOT_FOUND, Error::WSAVERNOTSUPPORTED, Error::WSA_E_CANCELLED, Error::WSA_E_NO_MORE, Error::WSA_QOS_ADMISSION_FAILURE, Error::WSA_QOS_BAD_OBJECT, Error::WSA_QOS_BAD_STYLE, Error::WSA_QOS_EFILTERCOUNT, Error::WSA_QOS_EFILTERSTYLE, Error::WSA_QOS_EFILTERTYPE, Error::WSA_QOS_EFLOWCOUNT, Error::WSA_QOS_EFLOWDESC, Error::WSA_QOS_EFLOWSPEC, Error::WSA_QOS_EOBJLENGTH, Error::WSA_QOS_EPOLICYOBJ, Error::WSA_QOS_EPROVSPECBUF, Error::WSA_QOS_EPSFILTERSPEC, Error::WSA_QOS_EPSFLOWSPEC, Error::WSA_QOS_ESDMODEOBJ, Error::WSA_QOS_ESERVICETYPE, Error::WSA_QOS_ESHAPERATEOBJ, Error::WSA_QOS_EUNKNOWNPSOBJ, Error::WSA_QOS_GENERIC_ERROR, Error::WSA_QOS_NO_RECEIVERS, Error::WSA_QOS_NO_SENDERS, Error::WSA_QOS_POLICY_FAILURE, Error::WSA_QOS_RECEIVERS, Error::WSA_QOS_REQUEST_CONFIRMED, Error::WSA_QOS_RESERVED_PETYPE, Error::WSA_QOS_SENDERS, Error::WSA_QOS_TRAFFIC_CTRL_ERROR, Error::WX86_ERROR, Error::WX86_WARNING, Error::XMLDSIG_ERROR, Error::XML_ENCODING_MISMATCH, Error::XML_PARSE_ERROR

Instance Method Summary collapse

Methods included from Registry

#meterpreter_registry_createkey, #meterpreter_registry_deletekey, #meterpreter_registry_deleteval, #meterpreter_registry_enumkeys, #meterpreter_registry_enumvals, #meterpreter_registry_getvaldata, #meterpreter_registry_getvalinfo, #meterpreter_registry_key_exist?, #meterpreter_registry_loadkey, #meterpreter_registry_perms, #meterpreter_registry_setvaldata, #meterpreter_registry_unloadkey, #normalize_key, #registry_createkey, #registry_deletekey, #registry_deleteval, #registry_enumkeys, #registry_enumvals, #registry_getvaldata, #registry_getvalinfo, #registry_hive_lookup, #registry_key_exist?, #registry_loadkey, #registry_setvaldata, #registry_unloadkey, #session_has_registry_ext, #shell_registry_cmd, #shell_registry_cmd_result, #shell_registry_createkey, #shell_registry_deletekey, #shell_registry_deleteval, #shell_registry_enumkeys, #shell_registry_enumvals, #shell_registry_getvaldata, #shell_registry_getvalinfo, #shell_registry_key_exist?, #shell_registry_loadkey, #shell_registry_setvaldata, #shell_registry_unloadkey, #split_key

Methods included from CliParse

#win_parse_error, #win_parse_results

Instance Method Details

#advapi32Object



87
88
89
# File 'lib/msf/core/post/windows/services.rb', line 87

def advapi32
  session.railgun.advapi32
end

#close_service_handle(handle) ⇒ Object

Call advapi32.dll!CloseServiceHandle on the given handle



140
141
142
143
144
# File 'lib/msf/core/post/windows/services.rb', line 140

def close_service_handle(handle)
  if handle
    advapi32.CloseServiceHandle(handle)
  end
end

#each_service {|String| ... } ⇒ Array<Hash>

TODO:

Allow operating on a remote host

Yield each service name on the remote host

Yields:

  • (String)

    Case-sensitive name of a service

Returns:

  • (Array<Hash>)

    Array of Hashes containing Service details. May contain the following keys:

    • :name



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/msf/core/post/windows/services.rb', line 184

def each_service(&block)
  if session.commands.include?(Rex::Post::Meterpreter::Extensions::Stdapi::COMMAND_ID_STDAPI_REGISTRY_ENUM_KEY)
    begin
      return session.extapi.service.enumerate.each(&block)
    rescue Rex::Post::Meterpreter::RequestError => e
      vprint_error("Request Error #{e} Falling back to registry technique")
    end
  end

  serviceskey = 'HKLM\\SYSTEM\\CurrentControlSet\\Services'

  keys = registry_enumkeys(serviceskey)
  keys.each do |sk|
    service_type = registry_getvaldata("#{serviceskey}\\#{sk}", 'Type').to_s
    next if service_type.empty?

    service_type = (service_type.starts_with?('0x') ? service_type.to_i(16) : service_type.to_i)

    next unless [
      SERVICE_WIN32_OWN_PROCESS,
      SERVICE_WIN32_OWN_PROCESS_INTERACTIVE,
      SERVICE_WIN32_SHARE_PROCESS,
      SERVICE_WIN32_SHARE_PROCESS_INTERACTIVE
    ].include?(service_type)

    yield sk
  end

  keys
end

#initialize(info = {}) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/msf/core/post/windows/services.rb', line 70

def initialize(info = {})
  super(
    update_info(
      info,
      'Compat' => {
        'Meterpreter' => {
          'Commands' => %w[
            extapi_service_enum
            extapi_service_query
            stdapi_railgun_api
          ]
        }
      }
    )
  )
end

#open_sc_manager(opts = {}) {|manager| ... } ⇒ Integer

Open the service manager with advapi32.dll!OpenSCManagerA on the given host or the local machine if :host option is nil. If called with a block, yields the manager and closes it when the block returns.

Parameters:

  • opts (Hash) (defaults to: {})

Options Hash (opts):

Yields:

  • (manager)

    Gives the block a manager handle as returned by advapi32.dll!OpenSCManagerA. When the block returns, the handle will be closed with #close_service_handle.

Returns:

  • (Integer)

    Opaque Windows handle SC_HANDLE as returned by OpenSCManagerA()

Raises:

  • (RuntimeError)

    if OpenSCManagerA returns a NULL handle



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'lib/msf/core/post/windows/services.rb', line 111

def open_sc_manager(opts = {})
  host = opts[:host] || nil
  access = opts[:access] || 'SC_MANAGER_ALL_ACCESS'
  machine_str = host ? "\\\\#{host}" : nil

  # SC_HANDLE WINAPI OpenSCManager(
  #   _In_opt_  LPCTSTR lpMachineName,
  #   _In_opt_  LPCTSTR lpDatabaseName,
  #   _In_      DWORD dwDesiredAccess
  # );
  manag = advapi32.OpenSCManagerA(machine_str, nil, access)
  if (manag['return'] == 0)
    raise "Unable to open service manager: #{manag['ErrorMessage']}"
  end

  if block_given?
    begin
      yield manag['return']
    ensure
      close_service_handle(manag['return'])
    end
  else
    return manag['return']
  end
end

#open_service_handle(manager, name, access) {|manager| ... } ⇒ Integer

Open the service with advapi32.dll!OpenServiceA on the target manager

Yields:

  • (manager)

    Gives the block a service handle as returned by advapi32.dll!OpenServiceA. When the block returns, the handle will be closed with #close_service_handle.

Returns:

  • (Integer)

    Opaque Windows handle SC_HANDLE as returned by OpenServiceA()

Raises:

  • (RuntimeError)

    if OpenServiceA failed



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/msf/core/post/windows/services.rb', line 157

def open_service_handle(manager, name, access)
  handle = advapi32.OpenServiceA(manager, name, access)
  if (handle['return'] == 0)
    raise "Could not open service. OpenServiceA error: #{handle['ErrorMessage']}"
  end

  if block_given?
    begin
      yield handle['return']
    ensure
      close_service_handle(handle['return'])
    end
  else
    return handle['return']
  end
end

#parse_service_status_struct(lpServiceStatus) ⇒ Hash

Parses out a SERVICE_STATUS struct from the lpServiceStatus out parameter

Parameters:

  • lpServiceStatus (String)

    the latest status of calling service

Returns:

  • (Hash)

    Containing SERVICE_STATUS values



591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
# File 'lib/msf/core/post/windows/services.rb', line 591

def parse_service_status_struct(lpServiceStatus)
  return unless lpServiceStatus

  vals = lpServiceStatus.unpack('V*')

  {
    type: vals[0],
    state: vals[1],
    controls_accepted: vals[2],
    win32_exit_code: vals[3],
    service_exit_code: vals[4],
    check_point: vals[5],
    wait_hint: vals[6]
  }
end

#service_change_config(name, opts, server = nil) ⇒ GetLastError

Modify a service on the session host

Parameters:

  • name (String)

    Name of the service to be used as the key

  • opts (Hash)

    Settings to be modified

  • server (String, nil) (defaults to: nil)

    A hostname or IP address. Default is the remote localhost

Returns:

  • (GetLastError)

    0 if the function succeeds

Raises:

  • (RuntimeError)

    if OpenSCManagerA failed



364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
# File 'lib/msf/core/post/windows/services.rb', line 364

def service_change_config(name, opts, server = nil)
  open_sc_manager(host: server, access: 'SC_MANAGER_CONNECT') do |manager|
    open_service_handle(manager, name, 'SERVICE_CHANGE_CONFIG') do |service_handle|
      ret = advapi32.ChangeServiceConfigA(service_handle,
                                          opts[:service_type] || 'SERVICE_NO_CHANGE',
                                          opts[:starttype] || 'SERVICE_NO_CHANGE',
                                          opts[:error_control] || 'SERVICE_NO_CHANGE',
                                          opts[:path] || nil,
                                          opts[:logroup] || nil,
                                          opts[:tag_id] || nil,
                                          opts[:dependencies] || nil,
                                          opts[:startname] || nil,
                                          opts[:password] || nil,
                                          opts[:display] || nil)

      return ret['GetLastError']
    end
  end
end

#service_change_startup(name, mode, server = nil) ⇒ Object

Changes a given service startup mode, name must be provided and the mode.

Mode is a string with either auto, manual or disable for the corresponding setting. The name of the service is case sensitive.

Raises:

  • (RuntimeError)

    if an invalid startup mode is provided in the mode parameter



320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
# File 'lib/msf/core/post/windows/services.rb', line 320

def service_change_startup(name, mode, server = nil)
  if mode.is_a? Integer
    startup_number = mode
  else
    case mode.downcase
    when 'boot' then startup_number = START_TYPE_BOOT
    when 'system' then startup_number = START_TYPE_SYSTEM
    when 'auto' then startup_number = START_TYPE_AUTO
    when 'manual' then startup_number = START_TYPE_MANUAL
    when 'disable' then startup_number = START_TYPE_DISABLED
    else
      raise "Invalid Startup Mode: #{mode}"
    end
  end

  if session.commands.include?(Rex::Post::Meterpreter::Extensions::Stdapi::COMMAND_ID_STDAPI_RAILGUN_API)
    begin
      ret = service_change_config(name, { starttype: startup_number }, server)
      return (ret == Error::SUCCESS)
    rescue Rex::Post::Meterpreter::RequestError => e
      vprint_error("Request Error #{e} Falling back to registry technique")
    end
  end

  unless server.blank?
    raise 'Could not change service startup mode. Operation not supported on remote hosts when using registry technique.'
  end

  servicekey = "HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{name.chomp}"
  registry_setvaldata(servicekey, 'Start', startup_number, 'REG_DWORD')
end

#service_create(name, opts, server = nil) ⇒ GetLastError

Create a service that runs executable_on_host on the session host

Parameters:

  • name (String)

    Name of the service to be used as the key

  • opts (Hash)

    Settings to be modified

  • server (String, nil) (defaults to: nil)

    A hostname or IP address. Default is the remote localhost

Returns:

  • (GetLastError)

    0 if the function succeeds

Raises:

  • (RuntimeError)

    if OpenSCManagerA failed



396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/msf/core/post/windows/services.rb', line 396

def service_create(name, opts, server = nil)
  access = 'SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE | SC_MANAGER_QUERY_LOCK_STATUS'
  open_sc_manager(host: server, access: access) do |manager|
    opts[:display] ||= Rex::Text.rand_text_alpha(8)
    opts[:desired_access] ||= 'SERVICE_START'
    opts[:service_type] ||= 'SERVICE_WIN32_OWN_PROCESS'
    opts[:starttype] ||= START_TYPE_AUTO
    opts[:error_control] ||= 'SERVICE_ERROR_IGNORE'
    opts[:path] ||= nil
    opts[:logroup] ||= nil
    opts[:tag_id] ||= nil
    opts[:dependencies] ||= nil
    opts[:startname] ||= nil
    opts[:password] ||= nil

    newservice = advapi32.CreateServiceA(manager,
                                         name,
                                         opts[:display],
                                         opts[:desired_access],
                                         opts[:service_type],
                                         opts[:starttype],
                                         opts[:error_control],
                                         opts[:path],
                                         opts[:logroup],
                                         opts[:tag_id], # out
                                         opts[:dependencies],
                                         opts[:startname],
                                         opts[:password])

    if newservice
      close_service_handle(newservice['return'])
    end

    return newservice['GetLastError']
  end
end

#service_delete(name, server = nil) ⇒ Object

Delete a service.

Parameters:

  • name (String)

    Service name (not display name)

  • server (String, nil) (defaults to: nil)

    A hostname or IP address. Default is the remote localhost

Raises:

  • (RuntimeError)

    if OpenServiceA failed



499
500
501
502
503
504
505
506
# File 'lib/msf/core/post/windows/services.rb', line 499

def service_delete(name, server = nil)
  open_sc_manager(host: server) do |manager|
    open_service_handle(manager, name, 'DELETE') do |service_handle|
      ret = advapi32.DeleteService(service_handle)
      return ret['GetLastError']
    end
  end
end

#service_exists?(service) ⇒ Boolean

TODO:

Rewrite to allow operating on a remote host

Check if the specified Windows service exists.

Parameters:

  • name (String)

    The target service's name (not to be confused with Display Name). Case sensitive.

Returns:

  • (Boolean)


297
298
299
300
301
302
303
304
305
306
307
308
309
310
# File 'lib/msf/core/post/windows/services.rb', line 297

def service_exists?(service)
  srv_info = service_info(service)

  if srv_info.nil?
    vprint_error('Unable to enumerate Windows services')
    return false
  end

  if srv_info && srv_info[:display].empty?
    return false
  end

  true
end

#service_info(name) ⇒ Hash?

TODO:

Rewrite to allow operating on a remote host

Get Windows Service information.

Information returned in a hash with display name, startup mode and command executed by the service. Service name is case sensitive. Hash keys are Name, Start, Command and Credentials.

If ExtAPI is available we return the DACL, LOGroup, and Interactive values otherwise these values are nil

Parameters:

  • name (String)

    The target service's name (not to be confused with Display Name). Case sensitive.

Returns:

  • (Hash, nil)

    Hash containing service details on success, nil otherwise.



260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
# File 'lib/msf/core/post/windows/services.rb', line 260

def service_info(name)
  if session.commands.include?(Rex::Post::Meterpreter::Extensions::Stdapi::COMMAND_ID_STDAPI_REGISTRY_QUERY_VALUE)
    begin
      return session.extapi.service.query(name)
    rescue Rex::Post::Meterpreter::RequestError => e
      vprint_error("Request Error #{e} Falling back to registry technique")
    end
  end

  servicekey = "HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{name.chomp}"
  start_type = registry_getvaldata(servicekey, 'Start').to_s
  if start_type.empty?
    print_error("Could not retrieve the start type of the #{name.chomp} service!")
    return nil
  end

  {
    display: registry_getvaldata(servicekey, 'DisplayName').to_s,
    starttype: (start_type.starts_with?('0x') ? start_type.to_i(16) : start_type.to_i),
    path: registry_getvaldata(servicekey, 'ImagePath').to_s,
    startname: registry_getvaldata(servicekey, 'ObjectName').to_s,
    dacl: nil,
    logroup: nil,
    interactive: nil
  }
end

#service_listArray<Hash>

TODO:

Rewrite to allow operating on a remote host

List all Windows Services present

If ExtAPI is available we return the DACL, LOGroup, and Interactive values otherwise these values are nil

Returns:

  • (Array<Hash>)

    Array of Hashes containing Service details. May contain the following keys:

    • :name

    • :display

    • :pid

    • :status

    • :interactive



230
231
232
233
234
235
236
237
238
239
240
241
# File 'lib/msf/core/post/windows/services.rb', line 230

def service_list
  if session.type == 'meterpreter' && session.commands.include?(Rex::Post::Meterpreter::Extensions::Stdapi::COMMAND_ID_STDAPI_REGISTRY_ENUM_KEY)
    return meterpreter_service_list
  end

  services = []
  each_service do |s|
    services << { name: s }
  end

  services
end

#service_restart(name, start_type = START_TYPE_AUTO, server = nil, should_retry = true) ⇒ Boolean

Performs an aggressive service (re)start If service is disabled it will re-enable If service is running it will stop and restart

Parameters:

  • name (String)

    The service name

  • start_type (Integer) (defaults to: START_TYPE_AUTO)

    The start type to configure if disabled

  • server (String) (defaults to: nil)

    The server to target

Returns:

  • (Boolean)

    indicating success



546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
# File 'lib/msf/core/post/windows/services.rb', line 546

def service_restart(name, start_type = START_TYPE_AUTO, server = nil, should_retry = true)
  status = service_start(name, server)

  if status == Error::SUCCESS
    vprint_good("[#{name}] Service started")
    return true
  end

  case status
  when Error::ACCESS_DENIED
    vprint_error("[#{name}] Access denied")
  when Error::INVALID_HANDLE
    vprint_error("[#{name}] Invalid handle")
  when Error::PATH_NOT_FOUND
    vprint_error("[#{name}] Service binary could not be found")
  when Error::SERVICE_ALREADY_RUNNING
    vprint_status("[#{name}] Service already running attempting to stop and restart")
    stopped = service_stop(name, server)
    if ((stopped == Error::SUCCESS) || (stopped == Error::SERVICE_NOT_ACTIVE))
      service_restart(name, start_type, server, false) if should_retry
    else
      vprint_error("[#{name}] Service disabled, unable to change start type Error: #{stopped}")
    end
  when Error::SERVICE_DISABLED
    vprint_status("[#{name}] Service disabled attempting to set to manual")
    if (service_change_config(name, { starttype: start_type }, server) == Error::SUCCESS)
      service_restart(name, start_type, server, false) if should_retry
    else
      vprint_error("[#{name}] Service disabled, unable to change start type")
    end
  else
    status = ::WindowsError::Win32.find_by_retval(s).first
    vprint_error("[#{name}] Unhandled error: #{status.name}: #{status.description}")
    return false
  end
end

#service_start(name, server = nil) ⇒ Integer

Start a service.

Parameters:

  • name (String)

    Service name (not display name)

  • server (String, nil) (defaults to: nil)

    A hostname or IP address. Default is the remote localhost

Returns:

  • (Integer)

    0 if service started successfully, 1 if it failed because the service is already running, 2 if it is disabled

Raises:

  • (RuntimeError)

    if OpenServiceA failed



445
446
447
448
449
450
451
452
453
454
455
456
457
# File 'lib/msf/core/post/windows/services.rb', line 445

def service_start(name, server = nil)
  raise 'Invalid service name' if name.blank?

  return _shell_service_start(name, server) if session.type == 'shell'

  open_sc_manager(host: server, access: 'SC_MANAGER_CONNECT') do |manager|
    open_service_handle(manager, name, 'SERVICE_START') do |service_handle|
      retval = advapi32.StartServiceA(service_handle, 0, nil)

      return retval['GetLastError']
    end
  end
end

#service_status(name, server = nil) ⇒ Object

Query Service Status

Parameters:

  • name (String)

    Service name (not display name)

  • server (String, nil) (defaults to: nil)

    A hostname or IP address. Default is the remote localhost

Returns:

  • {} representing lpServiceStatus

Raises:

  • (RuntimeError)

    if OpenServiceA failed



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
# File 'lib/msf/core/post/windows/services.rb', line 517

def service_status(name, server = nil)
  ret = nil

  open_sc_manager(host: server, access: 'GENERIC_READ') do |manager|
    open_service_handle(manager, name, 'GENERIC_READ') do |service_handle|
      status = advapi32.QueryServiceStatus(service_handle, 28)

      if (status['return'] == 0)
        raise "Could not query service. QueryServiceStatus error: #{status['ErrorMessage']}"
      end

      ret = parse_service_status_struct(status['lpServiceStatus'])
    end
  end

  ret
end

#service_stop(name, server = nil) ⇒ Integer

Stop a service.

Parameters:

  • name (String)

    Service name (not display name)

  • server (String, nil) (defaults to: nil)

    A hostname or IP address. Default is the remote localhost

Returns:

  • (Integer)

    0 if service stopped successfully, 1 if it failed because the service is already stopped or disabled, 2 if it cannot be stopped for some other reason.

Raises:

  • (RuntimeError)

    if OpenServiceA failed



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
# File 'lib/msf/core/post/windows/services.rb', line 469

def service_stop(name, server = nil)
  raise 'Invalid service name' if name.blank?

  return _shell_service_stop(name, server) if session.type == 'shell'

  open_sc_manager(host: server, access: 'SC_MANAGER_CONNECT') do |manager|
    open_service_handle(manager, name, 'SERVICE_STOP') do |service_handle|
      retval = advapi32.ControlService(service_handle, 1, 28)
      case retval['GetLastError']
      when Error::SUCCESS,
          Error::INVALID_SERVICE_CONTROL,
          Error::SERVICE_CANNOT_ACCEPT_CTRL,
          Error::SERVICE_NOT_ACTIVE
        status = parse_service_status_struct(retval['lpServiceStatus'])
      else
        status = nil
      end

      return retval['GetLastError']
    end
  end
end