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