random ai stuff
This commit is contained in:
39
telldus-core/service/TelldusWinService_win.h
Normal file
39
telldus-core/service/TelldusWinService_win.h
Normal file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
|
||||
//
|
||||
// Copyright: See COPYING file that comes with this distribution
|
||||
//
|
||||
//
|
||||
#ifndef TELLDUS_CORE_SERVICE_TELLDUSWINSERVICE_WIN_H_
|
||||
#define TELLDUS_CORE_SERVICE_TELLDUSWINSERVICE_WIN_H_
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
extern int g_argc;
|
||||
extern char **g_argv;
|
||||
|
||||
class TelldusMain;
|
||||
|
||||
#define serviceName TEXT("TelldusCore")
|
||||
|
||||
class TelldusWinService {
|
||||
public:
|
||||
TelldusWinService();
|
||||
~TelldusWinService();
|
||||
|
||||
static void WINAPI serviceMain( DWORD /*argc*/, TCHAR* /*argv*/[] );
|
||||
|
||||
protected:
|
||||
void stop();
|
||||
|
||||
DWORD WINAPI serviceControlHandler( DWORD controlCode, DWORD dwEventType, LPVOID lpEventData );
|
||||
DWORD WINAPI deviceNotificationHandler( DWORD controlCode, DWORD dwEventType, LPVOID lpEventData );
|
||||
|
||||
private:
|
||||
TelldusMain *tm;
|
||||
SERVICE_STATUS serviceStatus;
|
||||
SERVICE_STATUS_HANDLE serviceStatusHandle;
|
||||
|
||||
static DWORD WINAPI serviceControlHandler( DWORD controlCode, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext );
|
||||
};
|
||||
#endif // TELLDUS_CORE_SERVICE_TELLDUSWINSERVICE_WIN_H_
|
||||
Reference in New Issue
Block a user