00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _hyp_ker_reg_utility_h_
00028 #define _hyp_ker_reg_utility_h_
00029
00030 #ifndef hyp_KERNEL_CORE_INSIDE
00031 #error Inclusion not allowed (include hyp.kernel.core.h instead)
00032 #endif
00033
00034
00041 class IImplRegistry
00042 {
00043 public:
00049 virtual void SetKey(const std::string& ParentKey,const std::string& Key) =0;
00050
00056 virtual void DeleteKey(const std::string& ParentKey, const std::string& Key) =0;
00057
00065 virtual void SetValueNameAndValue(const std::string& ParentKey,
00066 const std::string& Key,
00067 const std::string& ValueName,
00068 const std::string& Value) =0;
00069
00076 virtual std::string GetValueFromValueName(const std::string& ParentKey,
00077 const std::string& Key,
00078 const std::string& ValueName) =0;
00079
00080
00081
00082
00083
00084
00085
00086 };
00087
00088
00089
00090 class hyp_ker_DLL CRegistryUtility
00091 {
00092 IImplRegistry* m_pImplRegistry;
00093
00094 public:
00098 enum ERegistryType {
00099 reg_win32,
00100 reg_std
00101 };
00102
00103 #ifdef hyp_USE_REGISTRY
00104 CRegistryUtility(ERegistryType =reg_win32);
00105 #else
00106 CRegistryUtility(ERegistryType =reg_std);
00107 #endif
00108
00109 ~CRegistryUtility();
00110
00111 void RegisterServer(const std::string&, const CGuid&, const std::string&);
00112 void UnregisterServer(const CGuid&);
00113 std::string GetPathInprocessServer(const CGuid&);
00114
00115 CGuid GetCLSIDFromProgID(const std::string&);
00116 std::string GetProgIDFromCLSID(const CGuid&);
00117 };
00118
00119
00120 #endif