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.

112 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name :
  4. gsvcinfo.hxx
  5. Abstract:
  6. This header file declares the Internet Gateway service info object.
  7. It is called IGSVC_INFO and is derived from ISVC_INFO object.
  8. Author:
  9. Murali R. Krishnan ( MuraliK ) 28-July-1995
  10. Environment:
  11. Win32 -- User Mode
  12. Project:
  13. Internet Services Common DLL
  14. Revision History:
  15. --*/
  16. # ifndef _IGSVC_INFO_HXX_
  17. # define _IGSVC_INFO_HXX_
  18. /************************************************************
  19. * Include Headers
  20. ************************************************************/
  21. # include "isvcinfo.hxx"
  22. /************************************************************
  23. * Type Definitions
  24. ************************************************************/
  25. class IGSVC_INFO : public ISVC_INFO {
  26. public:
  27. dllexp
  28. IGSVC_INFO(
  29. IN DWORD dwServiceId,
  30. IN LPCTSTR lpszServiceName,
  31. IN CHAR * lpszModuleName,
  32. IN CHAR * lpszRegParamKey
  33. );
  34. dllexp
  35. ~IGSVC_INFO(VOID);
  36. dllexp
  37. virtual BOOL IsValid(VOID) const
  38. { return ( m_fValid && ISVC_INFO::IsValid()); }
  39. dllexp
  40. virtual DWORD QueryCurrentServiceState( VOID) const
  41. { return ( m_svcStatus.dwCurrentState); }
  42. dllexp
  43. VOID SetCurrentServiceState( DWORD dwCurrentState )
  44. { m_svcStatus.dwCurrentState = dwCurrentState; }
  45. dllexp
  46. virtual BOOL SetConfiguration( IN PVOID pConfig);
  47. dllexp
  48. virtual BOOL GetConfiguration( IN OUT PVOID pConfig);
  49. /*
  50. If there are any parameters specific for IGSVC_INFO define and
  51. use the following functions.
  52. Remember to call one of the functions
  53. ISVC_INFO::ReadParamsFromRegistry() or
  54. ISVC_INFO::WriteParamsToRegistry()
  55. for sure.
  56. virtual BOOL ReadParamsFromRegistry(IN FIELD_CONTROL fc);
  57. */
  58. #if DBG
  59. dllexp
  60. virtual VOID Print(VOID) const;
  61. #else
  62. dllexp
  63. virtual VOID Print(VOID) const
  64. { ; }
  65. #endif // !DBG
  66. private:
  67. BOOL m_fValid;
  68. SERVICE_STATUS m_svcStatus;
  69. // Define other data as need be ....
  70. }; // class IGSVC_INFO
  71. typedef IGSVC_INFO FAR * PIGSVC_INFO;
  72. # endif // _IGSVC_INFO_HXX_
  73. /************************ End of File ***********************/
  74.