class HCRegistry

class to handle registry.

Public Methods

[more] HCRegistry( )
Constructor
[more] ~HCRegistry( )
Destructor
[more]int Open( HKEY hRootKey, char* szKey )
open registry key.
[more]int Close( )
close registry key.
[more]int Read( char* szName, char* szValue, int iValueLen )
get string from registry.
[more]int Read( char* szName )
get integer value from registry.
[more]int Write( char* szName, char* szValue, int iValueLen )
save string of registry key
[more]int Write( char* szName, int iValue )
save integer of registy key.


Documentation

class to handle registry.
o HCRegistry( )
Constructor

Returns:
nothing.
Author:
Yee Young Han

o ~HCRegistry( )
Destructor

If Close function is not executed, execute Close function.

Returns:
nothing.
Author:
Yee Young Han

oint 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

oint Close( )
close registry key.

Returns:
return 0.
Author:
Yee Young Han

oint 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

oint Read( char* szName )
get integer value from registry.

Parameters:
szName - [in] registry key
Returns:
return value of registry key.
Author:
Yee Young Han

oint 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

oint 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++.