Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CRegistryUtility Class Reference

List of all members.

Public Types

enum  ERegistryType { reg_win32, reg_std }

Public Methods

 CRegistryUtility (ERegistryType=reg_std)
 ~CRegistryUtility ()
void RegisterServer (const std::string &, const CGuid &, const std::string &)
void UnregisterServer (const CGuid &)
std::string GetPathInprocessServer (const CGuid &)
CGuid GetCLSIDFromProgID (const std::string &)
std::string GetProgIDFromCLSID (const CGuid &)

Detailed Description

Utility class which permits to register easily the Hyperion Components. This class could use several registries which implement the IImplRegistry. If the macro hyp_USE_REGISTRY...


Member Enumeration Documentation

enum CRegistryUtility::ERegistryType
 

Enums the different registry systems which are possible to use.

Enumeration values:
reg_win32   Uses the Win32 registry.
reg_std   Uses the standard registry.


Constructor & Destructor Documentation

CRegistryUtility::CRegistryUtility CRegistryUtility::ERegistryType   Style = reg_std
 

Indicates which registry system to use. If hyp_USE_REGISTRY is defined, the class uses the Win32 registry by default.


Member Function Documentation

CGuid CRegistryUtility::GetCLSIDFromProgID const std::string &   FriendlyName
 

Gets the CLSID of a component designated by a friendly name.

Parameters:
FriendlyName   Frindly name of the component.
Returns:
Founded CLSID of the component. See GetProgIDFromCLSID

std::string CRegistryUtility::GetPathInprocessServer const CGuid &   CLSID
 

Get the full path of the server which is located the component.

Parameters:
CLSID   CLSID of the component.
Returns:
Path of the server.

std::string CRegistryUtility::GetProgIDFromCLSID const CGuid &   GUID
 

Gets the friendly name of a component designated by a CLSID.

Parameters:
GUID   GUID of the component.
Returns:
Founded friendly name of the component. See GetCLSIDFromProgID

void CRegistryUtility::RegisterServer const std::string &   DllName,
const CGuid &   CLSID,
const std::string &   FriendlyName
 

Registers the component.

Todo:
Change the name of the functions (remove server)
Parameters:
DllName   Full path of the Dll where the component is registered.
CLSID   CLSID of the component.
FriendlyName   Friendly name of the component.

void CRegistryUtility::UnregisterServer const CGuid &   CLSID
 

Unregisters the component.

Parameters:
CLSID   CLSID of the component.


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.