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.

81 lines
1.6 KiB

  1. #ifndef __W3SSL_CONFIG__
  2. #define __W3SSL_CONFIG__
  3. /*++
  4. Copyright (c) 1997 Microsoft Corporation
  5. Module Name:
  6. w3ssl_config.hxx
  7. Abstract:
  8. IIS Services IISADMIN Extension
  9. adjust HTTPFilter service imagepath based on IIS mode (old vs new)
  10. Author:
  11. Jaroslav Dunajsky (11/05/2001)
  12. --*/
  13. #define HTTPFILTER_SERVICE_NAME L"HTTPFilter"
  14. #define HTTPFILTER_SERVICE_IMAGEPATH_LSASS L"%SystemRoot%\\system32\\lsass.exe"
  15. #define HTTPFILTER_SERVICE_IMAGEPATH_INETINFO L"%SystemRoot%\\system32\\inetsrv\\inetinfo.exe"
  16. #define HTTPFILTER_SERVICE_IMAGEPATH_SVCHOST L"%SystemRoot%\\system32\\svchost.exe -k HTTPFilter"
  17. #define HTTPFILTER_PARAMETERS_KEY \
  18. L"System\\CurrentControlSet\\Services\\HTTPFilter\\Parameters"
  19. class W3SSL_CONFIG
  20. {
  21. public:
  22. static
  23. HRESULT
  24. AdjustHTTPFilterImagePath(
  25. VOID
  26. );
  27. static
  28. HRESULT
  29. StartAsyncAdjustHTTPFilterImagePath(
  30. VOID
  31. );
  32. static
  33. VOID
  34. Terminate(
  35. VOID
  36. );
  37. static
  38. HRESULT
  39. Initialize(
  40. VOID
  41. );
  42. private:
  43. static
  44. HRESULT
  45. SetHTTPFilterImagePath(
  46. BOOL fIIS5IsolationModeEnabled,
  47. BOOL fStartInSvchost
  48. );
  49. static
  50. DWORD
  51. ConfigChangeThread(
  52. LPVOID
  53. );
  54. static int s_fConfigTerminationRequested;
  55. static HANDLE s_hConfigChangeThread;
  56. static LPWSTR s_pszImagePathInetinfo;
  57. static LPWSTR s_pszImagePathLsass;
  58. static LPWSTR s_pszImagePathSvchost;
  59. };
  60. #endif