00001 /* 00002 * Dibbler - a portable DHCPv6 00003 * 00004 * authors: Tomasz Mrugalski <thomson@klub.com.pl> 00005 * Marek Senderski <msend@o2.pl> 00006 * win2k version by <sob@hisoftware.cz> 00007 * 00008 * $Id: RelService.h,v 1.1 2005/07/23 14:33:22 thomson Exp $ 00009 * 00010 * Released under GNU GPL v2 licence 00011 * 00012 */ 00013 00014 class TRelService; 00015 00016 #ifndef RELSERVICE_H 00017 #define RELSERVICE_H 00018 00019 #include <windows.h> 00020 #include <stdio.h> 00021 #include "winservice.h" 00022 #include "DHCPRelay.h" 00023 extern TRelService StaticService; 00024 00025 class TRelService : public TWinService 00026 { 00027 public: 00028 TRelService(void); 00029 void Run(); 00030 void OnStop(); 00031 bool CheckAndInstall(); 00032 EServiceState ParseStandardArgs(int argc,char* argv[]); 00033 void setState(EServiceState status); 00034 static TRelService * getHandle() { return &StaticService; } 00035 ~TRelService(void); 00036 private: 00037 EServiceState status; 00038 }; 00039 00040 #endif 00041 00042 /* 00043 * $Log: RelService.h,v $ 00044 * Revision 1.1 2005/07/23 14:33:22 thomson 00045 * Port for win2k/NT added. 00046 * 00047 */ 00048