📄 ntstatus.inc
字号:
comment ^
Module Name:
ntstatus.inc
Abstract:
Constant definitions for the NTSTATUS values.
Author:
Four-F (four-f@mail.ru)
Created: 11-Oct-2002
Last update: 05-Nov-2002
^
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;
; Standard Success values
;
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
; The success status codes 0 - 63 are reserved for wait completion status.
; FacilityCodes 0x5 - 0xF have been allocated by various drivers.
STATUS_SUCCESS equ 0
;
; Values are 32 bit values layed out as follows:
;
; 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
; 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
; +---+-+-+-----------------------+-------------------------------+
; |Sev|C|R| Facility | Code |
; +---+-+-+-----------------------+-------------------------------+
;
; where
;
; Sev - is the severity code
;
; 00 - Success
; 01 - Informational
; 10 - Warning
; 11 - Error
;
; C - is the Customer code flag
;
; R - is a reserved bit
;
; Facility - is the facility code
;
; Code - is the facility's status code
;
;
; Define the facility codes
;
FACILITY_USB_ERROR_CODE equ 10h
FACILITY_TERMINAL_SERVER equ 0Ah
FACILITY_RPC_STUBS equ 3
FACILITY_RPC_RUNTIME equ 2
FACILITY_IO_ERROR_CODE equ 4
FACILITY_HID_ERROR_CODE equ 11h
FACILITY_FIREWIRE_ERROR_CODE equ 12h
FACILITY_DEBUGGER equ 1
FACILITY_CLUSTER_ERROR_CODE equ 13h
FACILITY_ACPI_ERROR_CODE equ 14h
;
; Define the severity codes
;
STATUS_SEVERITY_WARNING equ 2
STATUS_SEVERITY_SUCCESS equ 0
STATUS_SEVERITY_INFORMATIONAL equ 1
STATUS_SEVERITY_ERROR equ 3
;
; MessageId: STATUS_WAIT_0
;
; MessageText:
;
; STATUS_WAIT_0
;
STATUS_WAIT_0 equ 00000000 ; winnt
;
; MessageId: STATUS_WAIT_1
;
; MessageText:
;
; STATUS_WAIT_1
;
STATUS_WAIT_1 equ 00000001
;
; MessageId: STATUS_WAIT_2
;
; MessageText:
;
; STATUS_WAIT_2
;
STATUS_WAIT_2 equ 00000002
;
; MessageId: STATUS_WAIT_3
;
; MessageText:
;
; STATUS_WAIT_3
;
STATUS_WAIT_3 equ 00000003
;
; MessageId: STATUS_WAIT_63
;
; MessageText:
;
; STATUS_WAIT_63
;
STATUS_WAIT_63 equ 0000003Fh
;
; The success status codes 128 - 191 are reserved for wait completion
; status with an abandoned mutant object.
;
STATUS_ABANDONED equ 00000080h
;
; MessageId: STATUS_ABANDONED_WAIT_0
;
; MessageText:
;
; STATUS_ABANDONED_WAIT_0
;
STATUS_ABANDONED_WAIT_0 equ 00000080h ; winnt
;
; MessageId: STATUS_ABANDONED_WAIT_63
;
; MessageText:
;
; STATUS_ABANDONED_WAIT_63
;
STATUS_ABANDONED_WAIT_63 equ 000000BFh
;
; The success status codes 256, 257, 258, and 258 are reserved for
; User APC, Kernel APC, Alerted, and Timeout.
;
;
; MessageId: STATUS_USER_APC
;
; MessageText:
;
; STATUS_USER_APC
;
STATUS_USER_APC equ 000000C0h ; winnt
;
; MessageId: STATUS_KERNEL_APC
;
; MessageText:
;
; STATUS_KERNEL_APC
;
STATUS_KERNEL_APC equ 00000100h
;
; MessageId: STATUS_ALERTED
;
; MessageText:
;
; STATUS_ALERTED
;
STATUS_ALERTED equ 00000101h
;
; MessageId: STATUS_TIMEOUT
;
; MessageText:
;
; STATUS_TIMEOUT
;
STATUS_TIMEOUT equ 00000102h ; winnt
;
; MessageId: STATUS_PENDING
;
; MessageText:
;
; The operation that was requested is pending completion.
;
STATUS_PENDING equ 00000103h ; winnt
;
; MessageId: STATUS_REPARSE
;
; MessageText:
;
; A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
;
STATUS_REPARSE equ 00000104h
;
; MessageId: STATUS_MORE_ENTRIES
;
; MessageText:
;
; Returned by enumeration APIs to indicate more information is available to successive calls.
;
STATUS_MORE_ENTRIES equ 00000105h
;
; MessageId: STATUS_NOT_ALL_ASSIGNED
;
; MessageText:
;
; Indicates not all privileges referenced are assigned to the caller.
; This allows, for example, all privileges to be disabled without having to know exactly which privileges are assigned.
;
STATUS_NOT_ALL_ASSIGNED equ 00000106h
;
; MessageId: STATUS_SOME_NOT_MAPPED
;
; MessageText:
;
; Some of the information to be translated has not been translated.
;
STATUS_SOME_NOT_MAPPED equ 00000107h
;
; MessageId: STATUS_OPLOCK_BREAK_IN_PROGRESS
;
; MessageText:
;
; An open/create operation completed while an oplock break is underway.
;
STATUS_OPLOCK_BREAK_IN_PROGRESS equ 00000108h
;
; MessageId: STATUS_VOLUME_MOUNTED
;
; MessageText:
;
; A new volume has been mounted by a file system.
;
STATUS_VOLUME_MOUNTED equ 00000109h
;
; MessageId: STATUS_RXACT_COMMITTED
;
; MessageText:
;
; This success level status indicates that the transaction state already exists for the registry sub-tree,
; but that a transaction commit was previously aborted.
; The commit has now been completed.
;
STATUS_RXACT_COMMITTED equ 0000010Ah
;
; MessageId: STATUS_NOTIFY_CLEANUP
;
; MessageText:
;
; This indicates that a notify change request has been completed due to closing the handle
; which made the notify change request.
;
STATUS_NOTIFY_CLEANUP equ 0000010Bh
;
; MessageId: STATUS_NOTIFY_ENUM_DIR
;
; MessageText:
;
; This indicates that a notify change request is being completed and that the information
; is not being returned in the caller's buffer.
; The caller now needs to enumerate the files to find the changes.
;
STATUS_NOTIFY_ENUM_DIR equ 0000010Ch
;
; MessageId: STATUS_NO_QUOTAS_FOR_ACCOUNT
;
; MessageText:
;
; {No Quotas}
; No system quota limits are specifically set for this account.
;
STATUS_NO_QUOTAS_FOR_ACCOUNT equ 0000010Dh
;
; MessageId: STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED
;
; MessageText:
;
; {Connect Failure on Primary Transport}
; An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed.
; The computer WAS able to connect on a secondary transport.
;
STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED equ 0000010Eh
;
; MessageId: STATUS_PAGE_FAULT_TRANSITION
;
; MessageText:
;
; Page fault was a transition fault.
;
STATUS_PAGE_FAULT_TRANSITION equ 00000110h
;
; MessageId: STATUS_PAGE_FAULT_DEMAND_ZERO
;
; MessageText:
;
; Page fault was a demand zero fault.
;
STATUS_PAGE_FAULT_DEMAND_ZERO equ 00000111h
;
; MessageId: STATUS_PAGE_FAULT_COPY_ON_WRITE
;
; MessageText:
;
; Page fault was a demand zero fault.
;
STATUS_PAGE_FAULT_COPY_ON_WRITE equ 00000112h
;
; MessageId: STATUS_PAGE_FAULT_GUARD_PAGE
;
; MessageText:
;
; Page fault was a demand zero fault.
;
STATUS_PAGE_FAULT_GUARD_PAGE equ 00000113h
;
; MessageId: STATUS_PAGE_FAULT_PAGING_FILE
;
; MessageText:
;
; Page fault was satisfied by reading from a secondary storage device.
;
STATUS_PAGE_FAULT_PAGING_FILE equ 00000114h
;
; MessageId: STATUS_CACHE_PAGE_LOCKED
;
; MessageText:
;
; Cached page was locked during operation.
;
STATUS_CACHE_PAGE_LOCKED equ 00000115h
;
; MessageId: STATUS_CRASH_DUMP
;
; MessageText:
;
; Crash dump exists in paging file.
;
STATUS_CRASH_DUMP equ 00000116h
;
; MessageId: STATUS_BUFFER_ALL_ZEROS
;
; MessageText:
;
; Specified buffer contains all zeros.
;
STATUS_BUFFER_ALL_ZEROS equ 00000117h
;
; MessageId: STATUS_REPARSE_OBJECT
;
; MessageText:
;
; A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
;
STATUS_REPARSE_OBJECT equ 00000118h
;
; MessageId: STATUS_RESOURCE_REQUIREMENTS_CHANGED
;
; MessageText:
;
; The device has succeeded a query-stop and its resource requirements have changed.
;
STATUS_RESOURCE_REQUIREMENTS_CHANGED equ 00000119h
;
; MessageId: STATUS_TRANSLATION_COMPLETE
;
; MessageText:
;
; The translator has translated these resources into the global space and no further translations should be performed.
;
STATUS_TRANSLATION_COMPLETE equ 00000120h
;
; MessageId: STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY
;
; MessageText:
;
; The directory service evaluated group memberships locally, as it was unable to contact a global catalog server.
;
STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY equ 00000121h
;
; MessageId: DBG_EXCEPTION_HANDLED
;
; MessageText:
;
; Debugger handled exception
;
DBG_EXCEPTION_HANDLED equ 00010001h ; windbgkd
;
; MessageId: DBG_CONTINUE
;
; MessageText:
;
; Debugger continued
;
DBG_CONTINUE equ 00010002h ; winnt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/
;
; Standard Information values
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/
;
; MessageId: STATUS_OBJECT_NAME_EXISTS
;
; MessageText:
;
; {Object Exists}
; An attempt was made to create an object and the object name already existed.
;
STATUS_OBJECT_NAME_EXISTS equ 40000000h
;
; MessageId: STATUS_THREAD_WAS_SUSPENDED
;
; MessageText:
;
; {Thread Suspended}
; A thread termination occurred while the thread was suspended. The thread was resumed, and termination proceeded.
;
STATUS_THREAD_WAS_SUSPENDED equ 40000001h
;
; MessageId: STATUS_WORKING_SET_LIMIT_RANGE
;
; MessageText:
;
; {Working Set Range Error}
; An attempt was made to set the working set minimum or maximum to values which are outside of the allowable range.
;
STATUS_WORKING_SET_LIMIT_RANGE equ 40000002h
;
; MessageId: STATUS_IMAGE_NOT_AT_BASE
;
; MessageText:
;
; {Image Relocated}
; An image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image.
;
STATUS_IMAGE_NOT_AT_BASE equ 40000003h
;
; MessageId: STATUS_RXACT_STATE_CREATED
;
; MessageText:
;
; This informational level status indicates that a specified registry sub-tree transaction state did not yet exist and had to be created.
;
STATUS_RXACT_STATE_CREATED equ 40000004h
;
; MessageId: STATUS_SEGMENT_NOTIFICATION
;
; MessageText:
;
; {Segment Load}
; A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image.
; An exception is raised so a debugger can load, unload or track symbols and breakpoints within these 16-bit segments.
;
STATUS_SEGMENT_NOTIFICATION equ 40000005h ; winnt
;
; MessageId: STATUS_LOCAL_USER_SESSION_KEY
;
; MessageText:
;
; {Local Session Key}
; A user session key was requested for a local RPC connection. The session key returned is a constant value and not unique to this connection.
;
STATUS_LOCAL_USER_SESSION_KEY equ 40000006h
;
; MessageId: STATUS_BAD_CURRENT_DIRECTORY
;
; MessageText:
;
; {Invalid Current Directory}
; The process cannot switch to the startup current directory %hs.
; Select OK to set current directory to %hs, or select CANCEL to exit.
;
STATUS_BAD_CURRENT_DIRECTORY equ 40000007h
;
; MessageId: STATUS_SERIAL_MORE_WRITES
;
; MessageText:
;
; {Serial IOCTL Complete}
; A serial I/O operation was completed by another write to a serial port.
; (The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
;
STATUS_SERIAL_MORE_WRITES equ 40000008h
;
; MessageId: STATUS_REGISTRY_RECOVERED
;
; MessageText:
;
; {Registry Recovery}
; One of the files containing the system's Registry data had to be recovered by use of a log or alternate copy.
; The recovery was successful.
;
STATUS_REGISTRY_RECOVERED equ 40000009h
;
; MessageId: STATUS_FT_READ_RECOVERY_FROM_BACKUP
;
; MessageText:
;
; {Redundant Read}
; To satisfy a read request, the NT fault-tolerant file system successfully read the requested data from a redundant copy.
; This was done because the file system encountered a failure on a member of the fault-tolerant volume,
; but was unable to reassign the failing area of the device.
;
STATUS_FT_READ_RECOVERY_FROM_BACKUP equ 4000000Ah
;
; MessageId: STATUS_FT_WRITE_RECOVERY
;
; MessageText:
;
; {Redundant Write}
; To satisfy a write request, the NT fault-tolerant file system successfully wrote a redundant copy of the information.
; This was done because the file system encountered a failure on a member of the fault-tolerant volume,
; but was not able to reassign the failing area of the device.
;
STATUS_FT_WRITE_RECOVERY equ 4000000Bh
;
; MessageId: STATUS_SERIAL_COUNTER_TIMEOUT
;
; MessageText:
;
; {Serial IOCTL Timeout}
; A serial I/O operation completed because the time-out period expired.
; (The IOCTL_SERIAL_XOFF_COUNTER had not reached zero.)
;
STATUS_SERIAL_COUNTER_TIMEOUT equ 4000000Ch
;
; MessageId: STATUS_NULL_LM_PASSWORD
;
; MessageText:
;
; {Password Too Complex}
; The Windows password is too complex to be converted to a LAN Manager password.
; The LAN Manager password returned is a NULL string.
;
STATUS_NULL_LM_PASSWORD equ 4000000Dh
;
; MessageId: STATUS_IMAGE_MACHINE_TYPE_MISMATCH
;
; MessageText:
;
; {Machine Type Mismatch}
; The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load.
;
STATUS_IMAGE_MACHINE_TYPE_MISMATCH equ 4000000Eh
;
; MessageId: STATUS_RECEIVE_PARTIAL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -