ClassRegistryEntry Class Reference

Represents an entry in CLSID section of the registry, consisting of a key, subkeys, and some values. More...

#include <registry.h>

Inheritance diagram for ClassRegistryEntry:

RegistryEntry WizOpRegistryEntry List of all members.

Public Member Functions

BOOL InitFromCLSID (const CLSID &ClassID)
 Initializes this RegistryEntry so it represents an entry for the given CLSID. Allows us to retrieve values from the CLSID's subkeys.

Static Private Attributes

static const String_8 s_CLSIDString = TEXT("CLSID\\")

Detailed Description

Represents an entry in CLSID section of the registry, consisting of a key, subkeys, and some values.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97

Definition at line 306 of file registry.h.


Member Function Documentation

BOOL ClassRegistryEntry::InitFromCLSID const CLSID ClassID  ) 
 

Initializes this RegistryEntry so it represents an entry for the given CLSID. Allows us to retrieve values from the CLSID's subkeys.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Parameters:
ClassID,: The CLSID that is this RegistryEntry [INPUTS]
Returns:
TRUE if it worked, FALSE if not
Notes: Only works for the local registry no matter what

Definition at line 1479 of file registry.cpp.

01480 {
01481     BOOL Ok = TRUE;         // return this
01482 
01483     String_64 ClassIDString;
01484     Ok = ConvertCLSIDToString(ClassID, &ClassIDString);
01485 
01486     if (Ok)
01487     {
01488         String_64 KeyString = s_CLSIDString;
01489         KeyString += ClassIDString;
01490         m_hKey = OpenRegKey(HKEY_CLASSES_ROOT, KeyString);
01491         Ok = (m_hKey != NULL);
01492     }
01493 
01494     return Ok;
01495 }


Member Data Documentation

const String_8 ClassRegistryEntry::s_CLSIDString = TEXT("CLSID\\") [static, private]
 

Definition at line 312 of file registry.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:34 2007 for Camelot by  doxygen 1.4.4