// wrapper for dlldata.c #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL #define REGISTER_PROXY_DLL //DllRegisterServer, etc. #pragma comment(lib, "rpcndr.lib") #pragma comment(lib, "rpcns4.lib") #pragma comment(lib, "rpcrt4.lib") #define DllMain PrxDllMain #define DllRegisterServer PrxDllRegisterServer #define DllUnregisterServer PrxDllUnregisterServer #define DllGetClassObject PrxDllGetClassObject #define DllCanUnloadNow PrxDllCanUnloadNow #ifdef UNIX #include "include/dlldata.c" #include "include/imgutil_p.c" #else #include "include\dlldata.c" #include "include\imgutil_p.c" #endif #ifdef _NOPROXY //no midl generated dlldata.c #define STRICT 1 #include BOOL WINAPI PrxDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) {return TRUE;} STDAPI PrxDllCanUnloadNow(void){return S_OK;} STDAPI PrxDllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) {return CLASS_E_CLASSNOTAVAILABLE;} STDAPI PrxDllRegisterServer(void){return S_OK;} STDAPI PrxDllUnregisterServer(void){return S_OK;} #endif //!PROXY_DELEGATION #else // We have to put something here to keep the compiler from bitching static int g_foo; #endif //_MERGE_PROXYSTUB