azathoth_core/os/windows/
consts.rs

1/// Section flag: Memory is executable.
2pub const IMAGE_SCN_MEM_EXECUTE: u32 = 0x20000000;
3
4/// Section flag: Memory is readable.
5pub const IMAGE_SCN_MEM_READ: u32 = 0x40000000;
6
7/// Section flag: Memory is writable.
8pub const IMAGE_SCN_MEM_WRITE: u32 = 0x80000000;
9
10/// DOS header magic value ('MZ').
11pub const IMAGE_DOS_SIGNATURE: u16 = 0x5A4D;
12
13/// PE header signature ('PE\0\0').
14pub const IMAGE_NT_SIGNATURE: u32 = 0x00004550;
15
16/// Data directory index: Export table.
17pub const IMAGE_DIRECTORY_ENTRY_EXPORT: u16 = 0;
18
19/// Data directory index: Import table.
20pub const IMAGE_DIRECTORY_ENTRY_IMPORT: u16 = 1;
21
22/// Data directory index: Exception table.
23pub const IMAGE_DIRECTORY_ENTRY_EXCEPTION: u16 = 3;
24
25/// Data directory index: Base relocations.
26pub const IMAGE_DIRECTORY_ENTRY_BASERELOC: u16 = 5;
27
28/// Data directory index: TLS (Thread Local Storage).
29pub const IMAGE_DIRECTORY_ENTRY_TLS: u16 = 9;
30
31/// Memory protection: Read-only.
32pub const PAGE_READONLY: u32 = 0x02;
33
34/// Memory protection: Read/write access.
35pub const PAGE_READWRITE: u32 = 0x04;
36
37/// Memory protection: Write-copy access.
38pub const PAGE_WRITECOPY: u32 = 0x08;
39
40/// Memory protection: Execute only.
41pub const PAGE_EXECUTE: u32 = 0x10;
42
43/// Memory protection: Execute + read access.
44pub const PAGE_EXECUTE_READ: u32 = 0x20;
45
46/// Memory protection: Execute + read/write access.
47pub const PAGE_EXECUTE_READWRITE: u32 = 0x40;
48
49/// Memory protection: Execute + write-copy access.
50pub const PAGE_EXECUTE_WRITECOPY: u32 = 0x80;
51
52/// Memory allocation flag: Commit memory pages.
53pub const MEM_COMMIT: u32 = 0x00001000;
54
55/// Memory allocation flag: Reserve memory pages.
56pub const MEM_RESERVE: u32 = 0x00002000;
57
58/// Relocation type: 64-bit address relocation.
59pub const IMAGE_REL_BASED_DIR64: u16 = 10;
60
61/// Relocation type: 32-bit high/low relocation.
62pub const IMAGE_REL_BASED_HIGHLOW: u16 = 3;
63
64/// Ordinal flag for 64-bit imports (high bit set).
65pub const IMAGE_ORDINAL_FLAG64: u64 = 0x8000000000000000;
66
67/// DLL entrypoint reason: Process attach.
68pub const DLL_PROCESS_ATTACH: u32 = 1;
69
70/// Internet open type: Use system preconfiguration.
71pub const INTERNET_OPEN_TYPE_PRECONFIG: u32 = 0;
72
73/// Internet option: Security flags
74pub const INTERNET_OPTION_SECURITY_FLAGS: u32 = 31;
75
76/// Internet flag: Open asynchronously.
77pub const INTERNET_FLAG_ASYNC: u32 = 0;
78
79/// Internet service type: HTTP.
80pub const INTERNET_SERVICE_HTTP: u32 = 3;
81
82/// Security flag: Ignore unknown Certificate Authority errors.
83pub const SECURITY_FLAG_IGNORE_UNKNOWN_CA: u32 = 0x00000100;
84
85/// Security flag: Ignore invalid certificate date.
86pub const SECURITY_FLAG_IGNORE_CERT_DATE_INVALID: u32 = 0x00002000;
87
88/// Security flag: Ignore certificate Common Name mismatch.
89pub const SECURITY_FLAG_IGNORE_CERT_CN_INVALID: u32 = 0x00001000;
90
91/// Security flag: Ignore wrong certificate usage.
92pub const SECURITY_FLAG_IGNORE_WRONG_USAGE: u32 = 0x00000200;
93
94/// Security flag: Ignore certificate revocation errors.
95pub const SECURITY_FLAG_IGNORE_REVOCATION: u32 = 0x00000080;
96
97/// HTTP query flag: Expect a numeric value.
98pub const HTTP_QUERY_FLAG_NUMBER: u32 = 0x20000000;
99
100/// HTTP query option: Status code of the response.
101pub const HTTP_QUERY_STATUS_CODE: u32 = 19;
102
103/// HTTP query option: Content length of the response.
104pub const HTTP_QUERY_CONTENT_LENGTH: u32 = 5;
105
106/// InternetCrackUrlA decode flag: Decode percent-encoded characters.
107pub const ICU_DECODE: u32 = 0x10000000;