2000-02-18 03:38:33 +08:00
|
|
|
#ifndef _WINREG_H
|
|
|
|
#define _WINREG_H
|
* include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h,
dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h,
imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h,
ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h,
lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h,
lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h,
lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h,
lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h,
lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h,
mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h,
ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h,
ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h,
oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h,
raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h,
rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h,
rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h,
security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h,
sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h,
tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h,
wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h,
wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h,
winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h,
winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h,
wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header
if __GNUC__ >= 3.
* include/mapi.h: Change header guard name to _MAPI_H for
consistency.
2002-03-09 17:04:10 +08:00
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#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)
|
|
|
|
#define REG_OPTION_VOLATILE 1
|
|
|
|
#define REG_OPTION_NON_VOLATILE 0
|
|
|
|
#define REG_CREATED_NEW_KEY 1
|
|
|
|
#define REG_OPENED_EXISTING_KEY 2
|
|
|
|
#define REG_NONE 0
|
|
|
|
#define REG_SZ 1
|
|
|
|
#define REG_EXPAND_SZ 2
|
|
|
|
#define REG_BINARY 3
|
2002-05-27 17:44:17 +08:00
|
|
|
#define REG_DWORD_LITTLE_ENDIAN 4
|
2000-02-18 03:38:33 +08:00
|
|
|
#define REG_DWORD 4
|
|
|
|
#define REG_DWORD_BIG_ENDIAN 5
|
|
|
|
#define REG_LINK 6
|
|
|
|
#define REG_MULTI_SZ 7
|
|
|
|
#define REG_RESOURCE_LIST 8
|
|
|
|
#define REG_FULL_RESOURCE_DESCRIPTOR 9
|
|
|
|
#define REG_RESOURCE_REQUIREMENTS_LIST 10
|
2002-05-27 17:44:17 +08:00
|
|
|
#define REG_QWORD_LITTLE_ENDIAN 11
|
|
|
|
#define REG_QWORD 11
|
2000-02-18 03:38:33 +08:00
|
|
|
#define REG_NOTIFY_CHANGE_NAME 1
|
|
|
|
#define REG_NOTIFY_CHANGE_ATTRIBUTES 2
|
|
|
|
#define REG_NOTIFY_CHANGE_LAST_SET 4
|
|
|
|
#define REG_NOTIFY_CHANGE_SECURITY 8
|
|
|
|
|
|
|
|
#ifndef RC_INVOKED
|
|
|
|
typedef ACCESS_MASK REGSAM;
|
|
|
|
typedef struct value_entA {
|
|
|
|
LPSTR ve_valuename;
|
|
|
|
DWORD ve_valuelen;
|
|
|
|
DWORD ve_valueptr;
|
|
|
|
DWORD ve_type;
|
|
|
|
} VALENTA,*PVALENTA;
|
|
|
|
typedef struct value_entW {
|
|
|
|
LPWSTR ve_valuename;
|
|
|
|
DWORD ve_valuelen;
|
|
|
|
DWORD ve_valueptr;
|
|
|
|
DWORD ve_type;
|
|
|
|
} VALENTW,*PVALENTW;
|
|
|
|
BOOL WINAPI AbortSystemShutdownA(LPCSTR);
|
|
|
|
BOOL WINAPI AbortSystemShutdownW(LPCWSTR);
|
|
|
|
BOOL WINAPI InitiateSystemShutdownA(LPSTR,LPSTR,DWORD,BOOL,BOOL);
|
|
|
|
BOOL WINAPI InitiateSystemShutdownW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL);
|
|
|
|
LONG WINAPI RegCloseKey(HKEY);
|
2002-05-27 17:44:17 +08:00
|
|
|
LONG WINAPI RegConnectRegistryA(LPCSTR,HKEY,PHKEY);
|
|
|
|
LONG WINAPI RegConnectRegistryW(LPCWSTR,HKEY,PHKEY);
|
2000-02-18 03:38:33 +08:00
|
|
|
LONG WINAPI RegCreateKeyA(HKEY,LPCSTR,PHKEY);
|
|
|
|
LONG WINAPI RegCreateKeyExA(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,LPSECURITY_ATTRIBUTES,PHKEY,PDWORD);
|
|
|
|
LONG WINAPI RegCreateKeyExW(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,LPSECURITY_ATTRIBUTES,PHKEY,PDWORD);
|
|
|
|
LONG WINAPI RegCreateKeyW(HKEY,LPCWSTR,PHKEY);
|
|
|
|
LONG WINAPI RegDeleteKeyA(HKEY,LPCSTR);
|
|
|
|
LONG WINAPI RegDeleteKeyW(HKEY,LPCWSTR);
|
2002-05-27 17:44:17 +08:00
|
|
|
LONG WINAPI RegDeleteValueA(HKEY,LPCSTR);
|
2000-02-18 03:38:33 +08:00
|
|
|
LONG WINAPI RegDeleteValueW(HKEY,LPCWSTR);
|
2002-05-27 17:44:17 +08:00
|
|
|
LONG WINAPI RegEnumKeyA(HKEY,DWORD,LPSTR,DWORD);
|
2000-02-18 03:38:33 +08:00
|
|
|
LONG WINAPI RegEnumKeyW(HKEY,DWORD,LPWSTR,DWORD);
|
|
|
|
LONG WINAPI RegEnumKeyExA(HKEY,DWORD,LPSTR,PDWORD,PDWORD,LPSTR,PDWORD,PFILETIME);
|
|
|
|
LONG WINAPI RegEnumKeyExW(HKEY,DWORD,LPWSTR,PDWORD,PDWORD,LPWSTR,PDWORD,PFILETIME);
|
|
|
|
LONG WINAPI RegEnumValueA(HKEY,DWORD,LPSTR,PDWORD,PDWORD,PDWORD,LPBYTE,PDWORD);
|
|
|
|
LONG WINAPI RegEnumValueW(HKEY,DWORD,LPWSTR,PDWORD,PDWORD,PDWORD,LPBYTE,PDWORD);
|
|
|
|
LONG WINAPI RegFlushKey(HKEY);
|
|
|
|
LONG WINAPI RegGetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,PDWORD);
|
|
|
|
LONG WINAPI RegLoadKeyA(HKEY,LPCSTR,LPCSTR);
|
|
|
|
LONG WINAPI RegLoadKeyW(HKEY,LPCWSTR,LPCWSTR);
|
|
|
|
LONG WINAPI RegNotifyChangeKeyValue(HKEY,BOOL,DWORD,HANDLE,BOOL);
|
|
|
|
LONG WINAPI RegOpenKeyA(HKEY,LPCSTR,PHKEY);
|
|
|
|
LONG WINAPI RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,PHKEY);
|
|
|
|
LONG WINAPI RegOpenKeyExW(HKEY,LPCWSTR,DWORD,REGSAM,PHKEY);
|
|
|
|
LONG WINAPI RegOpenKeyW(HKEY,LPCWSTR,PHKEY);
|
|
|
|
LONG WINAPI RegQueryInfoKeyA(HKEY,LPSTR,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PFILETIME);
|
|
|
|
LONG WINAPI RegQueryInfoKeyW(HKEY,LPWSTR,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PDWORD,PFILETIME);
|
2002-06-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/ddeml.h (DdeCreateStringHandle{AW]:Correct
prototypes.
* include/winsvc.h (StartServiceW): Correct prototype.
* include/winbase.h (BackupRead,BackupSeek,BackupWrite,
FileTimeToLocalFileTime, GetAce,GetPrivateProfileStruct[AW],
GetTickCount,InterlockedExchangeAdd,
WritePrivateProfileStruct[AW]: Correct prototypes.
(GetEnvironmentStrings): Correct mapping to
GetEnvironmentStringsA.
* include/winver.h (VerQueryValueA,VerQueryValueW):
Correct prototypes.
* include/wincon.h (CreateConsoleScreenBuffer): Correct
prototype.
* include/winreg.h (RegQueryMultipleValues[AW],
RegQueryValueEx[AW]):Correct prototypes.
* include/wingdi.h (PXFORM, PLOGBRUSH, PLOGPEN, PPOLYTEXTA,
PPOLYTEXTW): Add typedefs.
(_DESIGNVECTOR,COLOR16, _TRIVERTEX, _DISPLAY_DEVICE): Add
structures and typedefs.
(MM_MAX_NUMAXES): Add define.
(EnumFontsW,GetEnhMetaFilePixelFormat,wglGetLayerPaletteEntries):
Correct prototypes.
* include/winerror.h (RPC_X_INVALID_PIPE_OBJECT,
RPC_X_WRONG_PIPE_ORDER,RPC_X_WRONG_PIPE_VERSION,
RPC_S_SEND_INCOMPLETE): Add defines.
2002-06-19 09:15:45 +08:00
|
|
|
LONG WINAPI RegQueryMultipleValuesA(HKEY,PVALENTA,DWORD,LPSTR,LPDWORD);
|
|
|
|
LONG WINAPI RegQueryMultipleValuesW(HKEY,PVALENTW,DWORD,LPWSTR,LPDWORD);
|
2000-02-18 03:38:33 +08:00
|
|
|
LONG WINAPI RegQueryValueA(HKEY,LPCSTR,LPSTR,PLONG);
|
2002-06-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/ddeml.h (DdeCreateStringHandle{AW]:Correct
prototypes.
* include/winsvc.h (StartServiceW): Correct prototype.
* include/winbase.h (BackupRead,BackupSeek,BackupWrite,
FileTimeToLocalFileTime, GetAce,GetPrivateProfileStruct[AW],
GetTickCount,InterlockedExchangeAdd,
WritePrivateProfileStruct[AW]: Correct prototypes.
(GetEnvironmentStrings): Correct mapping to
GetEnvironmentStringsA.
* include/winver.h (VerQueryValueA,VerQueryValueW):
Correct prototypes.
* include/wincon.h (CreateConsoleScreenBuffer): Correct
prototype.
* include/winreg.h (RegQueryMultipleValues[AW],
RegQueryValueEx[AW]):Correct prototypes.
* include/wingdi.h (PXFORM, PLOGBRUSH, PLOGPEN, PPOLYTEXTA,
PPOLYTEXTW): Add typedefs.
(_DESIGNVECTOR,COLOR16, _TRIVERTEX, _DISPLAY_DEVICE): Add
structures and typedefs.
(MM_MAX_NUMAXES): Add define.
(EnumFontsW,GetEnhMetaFilePixelFormat,wglGetLayerPaletteEntries):
Correct prototypes.
* include/winerror.h (RPC_X_INVALID_PIPE_OBJECT,
RPC_X_WRONG_PIPE_ORDER,RPC_X_WRONG_PIPE_VERSION,
RPC_S_SEND_INCOMPLETE): Add defines.
2002-06-19 09:15:45 +08:00
|
|
|
LONG WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
|
|
|
|
LONG WINAPI RegQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
|
2000-02-18 03:38:33 +08:00
|
|
|
LONG WINAPI RegQueryValueW(HKEY,LPCWSTR,LPWSTR,PLONG);
|
|
|
|
LONG WINAPI RegReplaceKeyA(HKEY,LPCSTR,LPCSTR,LPCSTR);
|
|
|
|
LONG WINAPI RegReplaceKeyW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR);
|
2002-05-27 17:44:17 +08:00
|
|
|
LONG WINAPI RegRestoreKeyA(HKEY,LPCSTR,DWORD);
|
2000-02-18 03:38:33 +08:00
|
|
|
LONG WINAPI RegRestoreKeyW(HKEY,LPCWSTR,DWORD);
|
|
|
|
LONG WINAPI RegSaveKeyA(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES);
|
|
|
|
LONG WINAPI RegSaveKeyW(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES);
|
|
|
|
LONG WINAPI RegSetKeySecurity(HKEY,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
|
|
|
|
LONG WINAPI RegSetValueA(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
|
|
|
|
LONG WINAPI RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD,const BYTE*,DWORD);
|
|
|
|
LONG WINAPI RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD,const BYTE*,DWORD);
|
|
|
|
LONG WINAPI RegSetValueW(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
|
|
|
|
LONG WINAPI RegUnLoadKeyA(HKEY,LPCSTR);
|
|
|
|
LONG WINAPI RegUnLoadKeyW(HKEY,LPCWSTR);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
typedef VALENTW VALENT,*PVALENT;
|
|
|
|
#define AbortSystemShutdown AbortSystemShutdownW
|
|
|
|
#define InitiateSystemShutdown InitiateSystemShutdownW
|
|
|
|
#define RegConnectRegistry RegConnectRegistryW
|
|
|
|
#define RegCreateKey RegCreateKeyW
|
|
|
|
#define RegCreateKeyEx RegCreateKeyExW
|
|
|
|
#define RegDeleteKey RegDeleteKeyW
|
|
|
|
#define RegDeleteValue RegDeleteValueW
|
|
|
|
#define RegEnumKey RegEnumKeyW
|
|
|
|
#define RegEnumKeyEx RegEnumKeyExW
|
|
|
|
#define RegEnumValue RegEnumValueW
|
|
|
|
#define RegLoadKey RegLoadKeyW
|
|
|
|
#define RegOpenKey RegOpenKeyW
|
|
|
|
#define RegOpenKeyEx RegOpenKeyExW
|
|
|
|
#define RegQueryInfoKey RegQueryInfoKeyW
|
|
|
|
#define RegQueryMultipleValues RegQueryMultipleValuesW
|
|
|
|
#define RegQueryValue RegQueryValueW
|
|
|
|
#define RegQueryValueEx RegQueryValueExW
|
|
|
|
#define RegReplaceKey RegReplaceKeyW
|
|
|
|
#define RegRestoreKey RegRestoreKeyW
|
|
|
|
#define RegSaveKey RegSaveKeyW
|
|
|
|
#define RegSetValue RegSetValueW
|
|
|
|
#define RegSetValueEx RegSetValueExW
|
|
|
|
#define RegUnLoadKey RegUnLoadKeyW
|
|
|
|
#else
|
|
|
|
typedef VALENTA VALENT,*PVALENT;
|
|
|
|
#define AbortSystemShutdown AbortSystemShutdownA
|
|
|
|
#define InitiateSystemShutdown InitiateSystemShutdownA
|
|
|
|
#define RegConnectRegistry RegConnectRegistryA
|
|
|
|
#define RegCreateKey RegCreateKeyA
|
|
|
|
#define RegCreateKeyEx RegCreateKeyExA
|
|
|
|
#define RegDeleteKey RegDeleteKeyA
|
|
|
|
#define RegDeleteValue RegDeleteValueA
|
|
|
|
#define RegEnumKey RegEnumKeyA
|
|
|
|
#define RegEnumKeyEx RegEnumKeyExA
|
|
|
|
#define RegEnumValue RegEnumValueA
|
|
|
|
#define RegLoadKey RegLoadKeyA
|
|
|
|
#define RegOpenKey RegOpenKeyA
|
|
|
|
#define RegOpenKeyEx RegOpenKeyExA
|
|
|
|
#define RegQueryInfoKey RegQueryInfoKeyA
|
|
|
|
#define RegQueryMultipleValues RegQueryMultipleValuesA
|
|
|
|
#define RegQueryValue RegQueryValueA
|
|
|
|
#define RegQueryValueEx RegQueryValueExA
|
|
|
|
#define RegReplaceKey RegReplaceKeyA
|
|
|
|
#define RegRestoreKey RegRestoreKeyA
|
|
|
|
#define RegSaveKey RegSaveKeyA
|
|
|
|
#define RegSetValue RegSetValueA
|
|
|
|
#define RegSetValueEx RegSetValueExA
|
|
|
|
#define RegUnLoadKey RegUnLoadKeyA
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|