#include <UT_NTService.h>
Public Member Functions | |
| UT_NTService (const char *serviceName) | |
| virtual | ~UT_NTService () |
| virtual const char * | getAboutString () |
| virtual const char * | getVersionString () |
| virtual const char * | getInstalledString () |
| const char * | getServiceExeName () |
| const char * | getServiceUserName () |
| UT_Bool | isInstalled () |
| int | isRunning () |
| UT_Bool | logEvent (WORD type, DWORD id, const char *string1=UT_NULL, const char *string2=UT_NULL, const char *string3=UT_NULL) |
| UT_Bool | startService () |
| void | setStatus (DWORD state) |
| UT_Bool | initialize () |
| virtual void | run () |
| virtual UT_Bool | onInit () |
| virtual void | onStop () |
| virtual void | onInterrogate () |
| virtual void | onPause () |
| virtual void | onContinue () |
| virtual void | onShutdown () |
| virtual void | onUserLogout () |
| virtual UT_Bool | onUserControl (DWORD opcode) |
| void | debugMsg (const char *format,...) |
| void | userMsg (const char *format,...) |
| void | userDisplayLastError () |
| void | userDisplayAdminError () |
| HINSTANCE | getHInstance () |
Static Public Member Functions | |
| static void WINAPI | serviceMain (DWORD argc, LPTSTR *argv) |
| static void WINAPI | handler (DWORD opcode) |
Public Attributes | |
| char | myServiceName [64] |
| SERVICE_STATUS_HANDLE | myServiceStatus |
| SERVICE_STATUS | myStatus |
| UT_Bool | myIsRunning |
Static Public Attributes | |
| static UT_NTService * | myThis |
Protected Member Functions | |
| void | userMessageBox (LPCSTR msg, LPCSTR title, UINT type) |
Static Protected Member Functions | |
| static DWORD WINAPI | msgBoxMain (LPVOID msgParam) |
| static BOOL WINAPI | logoutHandler (DWORD ctrlType) |
| static BOOL CALLBACK | EnumCloseProc (HWND hwnd, LPARAM lParam) |
Protected Attributes | |
| HINSTANCE | myHInstance |
| HANDLE | myEventSource |
Definition at line 40 of file UT_NTService.h.
| UT_NTService::UT_NTService | ( | const char * | serviceName | ) | [explicit] |
| virtual UT_NTService::~UT_NTService | ( | ) | [virtual] |
| void UT_NTService::debugMsg | ( | const char * | format, | |
| ... | ||||
| ) |
| static BOOL CALLBACK UT_NTService::EnumCloseProc | ( | HWND | hwnd, | |
| LPARAM | lParam | |||
| ) | [static, protected] |
| virtual const char* UT_NTService::getAboutString | ( | ) | [virtual] |
| HINSTANCE UT_NTService::getHInstance | ( | ) | [inline] |
Definition at line 87 of file UT_NTService.h.
| virtual const char* UT_NTService::getInstalledString | ( | ) | [virtual] |
| const char* UT_NTService::getServiceExeName | ( | ) |
| const char* UT_NTService::getServiceUserName | ( | ) |
| virtual const char* UT_NTService::getVersionString | ( | ) | [virtual] |
| static void WINAPI UT_NTService::handler | ( | DWORD | opcode | ) | [static] |
| UT_Bool UT_NTService::initialize | ( | ) |
| UT_Bool UT_NTService::isInstalled | ( | ) |
| int UT_NTService::isRunning | ( | ) |
| UT_Bool UT_NTService::logEvent | ( | WORD | type, | |
| DWORD | id, | |||
| const char * | string1 = UT_NULL, |
|||
| const char * | string2 = UT_NULL, |
|||
| const char * | string3 = UT_NULL | |||
| ) |
| static BOOL WINAPI UT_NTService::logoutHandler | ( | DWORD | ctrlType | ) | [static, protected] |
| static DWORD WINAPI UT_NTService::msgBoxMain | ( | LPVOID | msgParam | ) | [static, protected] |
| virtual void UT_NTService::onContinue | ( | ) | [virtual] |
| virtual UT_Bool UT_NTService::onInit | ( | ) | [virtual] |
| virtual void UT_NTService::onInterrogate | ( | ) | [virtual] |
| virtual void UT_NTService::onPause | ( | ) | [virtual] |
| virtual void UT_NTService::onShutdown | ( | ) | [virtual] |
| virtual void UT_NTService::onStop | ( | ) | [virtual] |
| virtual UT_Bool UT_NTService::onUserControl | ( | DWORD | opcode | ) | [virtual] |
| virtual void UT_NTService::onUserLogout | ( | ) | [virtual] |
| virtual void UT_NTService::run | ( | ) | [virtual] |
| static void WINAPI UT_NTService::serviceMain | ( | DWORD | argc, | |
| LPTSTR * | argv | |||
| ) | [static] |
| void UT_NTService::setStatus | ( | DWORD | state | ) |
| UT_Bool UT_NTService::startService | ( | ) |
| void UT_NTService::userDisplayAdminError | ( | ) |
| void UT_NTService::userDisplayLastError | ( | ) |
| void UT_NTService::userMessageBox | ( | LPCSTR | msg, | |
| LPCSTR | title, | |||
| UINT | type | |||
| ) | [protected] |
| void UT_NTService::userMsg | ( | const char * | format, | |
| ... | ||||
| ) |
HANDLE UT_NTService::myEventSource [protected] |
Definition at line 106 of file UT_NTService.h.
HINSTANCE UT_NTService::myHInstance [protected] |
Definition at line 105 of file UT_NTService.h.
Definition at line 96 of file UT_NTService.h.
| char UT_NTService::myServiceName[64] |
Definition at line 93 of file UT_NTService.h.
| SERVICE_STATUS_HANDLE UT_NTService::myServiceStatus |
Definition at line 94 of file UT_NTService.h.
| SERVICE_STATUS UT_NTService::myStatus |
Definition at line 95 of file UT_NTService.h.
UT_NTService* UT_NTService::myThis [static] |
Definition at line 87 of file UT_NTService.h.
1.5.9