使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 479b1995ef435713c2cf4f0da8de3a6af6c30922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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();            
};