forked from dolphinsmalltalk/DolphinVM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDLLModule.h
More file actions
27 lines (21 loc) · 795 Bytes
/
DLLModule.h
File metadata and controls
27 lines (21 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __DLLMODULE_H_
#define __DLLMODULE_H_
#define _ATL_ALL_WARNINGS
#include <atlbase.h>
#include <atlcom.h>
/////////////////////////////////////////////////////////////////////////////
// CDolphinModule
extern HRESULT UpdateRegistryClass(const CLSID& clsid, LPCTSTR lpszProgID,
LPCTSTR lpszVerIndProgID, UINT nDescID, DWORD dwFlags, BOOL bRegister);
template <class T>
class ATL_NO_VTABLE CDolphinDllModuleT : public CAtlDllModuleT<T>
{
public :
//HRESULT RegisterServer(BOOL bRegTypeLib = TRUE) throw();
HRESULT UpdateRegistryClass(const CLSID& clsid, LPCTSTR lpszProgID,
LPCTSTR lpszVerIndProgID, UINT nDescID, DWORD dwFlags, BOOL bRegister)
{
return ::UpdateRegistryClass(clsid, lpszProgID, lpszVerIndProgID, nDescID, dwFlags, bRegister);
}
};
#endif //__DLLMODULE_H_