Leaked source code of windows server 2003
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.

47 lines
1.2 KiB

  1. // wrapper for dlldata.c
  2. #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL
  3. #define REGISTER_PROXY_DLL //DllRegisterServer, etc.
  4. #pragma comment(lib, "rpcndr.lib")
  5. #pragma comment(lib, "rpcns4.lib")
  6. #pragma comment(lib, "rpcrt4.lib")
  7. #define DllMain PrxDllMain
  8. #define DllRegisterServer PrxDllRegisterServer
  9. #define DllUnregisterServer PrxDllUnregisterServer
  10. #define DllGetClassObject PrxDllGetClassObject
  11. #define DllCanUnloadNow PrxDllCanUnloadNow
  12. #ifdef UNIX
  13. #include "include/dlldata.c"
  14. #include "include/imgutil_p.c"
  15. #else
  16. #include "include\dlldata.c"
  17. #include "include\imgutil_p.c"
  18. #endif
  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. #else
  31. // We have to put something here to keep the compiler from bitching
  32. static int g_foo;
  33. #endif //_MERGE_PROXYSTUB