📄 usbcontrolbase.h
字号:
#include "stdafx.h"
#include <psapi.h>
#include "LogTrace.h"
#include "CUSBEvent.h"
#pragma warning(push)
#pragma warning(disable: 4702)
#include <list>
#pragma warning(pop)
using namespace std;
class CUSBControlSrvBase
{
public:
//Default Contructor
CUSBControlSrvBase();
//Default Destructor
~CUSBControlSrvBase();
protected:
// Module Name
LPTSTR m_szModuleName;
//Service Name
LPTSTR m_szServiceName;
//Service Display Name
LPTSTR m_szSrvDisplayName;
// Service Dependencies
LPTSTR m_szSrvDependencies;
//Stop Event Name
LPTSTR m_szUsbCntlStopEvntName;
//Stop Event Handle
CUSBEvent *m_hUSBControlStopEvent;
//Logging Class Instance
CLogTrace logger;
wstring myName;
public:
// Acquisition of application name
virtual LPCTSTR GetModuleName(void)
{ return (LPCTSTR)this->m_szModuleName; };
// Acquisition of service name
virtual LPTSTR GetServiceName(void)
{ return this->m_szServiceName; };
// Acquisition of service display name
virtual LPCTSTR GetServiceDisplayName(void)
{ return (LPCTSTR)this->m_szSrvDisplayName; };
// Acquisition of depending service list
virtual LPCTSTR GetDependencies(void)
{ return (LPCTSTR)this->m_szSrvDependencies; };
// Making of service stop event signal
virtual BOOL SetStopEvent(void);
public:
// Initialization
virtual BOOL Init(void);
// The main processing
virtual BOOL Run(void);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -