GME
13
|
00001 // wrapper for dlldata.c 00002 00003 #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL 00004 00005 #define REGISTER_PROXY_DLL //DllRegisterServer, etc. 00006 00007 #define USE_STUBLESS_PROXY //defined only with MIDL switch /Oicf 00008 00009 #pragma comment(lib, "rpcndr.lib") 00010 #pragma comment(lib, "rpcns4.lib") 00011 #pragma comment(lib, "rpcrt4.lib") 00012 00013 #define DllMain PrxDllMain 00014 #define DllRegisterServer PrxDllRegisterServer 00015 #define DllUnregisterServer PrxDllUnregisterServer 00016 #define DllGetClassObject PrxDllGetClassObject 00017 #define DllCanUnloadNow PrxDllCanUnloadNow 00018 00019 #include "dlldata.c" 00020 #include "Core_p.c" 00021 00022 #ifdef _NOPROXY //no midl generated dlldata.c 00023 00024 #define STRICT 1 00025 #include <ole2.h> 00026 00027 BOOL WINAPI PrxDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) 00028 {return TRUE;} 00029 00030 STDAPI PrxDllCanUnloadNow(void){return S_OK;} 00031 00032 STDAPI PrxDllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) 00033 {return CLASS_E_CLASSNOTAVAILABLE;} 00034 00035 STDAPI PrxDllRegisterServer(void){return S_OK;} 00036 00037 STDAPI PrxDllUnregisterServer(void){return S_OK;} 00038 00039 #endif //!PROXY_DELEGATION 00040 00041 #endif //_MERGE_PROXYSTUB