📄 drvclass.h
字号:
//****************************************************************************
// File DRVCLASS.H
//
// Driver object of functional driver
//
// Copyright (c) APSoft, 1998-2002.
// All rights reserved.
//
//****************************************************************************
#ifndef _DRVCLASS_H_
#define _DRVCLASS_H_
class CFuncDriver; // Forward declaration
#define _MAIN_CLASS CFuncDriver
#include <pnpdrv.h> // PnP driver base class
//--------------------------- Local definitions ------------------------------
#define DEV_NAME_U L"\\Device\\FUJIXEROX-READCARD-Device%d"
#define DEV_LINK_U L"\\DosDevices\\FUJIXEROX-READCARD-Device%d"
///////////////////////////////////////////////////////////////////////////////
// --- Class CFuncDriver --- //
///////////////////////////////////////////////////////////////////////////////
class CFuncDriver : public CPnpDriver // Functional driver
{
//----------------------- Construction/Destruction ---------------------------
public:
CFuncDriver (PDRIVER_OBJECT pDrvObject,
PUNICODE_STRING pusRegPath);
virtual ~CFuncDriver (void);
//****************************************************************************
// *** Implementation ***
//****************************************************************************
//****************************************************************************
// *** Internal implementation ***
//****************************************************************************
protected:
virtual NTSTATUS OnAddDevice (PDEVICE_OBJECT pPdo);
//****************************************************************************
// *** Member variables ***
//****************************************************************************
protected:
ULONG m_uNextDevice; // Index of device
};
//------------------------- Inline implementation ----------------------------
inline CFuncDriver::CFuncDriver(PDRIVER_OBJECT pDrvObject, PUNICODE_STRING pusRegPath) :
CPnpDriver(pDrvObject, pusRegPath)
{
m_uNextDevice = 0;
}
inline CFuncDriver::~CFuncDriver(void)
{
}
#endif // #ifndef _DRVCLASS_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -