00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef Activator_NT_Service_H
00016 #define Activator_NT_Service_H
00017
00018 #include "ace/config-all.h"
00019
00020 #if defined (ACE_WIN32) && !defined (ACE_LACKS_WIN32_SERVICES)
00021
00022 #include "ace/NT_Service.h"
00023 #include "ace/Singleton.h"
00024 #include "ace/Synch.h"
00025 #include "tao/orbconf.h"
00026
00027 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00028 # pragma once
00029 #endif
00030
00031 static const char * IMR_ACTIVATOR_SERVICE_NAME = "TAOImRActivator";
00032 static const char * IMR_ACTIVATOR_DISPLAY_NAME = "TAO Implementation Repository Activator";
00033 static const char * IMR_ACTIVATOR_DESCRIPTION = "Implementation Repository Activator service for TAO";
00034
00035
00036
00037
00038
00039
00040 class Activator_NT_Service : public ACE_NT_Service
00041 {
00042 public:
00043 typedef TAO_SYNCH_RECURSIVE_MUTEX MUTEX;
00044
00045
00046
00047 virtual void handle_control (DWORD control_code);
00048
00049
00050
00051 virtual int handle_exception (ACE_HANDLE h);
00052
00053
00054 virtual int svc (void);
00055 private:
00056 friend class ACE_Singleton<Activator_NT_Service, MUTEX>;
00057 };
00058
00059 typedef ACE_Singleton<Activator_NT_Service, ACE_Mutex> SERVICE;
00060
00061 #endif
00062
00063 #endif