Registry.h
资源名称:COM 原理与应用.rar [点击查看]
上传用户:biuytresa
上传日期:2007-12-07
资源大小:721k
文件大小:1k
源码类别:
DNA
开发平台:
Visual C++
- #ifndef __Registry_H__
- #define __Registry_H__
- //
- // Registry.h
- // - Helper functions registering and unregistering a component.
- //
- // - These helper functions were borrowed and modifed from
- // Dale Rogerson's book Inside COM.
- // This function will register a component in the Registry.
- // DllRegisterServer function should call this function.
- HRESULT RegisterServer(const CLSID& clsid,
- const char *szFileName,
- const char* szProgID,
- const char* szDescription,
- const char* szVerIndProgID) ;
- // This function will unregister a component. Components
- // DllUnregisterServer function should call this function.
- HRESULT UnregisterServer(const CLSID& clsid,
- const char* szProgID,
- const char* szVerIndProgID) ;
- #endif