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.

49 lines
1.3 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (C) Microsoft Corporation, 1998 - 1999 All Rights Reserved.
  4. //
  5. // File: dlldatax.c
  6. // wrapper for dlldata.c
  7. //
  8. //=======================================================================
  9. #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL
  10. #define REGISTER_PROXY_DLL //DllRegisterServer, etc.
  11. #define _WIN32_WINNT 0x0400 //for WinNT 4.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 "WUpdInfo_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