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.

66 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. #ifdef _NOPROXY //no midl generated dlldata.c
  15. #define STRICT 1
  16. #include <ole2.h>
  17. BOOL
  18. WINAPI
  19. PrxDllMain (
  20. HINSTANCE hInstance,
  21. DWORD dwReason,
  22. LPVOID lpReserved)
  23. {
  24. return TRUE;
  25. }
  26. STDAPI
  27. PrxDllCanUnloadNow ()
  28. {
  29. return S_OK;
  30. }
  31. STDAPI
  32. PrxDllGetClassObject (
  33. REFCLSID rclsid,
  34. REFIID riid,
  35. LPVOID* ppv)
  36. {
  37. return CLASS_E_CLASSNOTAVAILABLE;
  38. }
  39. STDAPI
  40. PrxDllRegisterServer ()
  41. {
  42. return S_OK;
  43. }
  44. STDAPI
  45. PrxDllUnregisterServer ()
  46. {
  47. return S_OK;
  48. }
  49. #endif //!PROXY_DELEGATION
  50. #endif //_MERGE_PROXYSTUB