1996-03-31 18:40:13 +02:00
|
|
|
/*
|
2000-03-26 16:41:10 +02:00
|
|
|
* Win32 registry defines (see also winnt.h)
|
1996-03-31 18:40:13 +02:00
|
|
|
*/
|
|
|
|
#ifndef __WINE_WINREG_H
|
|
|
|
#define __WINE_WINREG_H
|
|
|
|
|
1999-02-09 16:46:25 +01:00
|
|
|
#include "winbase.h"
|
1999-02-19 17:29:05 +01:00
|
|
|
#include "winnt.h"
|
1996-03-31 18:40:13 +02:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-04-25 13:05:30 +02:00
|
|
|
#define HKEY_CLASSES_ROOT ((HKEY) 0x80000000)
|
|
|
|
#define HKEY_CURRENT_USER ((HKEY) 0x80000001)
|
|
|
|
#define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
|
|
|
|
#define HKEY_USERS ((HKEY) 0x80000003)
|
|
|
|
#define HKEY_PERFORMANCE_DATA ((HKEY) 0x80000004)
|
|
|
|
#define HKEY_CURRENT_CONFIG ((HKEY) 0x80000005)
|
|
|
|
#define HKEY_DYN_DATA ((HKEY) 0x80000006)
|
1996-03-31 18:40:13 +02:00
|
|
|
|
1999-02-12 14:44:38 +01:00
|
|
|
/*
|
|
|
|
* registry provider structs
|
|
|
|
*/
|
|
|
|
typedef struct value_entA
|
|
|
|
{ LPSTR ve_valuename;
|
|
|
|
DWORD ve_valuelen;
|
|
|
|
DWORD_PTR ve_valueptr;
|
|
|
|
DWORD ve_type;
|
|
|
|
} VALENTA, *PVALENTA;
|
|
|
|
|
|
|
|
typedef struct value_entW {
|
|
|
|
LPWSTR ve_valuename;
|
|
|
|
DWORD ve_valuelen;
|
|
|
|
DWORD_PTR ve_valueptr;
|
|
|
|
DWORD ve_type;
|
|
|
|
} VALENTW, *PVALENTW;
|
|
|
|
|
1999-07-04 13:01:21 +02:00
|
|
|
typedef ACCESS_MASK REGSAM;
|
1999-02-12 14:44:38 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegCreateKeyExA(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,
|
1999-02-09 16:46:25 +01:00
|
|
|
LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegCreateKeyExW(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,
|
1999-02-09 16:46:25 +01:00
|
|
|
LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
|
|
|
|
#define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegSaveKeyA(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES);
|
|
|
|
LONG WINAPI RegSaveKeyW(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegSaveKey WINELIB_NAME_AW(RegSaveKey)
|
1999-02-12 14:44:38 +01:00
|
|
|
LONG WINAPI RegSetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegConnectRegistryA(LPCSTR,HKEY,LPHKEY);
|
|
|
|
LONG WINAPI RegConnectRegistryW(LPCWSTR,HKEY,LPHKEY);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegConnectRegistry WINELIB_NAME_AW(RegConnectRegistry)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPSTR,
|
1999-02-09 16:46:25 +01:00
|
|
|
LPDWORD,LPFILETIME);
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPWSTR,
|
1999-02-09 16:46:25 +01:00
|
|
|
LPDWORD,LPFILETIME);
|
|
|
|
#define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
|
1999-02-12 14:44:38 +01:00
|
|
|
LONG WINAPI RegGetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,LPDWORD);
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegLoadKeyA(HKEY,LPCSTR,LPCSTR);
|
|
|
|
LONG WINAPI RegLoadKeyW(HKEY,LPCWSTR,LPCWSTR);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegLoadKey WINELIB_NAME_AW(RegLoadKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegNotifyChangeKeyValue(HKEY,BOOL,DWORD,HANDLE,BOOL);
|
|
|
|
DWORD WINAPI RegOpenKeyExW(HKEY,LPCWSTR,DWORD,REGSAM,LPHKEY);
|
|
|
|
DWORD WINAPI RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,LPHKEY);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegQueryInfoKeyW(HKEY,LPWSTR,LPDWORD,LPDWORD,LPDWORD,
|
1999-02-09 16:46:25 +01:00
|
|
|
LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
|
|
|
|
LPDWORD,LPFILETIME);
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegQueryInfoKeyA(HKEY,LPSTR,LPDWORD,LPDWORD,LPDWORD,
|
1999-02-09 16:46:25 +01:00
|
|
|
LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
|
|
|
|
LPDWORD,LPFILETIME);
|
|
|
|
#define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegReplaceKeyA(HKEY,LPCSTR,LPCSTR,LPCSTR);
|
|
|
|
LONG WINAPI RegReplaceKeyW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegReplaceKey WINELIB_NAME_AW(RegReplaceKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegRestoreKeyA(HKEY,LPCSTR,DWORD);
|
|
|
|
LONG WINAPI RegRestoreKeyW(HKEY,LPCWSTR,DWORD);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegRestoreKey WINELIB_NAME_AW(RegRestoreKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
LONG WINAPI RegUnLoadKeyA(HKEY,LPCSTR);
|
|
|
|
LONG WINAPI RegUnLoadKeyW(HKEY,LPCWSTR);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegUnLoadKey WINELIB_NAME_AW(RegUnLoadKey)
|
|
|
|
|
|
|
|
/* Declarations for functions that are the same in Win16 and Win32 */
|
|
|
|
|
|
|
|
DWORD WINAPI RegCloseKey(HKEY);
|
|
|
|
DWORD WINAPI RegFlushKey(HKEY);
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegCreateKeyA(HKEY,LPCSTR,LPHKEY);
|
|
|
|
DWORD WINAPI RegCreateKeyW(HKEY,LPCWSTR,LPHKEY);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegDeleteKeyA(HKEY,LPCSTR);
|
1999-07-10 13:41:24 +02:00
|
|
|
DWORD WINAPI RegDeleteKeyW(HKEY,LPCWSTR);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
|
1999-07-10 13:41:24 +02:00
|
|
|
DWORD WINAPI RegDeleteValueA(HKEY,LPCSTR);
|
|
|
|
DWORD WINAPI RegDeleteValueW(HKEY,LPCWSTR);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegEnumKeyA(HKEY,DWORD,LPSTR,DWORD);
|
|
|
|
DWORD WINAPI RegEnumKeyW(HKEY,DWORD,LPWSTR,DWORD);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
|
|
|
|
DWORD WINAPI RegEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegOpenKeyA(HKEY,LPCSTR,LPHKEY);
|
|
|
|
DWORD WINAPI RegOpenKeyW(HKEY,LPCWSTR,LPHKEY);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegQueryValueA(HKEY,LPCSTR,LPSTR,LPLONG);
|
|
|
|
DWORD WINAPI RegQueryValueW(HKEY,LPCWSTR,LPWSTR,LPLONG);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
|
1999-07-10 13:41:24 +02:00
|
|
|
DWORD WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
|
|
|
|
DWORD WINAPI RegQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI RegSetValueA(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
|
|
|
|
DWORD WINAPI RegSetValueW(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegSetValue WINELIB_NAME_AW(RegSetValue)
|
1999-07-10 13:41:24 +02:00
|
|
|
DWORD WINAPI RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD,CONST BYTE*,DWORD);
|
|
|
|
DWORD WINAPI RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD,CONST BYTE*,DWORD);
|
1999-02-09 16:46:25 +01:00
|
|
|
#define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1996-03-31 18:40:13 +02:00
|
|
|
#endif /* __WINE_WINREG_H */
|