CollateSubKeyValues Function

this function takes all the values (only) in a specified subkey and creates one long string of key=value; pairs out of it, optionally this can then be encoded. The valueMask parameter, if supplied, omits values whose name does not match the pattern.

Public HRESULT CollateSubKeyValues(BSTR , BSTR , SHORT , BSTR *)

Type Name Description
  BSTR subkey the name of the subkey
  BSTR valueMask pattern to match for values
  SHORT encode specify if it is to be encoded or not
  BSTR * ret  
       
Return Description
  HRESULT returns the new string


CreateKey Function

Creates a new key in the registry

Protected afx_msg void CreateKey(LPCTSTR )

Type Name Description
  LPCTSTR keyname the name of the key to add
       
Return Description
  afx_msg void  


DeleteKey Function

Deletes the key specified in the parameter

Protected afx_msg void DeleteKey(LPCTSTR )

Type Name Description
  LPCTSTR keyname  
       
Return Description
  afx_msg void  


GetNumericValue Function

Retrieves the numeric value specified by the parameters

Protected afx_msg long GetNumericValue(LPCTSTR , LPCTSTR )

Type Name Description
  LPCTSTR subkey the name of the subkey
  LPCTSTR valueName the name of the value
       
Return Description
  afx_msg long returns a long containing the numeric value


SetNumericValue Function

Set a value for the specified key - value pair

Protected afx_msg BOOL SetNumericValue(LPCTSTR , LPCTSTR , long )

Type Name Description
  LPCTSTR subkey the name of the subkey
  LPCTSTR valueName the name of the value
  long value the value to set
       
Return Description
  afx_msg BOOL returns true or false depending if its successful or not



DeleteValue Function

Used to delete a value

Protected afx_msg void DeleteValue(LPCTSTR , LPCTSTR )

Type Name Description
  LPCTSTR subkey the name of the subkey
  LPCTSTR valueName the name of the value to delete
       
Return Description
  afx_msg void returns the new string


CopyTreeToCurrentUser Function

Copies the tree specified by the parameter to the current user

Protected afx_msg BOOL CopyTreeToCurrentUser(LPCTSTR )

Type Name Description
  LPCTSTR subkey the tree to copy
       
Return Description
  afx_msg BOOL returns true or false if it was successful or not


KeyExists Function

Checks if the key given in the parameter exists or not

Protected afx_msg BOOL KeyExists(LPCTSTR )

Type Name Description
  LPCTSTR keyName the name of the key
       
Return Description
  afx_msg BOOL returns true or false if the key exists



ProfileIsUnlocked Function

Tests if the user profile is currently locked.

Protected afx_msg BOOL ProfileIsUnlocked()

Return Description
  afx_msg BOOL returns true or false whether it is locked or not


CacheTree Function

Cache the registry tree specified by the parameter

Protected afx_msg BOOL CacheTree(LPCTSTR )

Type Name Description
  LPCTSTR keyName key name of the tree to cache
       
Return Description
  afx_msg BOOL returns true or flase depending if it was successful or not



CommitCachedTree Function

Commits the cached tree to the registy

Protected afx_msg BOOL CommitCachedTree()

Return Description
  afx_msg BOOL returns true or flase depending if it was successful or not



GetStringValue Function

Retrieves the string value specified by the parameters

Protected afx_msg BSTR GetStringValue(LPCTSTR , LPCTSTR , short )

Type Name Description
  LPCTSTR subkey the name of the subkey
  LPCTSTR valueName the name of the value
  short decode specifies if it needs to be decoded or not
       
Return Description
  afx_msg BSTR returns a string containing the numeric value



SetStringValue Function

Set a value for the specified key - value pair
if valueName is empty, the "default value" of the key is set

Protected afx_msg BOOL SetStringValue(LPCTSTR , LPCTSTR , LPCTSTR , short )

Type Name Description
  LPCTSTR subkey the name of the subkey
  LPCTSTR valueName the name of the value
  LPCTSTR value the value to set
  short encode specify if it is encoded or not
       
Return Description
  afx_msg BOOL returns true or false depending if its successful or not


get_FavoritesFolder Function

the favorites folder

Public HRESULT get_FavoritesFolder(BSTR *)

Type Name Description
  BSTR * pVal  
       
Return Description
  HRESULT  


put_Hive Function

The current hive

Public HRESULT put_Hive(BSTR )

Type Name Description
  BSTR newVal  
       
Return Description
  HRESULT