usbcontrolbase.h

来自「一个内核开发的usb加密解密驱动」· C头文件 代码 · 共 78 行

H
78
字号



#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 + =
减小字号Ctrl + -
显示快捷键?