VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/winreg.h

Last change on this file was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.4 KB
Line 
1/*
2 * Win32 registry defines (see also winnt.h)
3 *
4 * Copyright (C) the Wine project
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/*
22 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef __WINE_WINREG_H
31#define __WINE_WINREG_H
32
33#ifdef __cplusplus
34extern "C" {
35#endif /* defined(__cplusplus) */
36
37#define HKEY_CLASSES_ROOT ((HKEY)(LONG_PTR)(LONG)0x80000000)
38#define HKEY_CURRENT_USER ((HKEY)(LONG_PTR)(LONG)0x80000001)
39#define HKEY_LOCAL_MACHINE ((HKEY)(LONG_PTR)(LONG)0x80000002)
40#define HKEY_USERS ((HKEY)(LONG_PTR)(LONG)0x80000003)
41#define HKEY_PERFORMANCE_DATA ((HKEY)(LONG_PTR)(LONG)0x80000004)
42#define HKEY_CURRENT_CONFIG ((HKEY)(LONG_PTR)(LONG)0x80000005)
43#define HKEY_DYN_DATA ((HKEY)(LONG_PTR)(LONG)0x80000006)
44
45/*
46 * registry provider structs
47 */
48typedef struct value_entA
49{ LPSTR ve_valuename;
50 DWORD ve_valuelen;
51 DWORD_PTR ve_valueptr;
52 DWORD ve_type;
53} VALENTA, *PVALENTA;
54
55typedef struct value_entW {
56 LPWSTR ve_valuename;
57 DWORD ve_valuelen;
58 DWORD_PTR ve_valueptr;
59 DWORD ve_type;
60} VALENTW, *PVALENTW;
61
62typedef ACCESS_MASK REGSAM;
63typedef LONG LSTATUS;
64
65/*
66 * InitiateSystemShutdown() reasons
67 */
68#include <reason.h>
69
70#define REASON_OTHER (SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER)
71#define REASON_UNKNOWN SHTDN_REASON_UNKNOWN
72#define REASON_LEGACY_API SHTDN_REASON_LEGACY_API
73#define REASON_PLANNED_FLAG SHTDN_REASON_FLAG_PLANNED
74
75#define MAX_SHUTDOWN_TIMEOUT (10*365*24*60*60)
76
77/*
78 * RegGetValue() restrictions
79 */
80
81#define RRF_RT_REG_NONE (1 << 0)
82#define RRF_RT_REG_SZ (1 << 1)
83#define RRF_RT_REG_EXPAND_SZ (1 << 2)
84#define RRF_RT_REG_BINARY (1 << 3)
85#define RRF_RT_REG_DWORD (1 << 4)
86#define RRF_RT_REG_MULTI_SZ (1 << 5)
87#define RRF_RT_REG_QWORD (1 << 6)
88#define RRF_RT_DWORD (RRF_RT_REG_BINARY | RRF_RT_REG_DWORD)
89#define RRF_RT_QWORD (RRF_RT_REG_BINARY | RRF_RT_REG_QWORD)
90#define RRF_RT_ANY 0xffff
91#define RRF_NOEXPAND (1 << 28)
92#define RRF_ZEROONFAILURE (1 << 29)
93
94WINADVAPI BOOL WINAPI AbortSystemShutdownA(LPSTR);
95WINADVAPI BOOL WINAPI AbortSystemShutdownW(LPWSTR);
96#define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown)
97WINADVAPI BOOL WINAPI InitiateSystemShutdownA(LPSTR,LPSTR,DWORD,BOOL,BOOL);
98WINADVAPI BOOL WINAPI InitiateSystemShutdownW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL);
99#define InitiateSystemShutdown WINELIB_NAME_AW(InitiateSystemShutdown);
100WINADVAPI BOOL WINAPI InitiateSystemShutdownExA(LPSTR,LPSTR,DWORD,BOOL,BOOL,DWORD);
101WINADVAPI BOOL WINAPI InitiateSystemShutdownExW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL,DWORD);
102#define InitiateSystemShutdownEx WINELIB_NAME_AW(InitiateSystemShutdownEx);
103WINADVAPI LSTATUS WINAPI RegCloseKey(HKEY);
104WINADVAPI LSTATUS WINAPI RegConnectRegistryA(LPCSTR,HKEY,PHKEY);
105WINADVAPI LSTATUS WINAPI RegConnectRegistryW(LPCWSTR,HKEY,PHKEY);
106#define RegConnectRegistry WINELIB_NAME_AW(RegConnectRegistry)
107WINADVAPI LSTATUS WINAPI RegCreateKeyA(HKEY,LPCSTR,PHKEY);
108WINADVAPI LSTATUS WINAPI RegCreateKeyW(HKEY,LPCWSTR,PHKEY);
109#define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
110WINADVAPI LSTATUS WINAPI RegCreateKeyExA(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,LPSECURITY_ATTRIBUTES,PHKEY,LPDWORD);
111WINADVAPI LSTATUS WINAPI RegCreateKeyExW(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,LPSECURITY_ATTRIBUTES,PHKEY,LPDWORD);
112#define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
113WINADVAPI LSTATUS WINAPI RegDeleteKeyA(HKEY,LPCSTR);
114WINADVAPI LSTATUS WINAPI RegDeleteKeyW(HKEY,LPCWSTR);
115#define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
116WINADVAPI LSTATUS WINAPI RegDeleteKeyExA(HKEY,LPCSTR,REGSAM,DWORD);
117WINADVAPI LSTATUS WINAPI RegDeleteKeyExW(HKEY,LPCWSTR,REGSAM,DWORD);
118#define RegDeleteKeyEx WINELIB_NAME_AW(RegDeleteKeyEx)
119WINADVAPI LSTATUS WINAPI RegDeleteKeyValueA(HKEY,LPCSTR,LPCSTR);
120WINADVAPI LSTATUS WINAPI RegDeleteKeyValueW(HKEY,LPCWSTR,LPCWSTR);
121#define RegDeleteKeyValue WINELIB_NAME_AW(RegDeleteKeyValue)
122WINADVAPI LSTATUS WINAPI RegDeleteTreeA(HKEY,LPCSTR);
123WINADVAPI LSTATUS WINAPI RegDeleteTreeW(HKEY,LPCWSTR);
124#define RegDeleteTree WINELIB_NAME_AW(RegDeleteTree)
125WINADVAPI LSTATUS WINAPI RegDeleteValueA(HKEY,LPCSTR);
126WINADVAPI LSTATUS WINAPI RegDeleteValueW(HKEY,LPCWSTR);
127#define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
128WINADVAPI LSTATUS WINAPI RegDisablePredefinedCache(void);
129WINADVAPI LSTATUS WINAPI RegEnumKeyA(HKEY,DWORD,LPSTR,DWORD);
130WINADVAPI LSTATUS WINAPI RegEnumKeyW(HKEY,DWORD,LPWSTR,DWORD);
131#define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
132WINADVAPI LSTATUS WINAPI RegEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPSTR,LPDWORD,LPFILETIME);
133WINADVAPI LSTATUS WINAPI RegEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPWSTR,LPDWORD,LPFILETIME);
134#define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
135WINADVAPI LSTATUS WINAPI RegEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
136WINADVAPI LSTATUS WINAPI RegEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
137#define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
138WINADVAPI LSTATUS WINAPI RegFlushKey(HKEY);
139WINADVAPI LSTATUS WINAPI RegGetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,LPDWORD);
140WINADVAPI LSTATUS WINAPI RegGetValueA(HKEY,LPCSTR,LPCSTR,DWORD,LPDWORD,PVOID,LPDWORD);
141WINADVAPI LSTATUS WINAPI RegGetValueW(HKEY,LPCWSTR,LPCWSTR,DWORD,LPDWORD,PVOID,LPDWORD);
142#define RegGetValue WINELIB_NAME_AW(RegGetValue)
143WINADVAPI LSTATUS WINAPI RegLoadKeyA(HKEY,LPCSTR,LPCSTR);
144WINADVAPI LSTATUS WINAPI RegLoadKeyW(HKEY,LPCWSTR,LPCWSTR);
145#define RegLoadKey WINELIB_NAME_AW(RegLoadKey)
146WINADVAPI LSTATUS WINAPI RegLoadMUIStringA(HKEY,LPCSTR,LPSTR,DWORD,LPDWORD,DWORD,LPCSTR);
147WINADVAPI LSTATUS WINAPI RegLoadMUIStringW(HKEY,LPCWSTR,LPWSTR,DWORD,LPDWORD,DWORD,LPCWSTR);
148#define RegLoadMUIString WINELIB_NAME_AW(RegLoadMUIString)
149WINADVAPI LSTATUS WINAPI RegNotifyChangeKeyValue(HKEY,BOOL,DWORD,HANDLE,BOOL);
150WINADVAPI LSTATUS WINAPI RegOpenCurrentUser(REGSAM,PHKEY);
151WINADVAPI LSTATUS WINAPI RegOpenKeyA(HKEY,LPCSTR,PHKEY);
152WINADVAPI LSTATUS WINAPI RegOpenKeyW(HKEY,LPCWSTR,PHKEY);
153#define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
154WINADVAPI LSTATUS WINAPI RegOpenKeyExW(HKEY,LPCWSTR,DWORD,REGSAM,PHKEY);
155WINADVAPI LSTATUS WINAPI RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,PHKEY);
156#define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
157WINADVAPI LSTATUS WINAPI RegOpenUserClassesRoot(HANDLE,DWORD,REGSAM,PHKEY);
158WINADVAPI LSTATUS WINAPI RegOverridePredefKey(HKEY,HKEY);
159WINADVAPI LSTATUS WINAPI RegQueryInfoKeyW(HKEY,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPFILETIME);
160WINADVAPI LSTATUS WINAPI RegQueryInfoKeyA(HKEY,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPFILETIME);
161#define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
162WINADVAPI LSTATUS WINAPI RegQueryMultipleValuesA(HKEY,PVALENTA,DWORD,LPSTR,LPDWORD);
163WINADVAPI LSTATUS WINAPI RegQueryMultipleValuesW(HKEY,PVALENTW,DWORD,LPWSTR,LPDWORD);
164#define RegQueryMultipleValues WINELIB_NAME_AW(RegQueryMultipleValues)
165WINADVAPI LSTATUS WINAPI RegQueryValueA(HKEY,LPCSTR,LPSTR,LPLONG);
166WINADVAPI LSTATUS WINAPI RegQueryValueW(HKEY,LPCWSTR,LPWSTR,LPLONG);
167#define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
168WINADVAPI LSTATUS WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
169WINADVAPI LSTATUS WINAPI RegQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
170#define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
171WINADVAPI LSTATUS WINAPI RegReplaceKeyA(HKEY,LPCSTR,LPCSTR,LPCSTR);
172WINADVAPI LSTATUS WINAPI RegReplaceKeyW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR);
173#define RegReplaceKey WINELIB_NAME_AW(RegReplaceKey)
174WINADVAPI LSTATUS WINAPI RegRestoreKeyA(HKEY,LPCSTR,DWORD);
175WINADVAPI LSTATUS WINAPI RegRestoreKeyW(HKEY,LPCWSTR,DWORD);
176#define RegRestoreKey WINELIB_NAME_AW(RegRestoreKey)
177WINADVAPI LSTATUS WINAPI RegSaveKeyA(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES);
178WINADVAPI LSTATUS WINAPI RegSaveKeyW(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES);
179#define RegSaveKey WINELIB_NAME_AW(RegSaveKey)
180WINADVAPI LSTATUS WINAPI RegSetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
181WINADVAPI LSTATUS WINAPI RegSetValueA(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
182WINADVAPI LSTATUS WINAPI RegSetValueW(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
183#define RegSetValue WINELIB_NAME_AW(RegSetValue)
184WINADVAPI LSTATUS WINAPI RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD,const BYTE*,DWORD);
185WINADVAPI LSTATUS WINAPI RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD,const BYTE*,DWORD);
186#define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
187WINADVAPI LSTATUS WINAPI RegUnLoadKeyA(HKEY,LPCSTR);
188WINADVAPI LSTATUS WINAPI RegUnLoadKeyW(HKEY,LPCWSTR);
189#define RegUnLoadKey WINELIB_NAME_AW(RegUnLoadKey)
190
191#ifdef __cplusplus
192} /* extern "C" */
193#endif /* defined(__cplusplus) */
194
195#endif /* __WINE_WINREG_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette