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
26 #endif /* defined(__cplusplus) */
28 #define HKEY_CLASSES_ROOT ((HKEY) 0x80000000)
29 #define HKEY_CURRENT_USER ((HKEY) 0x80000001)
30 #define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
31 #define HKEY_USERS ((HKEY) 0x80000003)
32 #define HKEY_PERFORMANCE_DATA ((HKEY) 0x80000004)
33 #define HKEY_CURRENT_CONFIG ((HKEY) 0x80000005)
34 #define HKEY_DYN_DATA ((HKEY) 0x80000006)
37 * registry provider structs
39 typedef struct value_entA
42 DWORD_PTR ve_valueptr
;
46 typedef struct value_entW
{
49 DWORD_PTR ve_valueptr
;
53 typedef ACCESS_MASK REGSAM
;
55 BOOL WINAPI
AbortSystemShutdownA(LPSTR
);
56 BOOL WINAPI
AbortSystemShutdownW(LPWSTR
);
57 #define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown)
58 BOOL WINAPI
InitiateSystemShutdownA(LPSTR
,LPSTR
,DWORD
,BOOL
,BOOL
);
59 BOOL WINAPI
InitiateSystemShutdownW(LPWSTR
,LPWSTR
,DWORD
,BOOL
,BOOL
);
60 #define InitiateSystemShutdown WINELIB_NAME_AW(InitiateSystemShutdown);
61 BOOL WINAPI
InitiateSystemShutdownExA(LPSTR
,LPSTR
,DWORD
,BOOL
,BOOL
,DWORD
);
62 BOOL WINAPI
InitiateSystemShutdownExW(LPWSTR
,LPWSTR
,DWORD
,BOOL
,BOOL
,DWORD
);
63 #define InitiateSystemShutdownEx WINELIB_NAME_AW(InitiateSystemShutdownEx);
64 DWORD WINAPI
RegCreateKeyExA(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
,REGSAM
,
65 LPSECURITY_ATTRIBUTES
,PHKEY
,LPDWORD
);
66 DWORD WINAPI
RegCreateKeyExW(HKEY
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
,REGSAM
,
67 LPSECURITY_ATTRIBUTES
,PHKEY
,LPDWORD
);
68 #define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
69 LONG WINAPI
RegSaveKeyA(HKEY
,LPCSTR
,LPSECURITY_ATTRIBUTES
);
70 LONG WINAPI
RegSaveKeyW(HKEY
,LPCWSTR
,LPSECURITY_ATTRIBUTES
);
71 #define RegSaveKey WINELIB_NAME_AW(RegSaveKey)
72 LONG WINAPI
RegSetKeySecurity(HKEY
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
73 LONG WINAPI
RegConnectRegistryA(LPCSTR
,HKEY
,PHKEY
);
74 LONG WINAPI
RegConnectRegistryW(LPCWSTR
,HKEY
,PHKEY
);
75 #define RegConnectRegistry WINELIB_NAME_AW(RegConnectRegistry)
76 DWORD WINAPI
RegEnumKeyExA(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPSTR
,
78 DWORD WINAPI
RegEnumKeyExW(HKEY
,DWORD
,LPWSTR
,LPDWORD
,LPDWORD
,LPWSTR
,
80 #define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
81 LONG WINAPI
RegGetKeySecurity(HKEY
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,LPDWORD
);
82 LONG WINAPI
RegLoadKeyA(HKEY
,LPCSTR
,LPCSTR
);
83 LONG WINAPI
RegLoadKeyW(HKEY
,LPCWSTR
,LPCWSTR
);
84 #define RegLoadKey WINELIB_NAME_AW(RegLoadKey)
85 LONG WINAPI
RegNotifyChangeKeyValue(HKEY
,BOOL
,DWORD
,HANDLE
,BOOL
);
86 DWORD WINAPI
RegOpenCurrentUser(REGSAM
,PHKEY
);
87 DWORD WINAPI
RegOpenKeyExW(HKEY
,LPCWSTR
,DWORD
,REGSAM
,PHKEY
);
88 DWORD WINAPI
RegOpenKeyExA(HKEY
,LPCSTR
,DWORD
,REGSAM
,PHKEY
);
89 #define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
90 DWORD WINAPI
RegQueryInfoKeyW(HKEY
,LPWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,
91 LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,
93 DWORD WINAPI
RegQueryInfoKeyA(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,
94 LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,
96 #define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
97 DWORD WINAPI
RegQueryMultipleValuesA(HKEY
,PVALENTA
,DWORD
,LPSTR
,LPDWORD
);
98 DWORD WINAPI
RegQueryMultipleValuesW(HKEY
,PVALENTW
,DWORD
,LPWSTR
,LPDWORD
);
99 #define RegQueryMultipleValues WINELIB_NAME_AW(RegQueryMultipleValues)
100 LONG WINAPI
RegReplaceKeyA(HKEY
,LPCSTR
,LPCSTR
,LPCSTR
);
101 LONG WINAPI
RegReplaceKeyW(HKEY
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
102 #define RegReplaceKey WINELIB_NAME_AW(RegReplaceKey)
103 LONG WINAPI
RegRestoreKeyA(HKEY
,LPCSTR
,DWORD
);
104 LONG WINAPI
RegRestoreKeyW(HKEY
,LPCWSTR
,DWORD
);
105 #define RegRestoreKey WINELIB_NAME_AW(RegRestoreKey)
106 LONG WINAPI
RegUnLoadKeyA(HKEY
,LPCSTR
);
107 LONG WINAPI
RegUnLoadKeyW(HKEY
,LPCWSTR
);
108 #define RegUnLoadKey WINELIB_NAME_AW(RegUnLoadKey)
110 /* Declarations for functions that are the same in Win16 and Win32 */
112 DWORD WINAPI
RegCloseKey(HKEY
);
113 DWORD WINAPI
RegFlushKey(HKEY
);
115 DWORD WINAPI
RegCreateKeyA(HKEY
,LPCSTR
,PHKEY
);
116 DWORD WINAPI
RegCreateKeyW(HKEY
,LPCWSTR
,PHKEY
);
117 #define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
118 DWORD WINAPI
RegDeleteKeyA(HKEY
,LPCSTR
);
119 DWORD WINAPI
RegDeleteKeyW(HKEY
,LPCWSTR
);
120 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
121 DWORD WINAPI
RegDeleteValueA(HKEY
,LPCSTR
);
122 DWORD WINAPI
RegDeleteValueW(HKEY
,LPCWSTR
);
123 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
124 DWORD WINAPI
RegEnumKeyA(HKEY
,DWORD
,LPSTR
,DWORD
);
125 DWORD WINAPI
RegEnumKeyW(HKEY
,DWORD
,LPWSTR
,DWORD
);
126 #define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
127 DWORD WINAPI
RegEnumValueA(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
128 DWORD WINAPI
RegEnumValueW(HKEY
,DWORD
,LPWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
129 #define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
130 DWORD WINAPI
RegOpenKeyA(HKEY
,LPCSTR
,PHKEY
);
131 DWORD WINAPI
RegOpenKeyW(HKEY
,LPCWSTR
,PHKEY
);
132 #define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
133 DWORD WINAPI
RegQueryValueA(HKEY
,LPCSTR
,LPSTR
,LPLONG
);
134 DWORD WINAPI
RegQueryValueW(HKEY
,LPCWSTR
,LPWSTR
,LPLONG
);
135 #define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
136 DWORD WINAPI
RegQueryValueExA(HKEY
,LPCSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
137 DWORD WINAPI
RegQueryValueExW(HKEY
,LPCWSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
138 #define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
139 DWORD WINAPI
RegSetValueA(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
140 DWORD WINAPI
RegSetValueW(HKEY
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
);
141 #define RegSetValue WINELIB_NAME_AW(RegSetValue)
142 DWORD WINAPI
RegSetValueExA(HKEY
,LPCSTR
,DWORD
,DWORD
,CONST BYTE
*,DWORD
);
143 DWORD WINAPI
RegSetValueExW(HKEY
,LPCWSTR
,DWORD
,DWORD
,CONST BYTE
*,DWORD
);
144 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
148 #endif /* defined(__cplusplus) */
150 #endif /* __WINE_WINREG_H */