Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayKernel::CKeRegistry Struct Reference

#include <cKernel.h>

Public Member Functions

 CKeRegistry (ULONG uRelativeTo, PWSTR pPath)
 
NTSTATUS CreateKey ()
 
NTSTATUS CheckKey ()
 
NTSTATUS WriteValue (IN PCWSTR ValueName, IN ULONG ValueType, IN PVOID ValueData, IN ULONG ValueLength)
 
NTSTATUS DeleteValue (IN PCWSTR ValueName=nullptr)
 
NTSTATUS QueryValues (RTL_QUERY_REGISTRY_TABLE *pQueryTable, IN PVOID pContext=nullptr, IN PVOID pEnvironment=nullptr)
 
NTSTATUS WriteValueStr (IN PCWSTR ValueName, UNICODE_STRING &str)
 
NTSTATUS WriteValueStr (IN PCWSTR ValueName, const WCHAR *pStr)
 

Public Attributes

ULONG m_uRelativeTo
 RTL_REGISTRY_ABSOLUTE, RTL_REGISTRY_DEVICEMAP, RTL_REGISTRY_MAXIMUM, etc. More...
 
PWSTR m_pPath
 e.g. L"SERIALCOMM" More...
 

Detailed Description

Read/Write values to/from the registry.

Constructor & Destructor Documentation

◆ CKeRegistry()

GrayKernel::CKeRegistry::CKeRegistry ( ULONG  uRelativeTo,
PWSTR  pPath 
)
inline

Member Function Documentation

◆ CheckKey()

NTSTATUS GrayKernel::CKeRegistry::CheckKey ( )
inline

◆ CreateKey()

NTSTATUS GrayKernel::CKeRegistry::CreateKey ( )
inline

◆ DeleteValue()

NTSTATUS GrayKernel::CKeRegistry::DeleteValue ( IN PCWSTR  ValueName = nullptr)
inline

ValueName = nullptr = the key.

◆ QueryValues()

NTSTATUS GrayKernel::CKeRegistry::QueryValues ( RTL_QUERY_REGISTRY_TABLE *  pQueryTable,
IN PVOID  pContext = nullptr,
IN PVOID  pEnvironment = nullptr 
)
inline

◆ WriteValue()

NTSTATUS GrayKernel::CKeRegistry::WriteValue ( IN PCWSTR  ValueName,
IN ULONG  ValueType,
IN PVOID  ValueData,
IN ULONG  ValueLength 
)
inline

ValueName = nullptr = write for the key. ValueType = REG_SZ, REG_DWORD, etc. ValueData = pointer to the data buffer.

◆ WriteValueStr() [1/2]

NTSTATUS GrayKernel::CKeRegistry::WriteValueStr ( IN PCWSTR  ValueName,
const WCHAR *  pStr 
)
inline

◆ WriteValueStr() [2/2]

NTSTATUS GrayKernel::CKeRegistry::WriteValueStr ( IN PCWSTR  ValueName,
UNICODE_STRING &  str 
)
inline

Member Data Documentation

◆ m_pPath

PWSTR GrayKernel::CKeRegistry::m_pPath

e.g. L"SERIALCOMM"

◆ m_uRelativeTo

ULONG GrayKernel::CKeRegistry::m_uRelativeTo

RTL_REGISTRY_ABSOLUTE, RTL_REGISTRY_DEVICEMAP, RTL_REGISTRY_MAXIMUM, etc.


The documentation for this struct was generated from the following file: