uLib  User mode C/C++ extended API library for Win32 programmers.
RegFunc.cpp File Reference
#include <uLib/RegFunc.h>
#include <StdIo.h>

Go to the source code of this file.

Macros

#define RNAME_CHUNK   MAX_PATH
 
#define RDATA_CHUNK   MAX_PATH
 
#define tempName   TEXT("_RegKey_Temp_.bin")
 
#define PRIVI_BUFSIZE   256
 
#define ULONG_HKCR   ULONG_PTR( HKEY_CLASSES_ROOT )
 

Functions

HKEY RegCloseKeyEx (HKEY Key)
 
BOOL RegKeyExist (HKEY BaseKey, CSTR RegPath)
 
BOOL RegValueExist (HKEY key, CSTR name)
 
LONG RegGetValueInfo (HKEY hKey, CSTR ValName, PDWORD pSize, PDWORD pType)
 
LONG RegRenameValue (HKEY hKey, CSTR OldName, CSTR NewName)
 
LONG RegSetDWord (HKEY hKey, CSTR ValName, DWORD Val)
 
LONG RegGetDWord (HKEY hKey, CSTR ValName, PDWORD pVal)
 
LONG RegGetUInt (HKEY hKey, CSTR ValName, PUINT pVal)
 
LONG RegGetBool (HKEY hKey, CSTR ValName, bool *pVal)
 
LONG RegSetBinary (HKEY hKey, CSTR ValName, PBYTE Val, DWORD Size)
 
LONG RegGetBinary (HKEY hKey, CSTR ValName, PBYTE pVal, PDWORD pSize)
 
LONG RegSetString (HKEY hKey, CSTR ValName, CSTR Str, DWORD Type)
 
LONG RegGetString (HKEY hKey, CSTR ValName, TSTR Buf, PDWORD Size, PDWORD Type)
 
LONG SaveWindowRect (HWND hWnd, HKEY baseKey, CSTR regPath, CSTR valName)
 
LONG RestoreWindowRect (HWND hWnd, HKEY baseKey, CSTR regPath, CSTR valName)
 
LONG RegDeleteBranch (HKEY Parent, CSTR SubkeyName)
 
LONG _RegRenameKey (HKEY BaseKey, CSTR Subkey, CSTR NewSubkeyName)
 
CSTR RegSysKeyName (HKEY hkey)
 
CSTR RegSysKeyAcronym (HKEY hkey)
 
CSTR RegTypeName (DWORD type)
 
CSTR RegValueName (CSTR name)
 

Macro Definition Documentation

◆ RNAME_CHUNK

#define RNAME_CHUNK   MAX_PATH

Definition at line 11 of file RegFunc.cpp.

◆ RDATA_CHUNK

#define RDATA_CHUNK   MAX_PATH

Definition at line 12 of file RegFunc.cpp.

◆ tempName

#define tempName   TEXT("_RegKey_Temp_.bin")

Definition at line 298 of file RegFunc.cpp.

◆ PRIVI_BUFSIZE

#define PRIVI_BUFSIZE   256

Definition at line 299 of file RegFunc.cpp.

◆ ULONG_HKCR

#define ULONG_HKCR   ULONG_PTR( HKEY_CLASSES_ROOT )

Definition at line 438 of file RegFunc.cpp.

Function Documentation

◆ RegGetValueInfo()

LONG RegGetValueInfo ( HKEY  hKey,
CSTR  ValName,
PDWORD  pSize,
PDWORD  pType 
)

Definition at line 54 of file RegFunc.cpp.