Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. // wrapper for dlldata.c
  2. #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL
  3. #define REGISTER_PROXY_DLL //DllRegisterServer, etc.
  4. #define _WIN32_WINNT 0x0400 //for WinNT 4.0 or Win95 with DCOM
  5. #define USE_STUBLESS_PROXY //defined only with MIDL switch /Oicf
  6. #pragma comment(lib, "rpcndr.lib")
  7. #pragma comment(lib, "rpcns4.lib")
  8. #pragma comment(lib, "rpcrt4.lib")
  9. #define DllMain PrxDllMain
  10. #define DllRegisterServer PrxDllRegisterServer
  11. #define DllUnregisterServer PrxDllUnregisterServer
  12. #define DllGetClassObject PrxDllGetClassObject
  13. #define DllCanUnloadNow PrxDllCanUnloadNow
  14. #include "dlldata.c"
  15. //#include "WorkerObjects_p.c"
  16. #include "WorkObj_p.c"
  17. #ifdef _NOPROXY //no midl generated dlldata.c
  18. #define STRICT 1
  19. #include <ole2.h>
  20. BOOL WINAPI PrxDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
  21. {return TRUE;}
  22. STDAPI PrxDllCanUnloadNow(void){return S_OK;}
  23. STDAPI PrxDllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
  24. {return CLASS_E_CLASSNOTAVAILABLE;}
  25. STDAPI PrxDllRegisterServer(void){return S_OK;}
  26. STDAPI PrxDllUnregisterServer(void){return S_OK;}
  27. #endif //!PROXY_DELEGATION
  28. #endif //_MERGE_PROXYSTUB