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.

48 lines
1.2 KiB

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