00001 #ifndef CLNTSERVICE_H 00002 #define CLNTSERVICE_H 00003 00004 #include "winservice.h" 00005 00006 class TClntService; 00007 extern TClntService StaticService; 00008 00009 class TClntService : public TWinService 00010 { 00011 public: 00012 TClntService(void); 00013 void Run(); 00014 void OnStop(); 00015 void OnShutdown(); 00016 ~TClntService(void); 00017 EServiceState ParseStandardArgs(int argc, char* argv[]); 00018 void setState(EServiceState status); 00019 static TClntService * getHandle() { return &StaticService; } 00020 00021 private: 00022 EServiceState status; 00023 00024 }; 00025 00026 #endif 00027