Source code of Windows XP (NT5)
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.

88 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. appladmin.h
  5. Abstract:
  6. This file contains definition of:
  7. CAppPoolMethod, CWebAppMethod
  8. Author:
  9. ???
  10. Revision History:
  11. Mohit Srivastava 21-Jan-01
  12. --*/
  13. #ifndef _appladmin_h_
  14. #define _appladmin_h_
  15. #include <atlbase.h>
  16. class CAppPoolMethod
  17. {
  18. public:
  19. CAppPoolMethod();
  20. ~CAppPoolMethod();
  21. void GetCurrentMode(
  22. VARIANT* io_pvtServerMode);
  23. void Start(
  24. LPCWSTR i_wszMbPath);
  25. void Stop(
  26. LPCWSTR i_wszMbPath);
  27. void RecycleAppPool(
  28. LPCWSTR i_wszMbPath);
  29. void EnumAppsInPool(
  30. LPCWSTR i_wszMbPath,
  31. VARIANT* io_pvtApps);
  32. void DeleteAppPool(
  33. LPCWSTR i_wszMbPath);
  34. private:
  35. void GetPtrToAppPool(
  36. LPCWSTR i_wszMbPath,
  37. LPCWSTR* o_pwszAppPool);
  38. void SetState(
  39. LPCWSTR i_wszMbPath,
  40. DWORD dwState);
  41. CComPtr<IIISApplicationAdmin> m_spAppAdmin;
  42. };
  43. class CWebAppMethod
  44. {
  45. private:
  46. IIISApplicationAdmin* m_pAppAdmin;
  47. IWamAdmin2* m_pWamAdmin2;
  48. public:
  49. CWebAppMethod();
  50. ~CWebAppMethod();
  51. HRESULT AppCreate(LPCWSTR, bool, LPCWSTR, bool);
  52. HRESULT AppCreate2(LPCWSTR, long, LPCWSTR, bool);
  53. HRESULT AppDelete(LPCWSTR, bool);
  54. HRESULT AppUnLoad(LPCWSTR, bool);
  55. HRESULT AppDisable(LPCWSTR, bool);
  56. HRESULT AppEnable(LPCWSTR, bool);
  57. HRESULT AppGetStatus(LPCWSTR, DWORD*);
  58. HRESULT AspAppRestart(LPCWSTR);
  59. };
  60. #endif // _appladmin_h