ReactOS 0.4.15-dev-7942-gd23573b
CRegKeyEx Class Reference

#include <registry.h>

Inheritance diagram for CRegKeyEx:
Collaboration diagram for CRegKeyEx:

Public Member Functions

LONG EnumValueName (_In_ DWORD iIndex, _Out_ LPTSTR pszName, _Inout_ LPDWORD pnNameLength)
 
- Public Member Functions inherited from ATL::CRegKey
 CRegKey () noexcept
 
 CRegKey (CRegKey &key) noexcept
 
 CRegKey (HKEY hKey) noexcept
 
 ~CRegKey () noexcept
 
void Attach (HKEY hKey) noexcept
 
LONG Close () noexcept
 
HKEY Detach () noexcept
 
LONG Open (HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired=KEY_READ|KEY_WRITE) noexcept
 
LONG Create (HKEY hKeyParent, LPCTSTR lpszKeyName, LPTSTR lpszClass=REG_NONE, DWORD dwOptions=REG_OPTION_NON_VOLATILE, REGSAM samDesired=KEY_READ|KEY_WRITE, LPSECURITY_ATTRIBUTES lpSecAttr=NULL, LPDWORD lpdwDisposition=NULL) noexcept
 
LONG QueryValue (LPCTSTR pszValueName, DWORD *pdwType, void *pData, ULONG *pnBytes) noexcept
 
LONG QueryDWORDValue (LPCTSTR pszValueName, DWORD &dwValue) noexcept
 
LONG QueryBinaryValue (LPCTSTR pszValueName, void *pValue, ULONG *pnBytes) noexcept
 
LONG QueryStringValue (LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) noexcept
 
LONG QueryGUIDValue (LPCTSTR pszValueName, GUID &guidValue) noexcept
 
LONG QueryQWORDValue (LPCTSTR pszValueName, ULONGLONG &qwValue) noexcept
 
LONG QueryMultiStringValue (LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) noexcept
 
LONG SetValue (LPCTSTR pszValueName, DWORD dwType, const void *pValue, ULONG nBytes) noexcept
 
LONG SetDWORDValue (LPCTSTR pszValueName, DWORD dwValue) noexcept
 
LONG SetStringValue (LPCTSTR pszValueName, LPCTSTR pszValue, DWORD dwType=REG_SZ) noexcept
 
LONG SetGUIDValue (LPCTSTR pszValueName, REFGUID guidValue) noexcept
 
LONG SetBinaryValue (LPCTSTR pszValueName, const void *pValue, ULONG nBytes) noexcept
 
LONG SetMultiStringValue (LPCTSTR pszValueName, LPCTSTR pszValue) noexcept
 
LONG SetQWORDValue (LPCTSTR pszValueName, ULONGLONG qwValue) noexcept
 
LONG NotifyChangeKeyValue (BOOL bWatchSubtree, DWORD dwNotifyFilter, HANDLE hEvent, BOOL bAsync=TRUE) noexcept
 
LONG Flush () noexcept
 
LONG SetKeyValue (LPCTSTR lpszKeyName, LPCTSTR lpszValue, LPCTSTR lpszValueName=NULL) noexcept
 
LONG DeleteValue (LPCTSTR lpszValue) noexcept
 
LONG DeleteSubKey (LPCTSTR lpszSubKey) noexcept
 
LONG RecurseDeleteKey (LPCTSTR lpszKey) noexcept
 
LONG EnumKey (DWORD iIndex, LPTSTR pszName, LPDWORD pnNameLength, FILETIME *pftLastWriteTime=NULL) noexcept
 
LONG GetKeySecurity (SECURITY_INFORMATION si, PSECURITY_DESCRIPTOR psd, LPDWORD pnBytes) noexcept
 
LONG SetKeySecurity (SECURITY_INFORMATION si, PSECURITY_DESCRIPTOR psd) noexcept
 
 operator HKEY () const noexcept
 
CRegKeyoperator= (CRegKey &key) noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from ATL::CRegKey
static LONG WINAPI SetValue (HKEY hKeyParent, LPCTSTR lpszKeyName, LPCTSTR lpszValue, LPCTSTR lpszValueName=NULL)
 
- Public Attributes inherited from ATL::CRegKey
HKEY m_hKey
 
- Static Protected Member Functions inherited from ATL::CRegKey
static ULONG _GetMultiStringSize (LPCTSTR pszz)
 
static LONG _DoDeleteKeyTree (HKEY hParentKey, LPCTSTR lpszKey)
 

Detailed Description

Definition at line 22 of file registry.h.

Member Function Documentation

◆ EnumValueName()

LONG CRegKeyEx::EnumValueName ( _In_ DWORD  iIndex,
_Out_ LPTSTR  pszName,
_Inout_ LPDWORD  pnNameLength 
)

Definition at line 12 of file registry.cpp.

16{
17 return RegEnumValueW(m_hKey, iIndex, pszName, pnNameLength,
18 NULL, NULL, NULL, NULL);
19}
HKEY m_hKey
Definition: atlbase.h:1115
#define NULL
Definition: types.h:112
LONG WINAPI RegEnumValueW(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
Definition: reg.c:2830

Referenced by RunOnceExSection::RunOnceExSection().


The documentation for this class was generated from the following files: