class to handle registry.
Public Methods
-
HCRegistry( )
- Constructor
-
~HCRegistry( )
- Destructor
-
int Open( HKEY hRootKey, char* szKey )
- open registry key.
-
int Close( )
- close registry key.
-
int Read( char* szName, char* szValue, int iValueLen )
- get string from registry.
-
int Read( char* szName )
- get integer value from registry.
-
int Write( char* szName, char* szValue, int iValueLen )
- save string of registry key
-
int Write( char* szName, int iValue )
- save integer of registy key.
Documentation
class to handle registry.
HCRegistry( )
- Constructor
- Returns:
- nothing.
- Author:
- Yee Young Han
~HCRegistry( )
- Destructor
If Close function is not executed, execute Close function.
- Returns:
- nothing.
- Author:
- Yee Young Han
int Open( HKEY hRootKey, char* szKey )
- open registry key.
- Parameters:
- hRootKey - Handle to a currently open key or one of the following predefined reserved handle values ( HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS )
szKey - Pointer to a null-terminated string specifying the name of a subkey that this function opens or creates. The subkey specified must be a subkey of the key identified by the hKey parameter. This subkey must not begin with the backslash character ('\'). This parameter cannot be NULL
- Returns:
- if success, return 0.
otherwise return -1.
- Author:
- Yee Young Han
int Close( )
- close registry key.
- Returns:
- return 0.
- Author:
- Yee Young Han
int Read( char* szName, char* szValue, int iValueLen )
- get string from registry.
- Parameters:
- szName - [in] registry key
szValue - [out] value of registry key
iValueLen - size of szValue
- Returns:
- if success, return 0.
otherwise return -1.
if Open method is not called, return -10.
- Author:
- Yee Young Han
int Read( char* szName )
- get integer value from registry.
- Parameters:
- szName - [in] registry key
- Returns:
- return value of registry key.
- Author:
- Yee Young Han
int Write( char* szName, char* szValue, int iValueLen )
- save string of registry key
- Parameters:
- szName - [in] registry key
szValue - [in] registry value
iValueLen - size of szValue
- Returns:
- if success, return 0.
otherwise return -1.
if Open method is not called, return -10.
- Author:
- Yee Young Han
int Write( char* szName, int iValue )
- save integer of registy key.
- Parameters:
- szName - [in] registry key
iValue - [in] registry value
- Returns:
- if success, return 0.
otherwise return -1.
if Open method is not called, return -10.
- Author:
- Yee Young Han
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.