warntservicesvc.h

来自「ftpserver very good sample」· C头文件 代码 · 共 94 行

H
94
字号
/** */#ifndef WarNtServiceSvc_h#define WarNtServiceSvc_h/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_NT_SERVICE_MGR_H#   include "WarNtServiceMgr.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarNtServiceSvc :public WarNtServiceMgr{public:    // LIFECYCLE        /**    * Default constructor.    */    WarNtServiceSvc();        /**    * Destructor.    */    virtual ~WarNtServiceSvc();        // OPERATORS    operator SC_HANDLE ()     {        return mhSvc;    }    // OPERATIONS        void Create(war_ccsysstr_t machineName,        DWORD dwMgrAccessType,        war_ccsysstr_t serviceName,        DWORD dwSvcAccessType,        bool doLock = false)        throw(WarException);    void StartService() throw (WarException);    void PauseService() throw (WarException);    void StopService() throw (WarException);    // CALLBACK    // ACCESS    // INQUIRY    protected:    SC_HANDLE mhSvc;private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WarNtServiceSvc_h_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?