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.

54 lines
1015 B

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. thread_pool.cxx
  5. Abstract:
  6. Globals
  7. Author:
  8. Taylor Weiss (TaylorW) 12-Jan-2000
  9. Jeffrey Wall (jeffwall) April 2001
  10. --*/
  11. #include <dbgutil.h>
  12. #include <thread_pool.h>
  13. /**********************************************************************
  14. Globals
  15. **********************************************************************/
  16. DECLARE_DEBUG_PRINTS_OBJECT();
  17. DECLARE_DEBUG_VARIABLE();
  18. DECLARE_PLATFORM_TYPE();
  19. BOOL WINAPI DllMain(
  20. HINSTANCE hinstDLL, // handle to the DLL module
  21. DWORD dwReason, // reason for calling function
  22. LPVOID lpvReserved // reserved
  23. )
  24. {
  25. if (dwReason == DLL_PROCESS_ATTACH)
  26. {
  27. g_hmodW3TPDLL = hinstDLL;
  28. DisableThreadLibraryCalls( hinstDLL );
  29. CREATE_DEBUG_PRINT_OBJECT("w3tp");
  30. }
  31. else if (dwReason == DLL_PROCESS_DETACH)
  32. {
  33. DELETE_DEBUG_PRINT_OBJECT();
  34. }
  35. return TRUE;
  36. }