Leaked source code of windows server 2003
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.

46 lines
1.2 KiB

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