mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.7 KiB
90 lines
1.7 KiB
__foldwin32sstuff __foldwin32sstuff;
|
|
foldstyleinitialization = true;
|
|
|
|
|
|
|
|
/*
|
|
* REGISTRY thunks for Win32s
|
|
*/
|
|
|
|
/*
|
|
* Open issues:
|
|
*
|
|
*/
|
|
|
|
enablemapdirect3216 = true;
|
|
|
|
#include "types.thk"
|
|
|
|
#include "regtypes.thk"
|
|
|
|
/*
|
|
* Exported REGISTRY functions
|
|
*
|
|
*/
|
|
|
|
|
|
/**********************************************************************
|
|
*
|
|
* WINREG.DLL exports
|
|
*
|
|
**********************************************************************/
|
|
|
|
/*
|
|
* RegDeleteKeyA
|
|
* RegEnumKeyA
|
|
* RegCreateKeyA
|
|
* RegCloseKey
|
|
* RegOpenKeyA
|
|
* RegQueryValueA
|
|
* RegSetValueA
|
|
*/
|
|
|
|
|
|
LONG RegDeleteKey(HKEY hkey, LPSTR lpSubKey) =
|
|
LONG RegDeleteKeyA(HKEY hkey, LPSTR lpSubKey)
|
|
{
|
|
hkey = push;
|
|
}
|
|
|
|
LONG RegEnumKey(HKEY hkey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName) =
|
|
LONG RegEnumKeyA(HKEY hkey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName)
|
|
{
|
|
hkey = push;
|
|
lpcbName = inout;
|
|
}
|
|
|
|
LONG RegCreateKey(HKEY hkey, LPSTR lpszSubKey, PHKEY phkResult) =
|
|
LONG RegCreateKeyA(HKEY hkey, LPSTR lpszSubKey, PHKEY phkResult)
|
|
{
|
|
hkey = push;
|
|
phkResult = output;
|
|
phkResult = unpack;
|
|
}
|
|
|
|
LONG RegCloseKey(HKEY hkey) =
|
|
LONG RegCloseKey(HKEY hkey)
|
|
{
|
|
hkey = push;
|
|
}
|
|
|
|
LONG RegOpenKey(HKEY hkey, LPSTR lpSubKey, PHKEY phkResult) =
|
|
LONG RegOpenKeyA(HKEY hkey, LPSTR lpSubKey, PHKEY phkResult)
|
|
{
|
|
hkey = push;
|
|
phkResult = output;
|
|
phkResult = unpack;
|
|
}
|
|
|
|
LONG RegQueryValue(HKEY hkey, LPSTR lpszSubKey, LPSTR lpszValue, LPLONG lpcb) =
|
|
LONG RegQueryValueA(HKEY hkey, LPSTR lpszSubKey, LPSTR lpszValue, LPLONG lpcb)
|
|
{
|
|
hkey = push;
|
|
lpcb = inout;
|
|
}
|
|
|
|
LONG RegSetValue(HKEY hkey, LPSTR lpszSubKey, DWORD dwType, LPSTR lpszValue, DWORD cb) =
|
|
LONG RegSetValueA(HKEY hkey, LPSTR lpszSubKey, DWORD dwType, LPSTR lpszValue, DWORD cb)
|
|
{
|
|
hkey = push;
|
|
}
|