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.

34 lines
761 B

  1. #include "stdafx.h"
  2. #include "resource.h"
  3. #include <initguid.h>
  4. #include "common.h"
  5. #include "iisdebug.h"
  6. CComModule _Module;
  7. BEGIN_OBJECT_MAP(ObjectMap)
  8. END_OBJECT_MAP()
  9. /////////////////////////////////////////////////////////////////////////////
  10. // DLL Entry Point
  11. extern "C"
  12. BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
  13. {
  14. lpReserved;
  15. if (dwReason == DLL_PROCESS_ATTACH)
  16. {
  17. _Module.Init(ObjectMap, hInstance);
  18. DisableThreadLibraryCalls(hInstance);
  19. InitErrorFunctionality();
  20. GetOutputDebugFlag();
  21. }
  22. else if (dwReason == DLL_PROCESS_DETACH)
  23. {
  24. TerminateErrorFunctionality();
  25. _Module.Term();
  26. }
  27. return TRUE; // ok
  28. }