OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TSHReg Class Reference

delay loading SHLWAPI.DLL More...

#include <owl/shelwapi.h>

Static Public Member Functions

static DWORD DeleteEmptyKey (HKEY hkey, LPCTSTR pszSubKey)
 DeleteEmptyKey mimics RegDeleteKey as it behaves on NT - delete the subkey only if it does not contain any subkeys and values.
 
static DWORD DeleteKey (HKEY hkey, LPCTSTR pszSubKey)
 DeleteKey mimics RegDeleteKey as it behaves on Win95 - deletes a subkey and all its values and descendants.
 
static HKEY DuplicateKey (HKEY hkey)
 Duplicates a registry key's HKEY handle.
 
static DWORD DeleteValue (HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue)
 These functions open the key, get/set/delete the value, then close the key.
 
static DWORD GetValue (HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData)
 
static DWORD SetValue (HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue, DWORD dwType, LPCVOID pvData, DWORD cbData)
 
static DWORD QueryValueEx (HKEY hkey, LPCTSTR pszValue, LPDWORD pdwReserved, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData)
 This functions work just like RegQueryValueEx, except if the data type is REG_EXPAND_SZ, then these will go ahead and expand out the string.
 
static LONG EnumKeyEx (HKEY hkey, DWORD dwIndex, TCHAR *pszName, LPDWORD pcchName)
 Enumerates the subkeys of the specified open registry key.
 
static LONG EnumValue (HKEY hkey, DWORD dwIndex, TCHAR *pszValueName, LPDWORD pcchValueName, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData)
 Enumerates the values of the specified open registry key.
 
static LONG QueryInfoKey (HKEY hkey, LPDWORD pcSubKeys, LPDWORD pcchMaxSubKeyLen, LPDWORD pcValues, LPDWORD pcchMaxValueNameLen)
 Retrieves information about a specified registry key.
 
static DWORD CopyKey (HKEY hkeySrc, LPCTSTR szSrcSubKey, HKEY hkeyDest, DWORD fReserved)
 Recursively copies the subkeys and values of the source subkey to the destination key.
 
static DWORD RegGetPath (HKEY hkey, LPCTSTR pcszSubKey, LPCTSTR pcszValue, TCHAR *pszPath, DWORD dwFlags)
 Retrieves a file path from the registry, expanding environment variables as needed.
 
static DWORD RegSetPath (HKEY hkey, LPCTSTR pcszSubKey, LPCTSTR pcszValue, LPCTSTR pcszPath, DWORD dwFlags)
 Takes a file path, replaces folder names with environment strings, and places the resulting string in the registry.
 
static TModuleGetModule ()
 

Detailed Description

delay loading SHLWAPI.DLL

Definition at line 35 of file shelwapi.h.

Member Function Documentation

◆ CopyKey()

DWORD owl::TSHReg::CopyKey ( HKEY hkeySrc,
LPCTSTR szSrcSubKey,
HKEY hkeyDest,
DWORD fReserved )
static

Recursively copies the subkeys and values of the source subkey to the destination key.

Definition at line 145 of file shelwapi.cpp.

References GetModule().

◆ DeleteEmptyKey()

DWORD owl::TSHReg::DeleteEmptyKey ( HKEY hkey,
LPCTSTR pszSubKey )
static

DeleteEmptyKey mimics RegDeleteKey as it behaves on NT - delete the subkey only if it does not contain any subkeys and values.

Definition at line 64 of file shelwapi.cpp.

References GetModule().

◆ DeleteKey()

DWORD owl::TSHReg::DeleteKey ( HKEY hkey,
LPCTSTR pszSubKey )
static

DeleteKey mimics RegDeleteKey as it behaves on Win95 - deletes a subkey and all its values and descendants.

Definition at line 72 of file shelwapi.cpp.

References GetModule().

◆ DeleteValue()

DWORD owl::TSHReg::DeleteValue ( HKEY hkey,
LPCTSTR pszSubKey,
LPCTSTR pszValue )
static

These functions open the key, get/set/delete the value, then close the key.

Definition at line 88 of file shelwapi.cpp.

References GetModule().

◆ DuplicateKey()

HKEY owl::TSHReg::DuplicateKey ( HKEY hkey)
static

Duplicates a registry key's HKEY handle.

Definition at line 80 of file shelwapi.cpp.

References GetModule().

◆ EnumKeyEx()

LONG owl::TSHReg::EnumKeyEx ( HKEY hkey,
DWORD dwIndex,
TCHAR * pszName,
LPDWORD pcchName )
static

Enumerates the subkeys of the specified open registry key.

Definition at line 120 of file shelwapi.cpp.

References GetModule().

◆ EnumValue()

LONG owl::TSHReg::EnumValue ( HKEY hkey,
DWORD dwIndex,
TCHAR * pszValueName,
LPDWORD pcchValueName,
LPDWORD pdwType,
LPVOID pvData,
LPDWORD pcbData )
static

Enumerates the values of the specified open registry key.

Definition at line 128 of file shelwapi.cpp.

References GetModule().

◆ GetModule()

TModule & owl::TSHReg::GetModule ( )
static

Definition at line 57 of file shelwapi.cpp.

◆ GetValue()

DWORD owl::TSHReg::GetValue ( HKEY hkey,
LPCTSTR pszSubKey,
LPCTSTR pszValue,
LPDWORD pdwType,
LPVOID pvData,
LPDWORD pcbData )
static

Definition at line 96 of file shelwapi.cpp.

References GetModule().

◆ QueryInfoKey()

LONG owl::TSHReg::QueryInfoKey ( HKEY hkey,
LPDWORD pcSubKeys,
LPDWORD pcchMaxSubKeyLen,
LPDWORD pcValues,
LPDWORD pcchMaxValueNameLen )
static

Retrieves information about a specified registry key.

Definition at line 136 of file shelwapi.cpp.

References GetModule().

◆ QueryValueEx()

DWORD owl::TSHReg::QueryValueEx ( HKEY hkey,
LPCTSTR pszValue,
LPDWORD pdwReserved,
LPDWORD pdwType,
LPVOID pvData,
LPDWORD pcbData )
static

This functions work just like RegQueryValueEx, except if the data type is REG_EXPAND_SZ, then these will go ahead and expand out the string.

*pdwType will always be massaged to REG_SZ if this happens. REG_SZ values are also guaranteed to be null terminated.

Definition at line 112 of file shelwapi.cpp.

References GetModule().

◆ RegGetPath()

DWORD owl::TSHReg::RegGetPath ( HKEY hkey,
LPCTSTR pcszSubKey,
LPCTSTR pcszValue,
TCHAR * pszPath,
DWORD dwFlags )
static

Retrieves a file path from the registry, expanding environment variables as needed.

Definition at line 154 of file shelwapi.cpp.

References GetModule().

◆ RegSetPath()

DWORD owl::TSHReg::RegSetPath ( HKEY hkey,
LPCTSTR pcszSubKey,
LPCTSTR pcszValue,
LPCTSTR pcszPath,
DWORD dwFlags )
static

Takes a file path, replaces folder names with environment strings, and places the resulting string in the registry.

Definition at line 162 of file shelwapi.cpp.

References GetModule().

◆ SetValue()

DWORD owl::TSHReg::SetValue ( HKEY hkey,
LPCTSTR pszSubKey,
LPCTSTR pszValue,
DWORD dwType,
LPCVOID pvData,
DWORD cbData )
static

Definition at line 104 of file shelwapi.cpp.

References GetModule().


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