hwint.h
来自「一个使用VtoolsD类库处理硬件中断的VxD应用」· C头文件 代码 · 共 31 行
H
31 行
// hwint.h - include file for VxD HWINT, see hwint.cpp for details
#include <vtoolscp.h> // Primary include for VtoolsD class library
#include "realclk.h" // Include for our Real Time Clock class
#include "bellevt.h" // Include for our bell event class
// Device parameters
#define DEVICE_CLASS HwintDevice
#define HWINT_DeviceID UNDEFINED_DEVICE_ID
#define HWINT_Init_Order UNDEFINED_INIT_ORDER
#define HWINT_Major 1
#define HWINT_Minor 0
// The Device Class
//
// The device only needs two control message handlers: DEVICE_INIT and
// SYSTEM_EXIT.
class HwintDevice : public VDevice
{
public:
virtual BOOL OnDeviceInit(VMHANDLE hSysVM, PCHAR pszCmdTail);
virtual VOID OnSystemExit(VMHANDLE hSysVM);
};
// Macro to convert a byte of binary coded decimal (BCD) to int
#define BCDtoInt(x) (((x) & 0xf) + ((((x) & 0xf0) >> 4) * 10))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?