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.

77 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. dllmain.cxx
  5. Abstract:
  6. Contains the standard definitions for a DLL
  7. Author:
  8. jaroslad 11/01/01
  9. Project:
  10. W3SSL
  11. --*/
  12. /************************************************************
  13. * Include Headers
  14. ************************************************************/
  15. #include "precomp.hxx"
  16. #define HTTPFILTER_KEY \
  17. "System\\CurrentControlSet\\Services\\HTTPFilter"
  18. #define HTTPFILTER_PARAMETERS_KEY \
  19. HTTPFILTER_KEY "\\Parameters"
  20. DECLARE_DEBUG_PRINTS_OBJECT();
  21. DECLARE_DEBUG_VARIABLE();
  22. DECLARE_PLATFORM_TYPE();
  23. const CHAR g_pszW3SSLRegLocation[] =
  24. HTTPFILTER_PARAMETERS_KEY ;
  25. /************************************************************
  26. * DLL Entry Point
  27. ************************************************************/
  28. extern "C"
  29. BOOL WINAPI
  30. DllMain(
  31. HINSTANCE hInstance,
  32. DWORD dwReason,
  33. LPVOID /*lpvReserved*/)
  34. {
  35. if (dwReason == DLL_PROCESS_ATTACH)
  36. {
  37. DisableThreadLibraryCalls(hInstance);
  38. CREATE_DEBUG_PRINT_OBJECT("w3ssl");
  39. if (!VALID_DEBUG_PRINT_OBJECT())
  40. {
  41. return FALSE;
  42. }
  43. LOAD_DEBUG_FLAGS_FROM_REG_STR( g_pszW3SSLRegLocation, DEBUG_ERROR );
  44. INITIALIZE_PLATFORM_TYPE();
  45. }
  46. else if (dwReason == DLL_PROCESS_DETACH)
  47. {
  48. if ( VALID_DEBUG_PRINT_OBJECT() )
  49. {
  50. DELETE_DEBUG_PRINT_OBJECT();
  51. }
  52. }
  53. return TRUE;
  54. }