ReactOS  0.4.15-dev-5496-g599ba9c
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 () throw ()
 
 CRegKey (CRegKey &key) throw ()
 
 CRegKey (HKEY hKey) throw ()
 
 ~CRegKey () throw ()
 
void Attach (HKEY hKey) throw ()
 
LONG Close () throw ()
 
HKEY Detach () throw ()
 
LONG Open (HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired=KEY_READ|KEY_WRITE) throw ()
 
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) throw ()
 
LONG QueryValue (LPCTSTR pszValueName, DWORD *pdwType, void *pData, ULONG *pnBytes) throw ()
 
LONG QueryDWORDValue (LPCTSTR pszValueName, DWORD &dwValue) throw ()
 
LONG QueryBinaryValue (LPCTSTR pszValueName, void *pValue, ULONG *pnBytes) throw ()
 
LONG QueryStringValue (LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) throw ()
 
LONG QueryGUIDValue (LPCTSTR pszValueName, GUID &guidValue) throw ()
 
LONG QueryQWORDValue (LPCTSTR pszValueName, ULONGLONG &qwValue) throw ()
 
LONG QueryMultiStringValue (LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) throw ()
 
LONG SetValue (LPCTSTR pszValueName, DWORD dwType, const void *pValue, ULONG nBytes) throw ()
 
LONG SetDWORDValue (LPCTSTR pszValueName, DWORD dwValue) throw ()
 
LONG SetStringValue (LPCTSTR pszValueName, LPCTSTR pszValue, DWORD dwType=REG_SZ) throw ()
 
LONG SetGUIDValue (LPCTSTR pszValueName, REFGUID guidValue) throw ()
 
LONG SetBinaryValue (LPCTSTR pszValueName, const void *pValue, ULONG nBytes) throw ()
 
LONG SetMultiStringValue (LPCTSTR pszValueName, LPCTSTR pszValue) throw ()
 
LONG SetQWORDValue (LPCTSTR pszValueName, ULONGLONG qwValue) throw ()
 
LONG NotifyChangeKeyValue (BOOL bWatchSubtree, DWORD dwNotifyFilter, HANDLE hEvent, BOOL bAsync=TRUE) throw ()
 
LONG Flush () throw ()
 
LONG SetKeyValue (LPCTSTR lpszKeyName, LPCTSTR lpszValue, LPCTSTR lpszValueName=NULL) throw ()
 
LONG DeleteValue (LPCTSTR lpszValue) throw ()
 
LONG DeleteSubKey (LPCTSTR lpszSubKey) throw ()
 
LONG RecurseDeleteKey (LPCTSTR lpszKey) throw ()
 
LONG EnumKey (DWORD iIndex, LPTSTR pszName, LPDWORD pnNameLength, FILETIME *pftLastWriteTime=NULL) throw ()
 
LONG GetKeySecurity (SECURITY_INFORMATION si, PSECURITY_DESCRIPTOR psd, LPDWORD pnBytes) throw ()
 
LONG SetKeySecurity (SECURITY_INFORMATION si, PSECURITY_DESCRIPTOR psd) throw ()
 
 operator HKEY () const throw ()
 
CRegKeyoperator= (CRegKey &key) throw ()
 

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:1014
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:2853
#define NULL
Definition: types.h:112

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