Drive error return value learning notes

Source: Internet
Author: User

Nt: path of ntstatus. h file c: \ winddk \ 7600.16385.1 \ Inc \ API


Today, I read some information about the returned values of the driver in the ntstatus. h header file to prepare for future debugging of the error values returned by the driver,
Informational # define status_object_name_exists (ntstatus) 0x40000000l)
Warning warning # define status_guard_page_violation (ntstatus) 0x80000001l) // winnt
0xc0000000 is greater than this base number, Indicating Error # define status_unsuccessful (ntstatus) 0xc0000001l)

You can know the approximate situation based on the range of the returned value size.
For more information, see messagetext in ntstatus. h.
At the same time, the following provides a Reference URL for Chinese:

Http://wenku.baidu.com/view/d7681c2eb4daa58da0114a49.html

//

// Values are 32 bit values laid 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 // The maximum two digits are the 31st bits and 29 BITs, indicating the degree of error: Success, information, warning, error
//
// 00-success
// 01-Informational
// 10-warning
// 11-Error
//
// C-is the customer code flag // user flag
//
// R-is a reserved bit // system Reserved Bit
//
// Facility-is the Facility Code // device code
//
// Code-is the facility's status code // The device status code
//

Informational # define status_object_name_exists (ntstatus) 0x40000000l)
Warning warning # define status_guard_page_violation (ntstatus) 0x80000001l) // winnt
0xc0000000 is greater than this base number, Indicating Error # define status_unsuccessful (ntstatus) 0xc0000001l)

// Define the facility Codes
//
# Define facility_volmgr 0x38
# Define facility_virtualization 0x37
# Define facility_video 0x1b
# Define facility_usb_error_code 0x10
# Define facility_transaction 0x19
# Define facility_terminal_server 0xa
# Define facility_sxs_error_code 0x15
# Define facility_ntsspi 0x9
# Define facility_rpc_stubs 0x3
# Define facility_rpc_runtime 0x2
# Define facility_ntwin32 0x7
# Define facility_win32k_ntuser 0x3e
# Define facility_win32k_ntgdi 0x3f
# Define facility_ndis_error_code 0x23
# Define faciltiy_mui_error_code 0xb
# Define facility_monitor 0x1d
# Define facility_maximum_value 0x3f
# Define facility_ipsec 0x36
# Define facility_io_error_code 0x4
# Define facility_hypervisor 0x35
# Define facility_hid_error_code 0x11
# Define facility_graphics_kernel 0x1e
# Define facility_fwp_error_code 0x22
# Define facility_fve_error_code 0x21
# Define facility_firewire_error_code 0x12
# Define facility_filter_manager 0x1c
# Define facility_driver_framework 0x20
# Define facility_dis 0x3c
# Define facility_debugger 0x1
# Define facility_commonlog 0x1a
# Define facility_cluster_error_code 0x13
# Define facility_ntcert 0x8
# Define facility_bcd_error_code 0x39
# Define facility_acpi_error_code 0x14

//
// Define the severity Codes
//
# Define status_severity_warning 0x2
# Define status_severity_success 0x0
# Define status_severity_informational 0x1
# Define status_severity_error 0x3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.