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.

58 lines
1.2 KiB

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