Release 20030408.
[wine/gsoc-2012-control.git] / include / winreg.h
blob269e593ceb5a8149d4275ab656cfa84bdd035a47
1 /*
2 * Win32 registry defines (see also winnt.h)
4 * Copyright (C) the Wine project
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_WINREG_H
22 #define __WINE_WINREG_H
24 #include "winbase.h"
25 #include "winnt.h"
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* defined(__cplusplus) */
31 #define HKEY_CLASSES_ROOT ((HKEY) 0x80000000)
32 #define HKEY_CURRENT_USER ((HKEY) 0x80000001)
33 #define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
34 #define HKEY_USERS ((HKEY) 0x80000003)
35 #define HKEY_PERFORMANCE_DATA ((HKEY) 0x80000004)
36 #define HKEY_CURRENT_CONFIG ((HKEY) 0x80000005)
37 #define HKEY_DYN_DATA ((HKEY) 0x80000006)
40 * registry provider structs
42 typedef struct value_entA
43 { LPSTR ve_valuename;
44 DWORD ve_valuelen;
45 DWORD_PTR ve_valueptr;
46 DWORD ve_type;
47 } VALENTA, *PVALENTA;
49 typedef struct value_entW {
50 LPWSTR ve_valuename;
51 DWORD ve_valuelen;
52 DWORD_PTR ve_valueptr;
53 DWORD ve_type;
54 } VALENTW, *PVALENTW;
56 typedef ACCESS_MASK REGSAM;
58 BOOL WINAPI AbortSystemShutdownA(LPSTR);
59 BOOL WINAPI AbortSystemShutdownW(LPWSTR);
60 #define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown)
61 BOOL WINAPI InitiateSystemShutdownA(LPSTR,LPSTR,DWORD,BOOL,BOOL);
62 BOOL WINAPI InitiateSystemShutdownW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL);
63 #define InitiateSystemShutdown WINELIB_NAME_AW(InitiateSystemShutdown);
64 BOOL WINAPI InitiateSystemShutdownExA(LPSTR,LPSTR,DWORD,BOOL,BOOL,DWORD);
65 BOOL WINAPI InitiateSystemShutdownExW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL,DWORD);
66 #define InitiateSystemShutdownEx WINELIB_NAME_AW(InitiateSystemShutdownEx);
67 DWORD WINAPI RegCreateKeyExA(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,
68 LPSECURITY_ATTRIBUTES,PHKEY,LPDWORD);
69 DWORD WINAPI RegCreateKeyExW(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,
70 LPSECURITY_ATTRIBUTES,PHKEY,LPDWORD);
71 #define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
72 LONG WINAPI RegSaveKeyA(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES);
73 LONG WINAPI RegSaveKeyW(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES);
74 #define RegSaveKey WINELIB_NAME_AW(RegSaveKey)
75 LONG WINAPI RegSetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
76 LONG WINAPI RegConnectRegistryA(LPCSTR,HKEY,PHKEY);
77 LONG WINAPI RegConnectRegistryW(LPCWSTR,HKEY,PHKEY);
78 #define RegConnectRegistry WINELIB_NAME_AW(RegConnectRegistry)
79 DWORD WINAPI RegEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPSTR,
80 LPDWORD,LPFILETIME);
81 DWORD WINAPI RegEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPWSTR,
82 LPDWORD,LPFILETIME);
83 #define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
84 LONG WINAPI RegGetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,LPDWORD);
85 LONG WINAPI RegLoadKeyA(HKEY,LPCSTR,LPCSTR);
86 LONG WINAPI RegLoadKeyW(HKEY,LPCWSTR,LPCWSTR);
87 #define RegLoadKey WINELIB_NAME_AW(RegLoadKey)
88 LONG WINAPI RegNotifyChangeKeyValue(HKEY,BOOL,DWORD,HANDLE,BOOL);
89 DWORD WINAPI RegOpenKeyExW(HKEY,LPCWSTR,DWORD,REGSAM,PHKEY);
90 DWORD WINAPI RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,PHKEY);
91 #define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
92 DWORD WINAPI RegQueryInfoKeyW(HKEY,LPWSTR,LPDWORD,LPDWORD,LPDWORD,
93 LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
94 LPDWORD,LPFILETIME);
95 DWORD WINAPI RegQueryInfoKeyA(HKEY,LPSTR,LPDWORD,LPDWORD,LPDWORD,
96 LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
97 LPDWORD,LPFILETIME);
98 #define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
99 DWORD WINAPI RegQueryMultipleValuesA(HKEY,PVALENTA,DWORD,LPSTR,LPDWORD);
100 DWORD WINAPI RegQueryMultipleValuesW(HKEY,PVALENTW,DWORD,LPWSTR,LPDWORD);
101 #define RegQueryMultipleValues WINELIB_NAME_AW(RegQueryMultipleValues)
102 LONG WINAPI RegReplaceKeyA(HKEY,LPCSTR,LPCSTR,LPCSTR);
103 LONG WINAPI RegReplaceKeyW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR);
104 #define RegReplaceKey WINELIB_NAME_AW(RegReplaceKey)
105 LONG WINAPI RegRestoreKeyA(HKEY,LPCSTR,DWORD);
106 LONG WINAPI RegRestoreKeyW(HKEY,LPCWSTR,DWORD);
107 #define RegRestoreKey WINELIB_NAME_AW(RegRestoreKey)
108 LONG WINAPI RegUnLoadKeyA(HKEY,LPCSTR);
109 LONG WINAPI RegUnLoadKeyW(HKEY,LPCWSTR);
110 #define RegUnLoadKey WINELIB_NAME_AW(RegUnLoadKey)
112 /* Declarations for functions that are the same in Win16 and Win32 */
114 DWORD WINAPI RegCloseKey(HKEY);
115 DWORD WINAPI RegFlushKey(HKEY);
117 DWORD WINAPI RegCreateKeyA(HKEY,LPCSTR,PHKEY);
118 DWORD WINAPI RegCreateKeyW(HKEY,LPCWSTR,PHKEY);
119 #define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
120 DWORD WINAPI RegDeleteKeyA(HKEY,LPCSTR);
121 DWORD WINAPI RegDeleteKeyW(HKEY,LPCWSTR);
122 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
123 DWORD WINAPI RegDeleteValueA(HKEY,LPCSTR);
124 DWORD WINAPI RegDeleteValueW(HKEY,LPCWSTR);
125 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
126 DWORD WINAPI RegEnumKeyA(HKEY,DWORD,LPSTR,DWORD);
127 DWORD WINAPI RegEnumKeyW(HKEY,DWORD,LPWSTR,DWORD);
128 #define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
129 DWORD WINAPI RegEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
130 DWORD WINAPI RegEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
131 #define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
132 DWORD WINAPI RegOpenKeyA(HKEY,LPCSTR,PHKEY);
133 DWORD WINAPI RegOpenKeyW(HKEY,LPCWSTR,PHKEY);
134 #define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
135 DWORD WINAPI RegQueryValueA(HKEY,LPCSTR,LPSTR,LPLONG);
136 DWORD WINAPI RegQueryValueW(HKEY,LPCWSTR,LPWSTR,LPLONG);
137 #define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
138 DWORD WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
139 DWORD WINAPI RegQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
140 #define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
141 DWORD WINAPI RegSetValueA(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
142 DWORD WINAPI RegSetValueW(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
143 #define RegSetValue WINELIB_NAME_AW(RegSetValue)
144 DWORD WINAPI RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD,CONST BYTE*,DWORD);
145 DWORD WINAPI RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD,CONST BYTE*,DWORD);
146 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
148 #ifdef __cplusplus
149 } /* extern "C" */
150 #endif /* defined(__cplusplus) */
152 #endif /* __WINE_WINREG_H */