registry.h
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
- // Registry.h
- // This function will register a component.
- HRESULT RegisterServer(const char* szModuleName, REFCLSID clsid, const char* szFriendlyName, const char* szVerIndProgID, const char* szProgID, const char* szThreadingModel);
- // This function will unregister a component.
- HRESULT UnregisterServer(REFCLSID clsid, const char* szVerIndProgID, const char* szProgID);
- struct REG_DATA
- {
- const char* pszKey;
- const char* pszValue;
- const char* pszData;
- };
- // These functions will register and unregister a component based on data from a global array.
- HRESULT UnregisterServerEx(const REG_DATA regData[]);
- HRESULT RegisterServerEx(const REG_DATA regData[], const char* szModuleName);