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.

67 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 USE_STUBLESS_PROXY //defined only with MIDL switch /Oicf
  5. //#pragma comment(lib, "rpcndr.lib")
  6. //#pragma comment(lib, "rpcns4.lib")
  7. //#pragma comment(lib, "rpcrt4.lib")
  8. #define DllMain PrxDllMain
  9. #define DllRegisterServer PrxDllRegisterServer
  10. #define DllUnregisterServer PrxDllUnregisterServer
  11. #define DllGetClassObject PrxDllGetClassObject
  12. #define DllCanUnloadNow PrxDllCanUnloadNow
  13. #include "dlldata.c"
  14. #include "hostp_p.c"
  15. #ifdef _NOPROXY //no midl generated dlldata.c
  16. #define STRICT 1
  17. #include <ole2.h>
  18. BOOL
  19. WINAPI
  20. PrxDllMain (
  21. HINSTANCE hInstance,
  22. DWORD dwReason,
  23. LPVOID lpReserved)
  24. {
  25. return TRUE;
  26. }
  27. STDAPI
  28. PrxDllCanUnloadNow ()
  29. {
  30. return S_OK;
  31. }
  32. STDAPI
  33. PrxDllGetClassObject (
  34. REFCLSID rclsid,
  35. REFIID riid,
  36. LPVOID* ppv)
  37. {
  38. return CLASS_E_CLASSNOTAVAILABLE;
  39. }
  40. STDAPI
  41. PrxDllRegisterServer ()
  42. {
  43. return S_OK;
  44. }
  45. STDAPI
  46. PrxDllUnregisterServer ()
  47. {
  48. return S_OK;
  49. }
  50. #endif //!PROXY_DELEGATION
  51. #endif //_MERGE_PROXYSTUB