summaryrefslogtreecommitdiffstats
path: root/third_party/rust/winapi-0.2.8/src/winreg.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--third_party/rust/winapi-0.2.8/src/winreg.rs41
1 files changed, 41 insertions, 0 deletions
diff --git a/third_party/rust/winapi-0.2.8/src/winreg.rs b/third_party/rust/winapi-0.2.8/src/winreg.rs
new file mode 100644
index 0000000000..91ef168ca9
--- /dev/null
+++ b/third_party/rust/winapi-0.2.8/src/winreg.rs
@@ -0,0 +1,41 @@
+// Copyright © 2016, Peter Atashian
+// Licensed under the MIT License <LICENSE.md>
+use super::*;
+pub type REGSAM = ACCESS_MASK;
+STRUCT!{struct VALENTA {
+ ve_valuename: LPSTR,
+ ve_valuelen: DWORD,
+ ve_valueptr: DWORD_PTR,
+ ve_type: DWORD,
+}}
+pub type PVALENTA = *mut VALENTA;
+STRUCT!{struct VALENTW {
+ ve_valuename: LPWSTR,
+ ve_valuelen: DWORD,
+ ve_valueptr: DWORD_PTR,
+ ve_type: DWORD,
+}}
+pub type PVALENTW = *mut VALENTW;
+pub const HKEY_CLASSES_ROOT: HKEY = 0x80000000 as HKEY;
+pub const HKEY_CURRENT_USER: HKEY = 0x80000001 as HKEY;
+pub const HKEY_LOCAL_MACHINE: HKEY = 0x80000002 as HKEY;
+pub const HKEY_USERS: HKEY = 0x80000003 as HKEY;
+pub const HKEY_PERFORMANCE_DATA: HKEY = 0x80000004 as HKEY;
+pub const HKEY_PERFORMANCE_TEXT: HKEY = 0x80000050 as HKEY;
+pub const HKEY_PERFORMANCE_NLSTEXT: HKEY = 0x80000060 as HKEY;
+pub const HKEY_CURRENT_CONFIG: HKEY = 0x80000005 as HKEY;
+pub const HKEY_DYN_DATA: HKEY = 0x80000006 as HKEY;
+pub const HKEY_CURRENT_USER_LOCAL_SETTINGS: HKEY = 0x80000007 as HKEY;
+pub const REG_MUI_STRING_TRUNCATE: DWORD = 0x00000001;
+pub const RRF_RT_REG_NONE: DWORD = 0x00000001;
+pub const RRF_RT_REG_SZ: DWORD = 0x00000002;
+pub const RRF_RT_REG_EXPAND_SZ: DWORD = 0x00000004;
+pub const RRF_RT_REG_BINARY: DWORD = 0x00000008;
+pub const RRF_RT_REG_DWORD: DWORD = 0x00000010;
+pub const RRF_RT_REG_MULTI_SZ: DWORD = 0x00000020;
+pub const RRF_RT_REG_QWORD: DWORD = 0x00000040;
+pub const RRF_RT_DWORD: DWORD = RRF_RT_REG_BINARY|RRF_RT_REG_DWORD;
+pub const RRF_RT_QWORD: DWORD = RRF_RT_REG_BINARY|RRF_RT_REG_QWORD;
+pub const RRF_RT_ANY: DWORD = 0x0000ffff;
+pub const RRF_NOEXPAND: DWORD = 0x10000000;
+pub const RRF_ZEROONFAILURE: DWORD = 0x20000000;