Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SrvService.h

Go to the documentation of this file.
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: SrvService.h,v 1.1 2005/07/23 14:33:22 thomson Exp $
00009  *                                                                           
00010  * Released under GNU GPL v2 licence                                
00011  *
00012  */
00013 
00014 #ifndef SRVSERVICE_H
00015 #define SRVSERVICE_H
00016 
00017 #include <windows.h>
00018 #include <stdio.h>
00019 #include "winservice.h"
00020 #include "DHCPServer.h"
00021 
00022 class TSrvService;
00023 extern TSrvService StaticService;
00024 
00025 class TSrvService : public TWinService
00026 {
00027 public:
00028         TSrvService(void);
00029         void Run();
00030     void OnStop();
00031     bool CheckAndInstall();
00032     EServiceState ParseStandardArgs(int argc,char* argv[]);
00033         void setState(EServiceState status);
00034     static TSrvService * getHandle() { return &StaticService; }
00035         ~TSrvService(void);
00036 private:
00037         EServiceState status;
00038 };
00039 
00040 #endif
00041 
00042 /*
00043  * $Log: SrvService.h,v $
00044  * Revision 1.1  2005/07/23 14:33:22  thomson
00045  * Port for win2k/NT added.
00046  *
00047  */
00048 

Generated on Sun Aug 7 22:47:16 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1