Winreg Structures
This section describes the structures used by the Windows Registry API (Winreg).
HKEY
A handle to a registry key.
typedef LONG HKEY;
- This is a handle to a registry key.
- It is used to identify an open registry key.
REGSAM
Specifies the desired access rights for a registry key.
typedef DWORD REGSAM;
- Defines bit flags for registry key access.
- Common values include
KEY_READ
,KEY_WRITE
, andKEY_ALL_ACCESS
.
REG_VALUE_DATA_TYPE
Specifies the data type of a registry value.
typedef DWORD REG_VALUE_DATA_TYPE;
- Enumerates standard registry data types like
REG_SZ
,REG_DWORD
,REG_BINARY
, etc.
LPVALUE_NAME
A pointer to a string that contains the name of a registry value.
typedef const WCHAR* LPVALUE_NAME;
- Used in functions to specify or retrieve registry value names.
LPBYTE
A pointer to a byte buffer.
typedef BYTE* LPBYTE;
- Commonly used for binary data in registry values.
LPVOID
A pointer to an unspecified type.
typedef void* LPVOID;
- A generic pointer type, often used for data buffers where the exact type might vary.