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