⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hwint.h

📁 一个使用VtoolsD类库处理硬件中断的VxD应用
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -