summaryrefslogtreecommitdiff
path: root/crates/windows-kernel-sys/src/base.rs
blob: 1589f2ee17276b2baa1de09f6156fdb7bb2b7617 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// TODO: `cargo clippy`
// #![deny(
//   warnings,
//   nonstandard_style,
//   unused,
//   future_incompatible,
//   rust_2018_idioms
// )]
// #![deny(clippy::all, clippy::nursery, clippy::pedantic)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

pub use cty::*;

include!(concat!(env!("OUT_DIR"), "/base.rs"));

pub const STATUS_SUCCESS: NTSTATUS = 0x00000000;
pub const STATUS_GUARD_PAGE_VIOLATION: NTSTATUS = 0x80000001_u32 as i32;
pub const STATUS_DATATYPE_MISALIGNMENT: NTSTATUS = 0x80000002_u32 as i32;
pub const STATUS_BREAKPOINT: NTSTATUS = 0x80000003_u32 as i32;
pub const STATUS_SINGLE_STEP: NTSTATUS = 0x80000004_u32 as i32;
pub const STATUS_UNWIND_CONSOLIDATE: NTSTATUS = 0x80000029_u32 as i32;
pub const STATUS_UNSUCCESSFUL: NTSTATUS = 0xC0000001_u32 as i32;
pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = 0xC0000002_u32 as i32;
pub const STATUS_ACCESS_VIOLATION: NTSTATUS = 0xC0000005_u32 as i32;
pub const STATUS_IN_PAGE_ERROR: NTSTATUS = 0xC0000006_u32 as i32;
pub const STATUS_INVALID_HANDLE: NTSTATUS = 0xC0000008_u32 as i32;
pub const STATUS_INVALID_PARAMETER: NTSTATUS = 0xC000000D_u32 as i32;
pub const STATUS_END_OF_FILE: NTSTATUS = 0xC0000011_u32 as i32;
pub const STATUS_NO_MEMORY: NTSTATUS = 0xC0000017_u32 as i32;
pub const STATUS_ILLEGAL_INSTRUCTION: NTSTATUS = 0xC000001D_u32 as i32;
pub const STATUS_NONCONTINUABLE_EXCEPTION: NTSTATUS = 0xC0000025_u32 as i32;
pub const STATUS_INVALID_DISPOSITION: NTSTATUS = 0xC0000026_u32 as i32;
pub const STATUS_ARRAY_BOUNDS_EXCEEDED: NTSTATUS = 0xC000008C_u32 as i32;
pub const STATUS_FLOAT_DENORMAL_OPERAND: NTSTATUS = 0xC000008D_u32 as i32;
pub const STATUS_FLOAT_DIVIDE_BY_ZERO: NTSTATUS = 0xC000008E_u32 as i32;
pub const STATUS_FLOAT_INEXACT_RESULT: NTSTATUS = 0xC000008F_u32 as i32;
pub const STATUS_FLOAT_INVALID_OPERATION: NTSTATUS = 0xC0000090_u32 as i32;
pub const STATUS_FLOAT_OVERFLOW: NTSTATUS = 0xC0000091_u32 as i32;
pub const STATUS_FLOAT_STACK_CHECK: NTSTATUS = 0xC0000092_u32 as i32;
pub const STATUS_FLOAT_UNDERFLOW: NTSTATUS = 0xC0000093_u32 as i32;
pub const STATUS_INTEGER_DIVIDE_BY_ZERO: NTSTATUS = 0xC0000094_u32 as i32;
pub const STATUS_INTEGER_OVERFLOW: NTSTATUS = 0xC0000095_u32 as i32;
pub const STATUS_PRIVILEGED_INSTRUCTION: NTSTATUS = 0xC0000096_u32 as i32;
pub const STATUS_INSUFFICIENT_RESOURCES: NTSTATUS = 0xC000009A_u32 as i32;
pub const STATUS_INVALID_USER_BUFFER: NTSTATUS = 0xC00000E8_u32 as i32;
pub const STATUS_STACK_OVERFLOW: NTSTATUS = 0xC00000FD_u32 as i32;