| ... | @@ -33,3 +33,33 @@ pub extern "advapi32" fn RegCloseKey(hKey: HKEY) callconv(WINAPI) LSTATUS; | ... | @@ -33,3 +33,33 @@ pub extern "advapi32" fn RegCloseKey(hKey: HKEY) callconv(WINAPI) LSTATUS; |
| 33 | // http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx */ | 33 | // http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx */ |
| 34 | pub extern "advapi32" fn SystemFunction036(output: [*]u8, length: ULONG) callconv(WINAPI) BOOL; | 34 | pub extern "advapi32" fn SystemFunction036(output: [*]u8, length: ULONG) callconv(WINAPI) BOOL; |
| 35 | pub const RtlGenRandom = SystemFunction036; | 35 | pub const RtlGenRandom = SystemFunction036; |
| | 36 | |
| | 37 | pub const RRF = struct { |
| | 38 | pub const RT_ANY: DWORD = 0x0000ffff; |
| | 39 | |
| | 40 | pub const RT_DWORD: DWORD = 0x00000018; |
| | 41 | pub const RT_QWORD: DWORD = 0x00000048; |
| | 42 | |
| | 43 | pub const RT_REG_BINARY: DWORD = 0x00000008; |
| | 44 | pub const RT_REG_DWORD: DWORD = 0x00000010; |
| | 45 | pub const RT_REG_EXPAND_SZ: DWORD = 0x00000004; |
| | 46 | pub const RT_REG_MULTI_SZ: DWORD = 0x00000020; |
| | 47 | pub const RT_REG_NONE: DWORD = 0x00000001; |
| | 48 | pub const RT_REG_QWORD: DWORD = 0x00000040; |
| | 49 | pub const RT_REG_SZ: DWORD = 0x00000002; |
| | 50 | |
| | 51 | pub const NOEXPAND: DWORD = 0x10000000; |
| | 52 | pub const ZEROONFAILURE: DWORD = 0x20000000; |
| | 53 | pub const SUBKEY_WOW6464KEY: DWORD = 0x00010000; |
| | 54 | pub const SUBKEY_WOW6432KEY: DWORD = 0x00020000; |
| | 55 | }; |
| | 56 | |
| | 57 | pub extern "advapi32" fn RegGetValueW( |
| | 58 | hkey: HKEY, |
| | 59 | lpSubKey: LPCWSTR, |
| | 60 | lpValue: LPCWSTR, |
| | 61 | dwFlags: DWORD, |
| | 62 | pdwType: ?*DWORD, |
| | 63 | pvData: ?*anyopaque, |
| | 64 | pcbData: ?*DWORD, |
| | 65 | ) callconv(WINAPI) LSTATUS; |