#pragma once
|
#include "NTService.h"
|
#include "ntserv_msg.h"
|
#include "OIMOBOXWatchDirDlg.h"
|
// COIMOBOXWatchDirService command target
|
|
class COIMOBOXWatchDirService : public CNTService
|
{
|
public:
|
COIMOBOXWatchDirService();
|
virtual ~COIMOBOXWatchDirService();
|
|
// Attributes
|
public:
|
HANDLE m_hSvcStopEvent; // ·þÎñֹͣʼþ¾ä±ú
|
HANDLE m_hSvcThread;
|
COIMOBOXWatchDirDlg *m_pMOBOXWatchDirDlg;
|
// Operations
|
public:
|
void LogEvent( WORD wType, CString strLog );
|
BOOL Start();
|
void Report( LPCTSTR lpszString, WORD wType = EVENTLOG_INFORMATION_TYPE,
|
DWORD dwEventID = MSG_SERVICE_INFO);
|
// Overrides
|
public:
|
virtual void WINAPI ServiceMain( DWORD dwArgc, LPTSTR* lpszArgv );
|
|
virtual void OnStop();
|
virtual void OnPause();
|
virtual void OnContinue();
|
};
|