<<Windows驱动开发技术详解>>随书光盘源码,共23章,开发环境主要是Visual studio.

源代码在线查看: function.cpp

软件大小: 2569 K
上传用户: invill
关键词: Windows Visual studio lt
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include 
				#include 
				
				#include "function.h"
				
				// DWORD ReadPort(HANDLE hDevice,DWORD port)
				// {
				// 	DWORD dwOutput;
				// 	DWORD dwRead;
				// 	DeviceIoControl(hDevice, IOCTL_READ_PORT_ULONG, &port, 4, &dwOutput, 4, &dwRead, NULL);
				// 	return dwOutput;
				// }
				// VOID WritePort(HANDLE hDevice,DWORD port,DWORD value)
				// {
				// 	PVOID buffer[2];
				// 	buffer[0] = (PVOID)port;
				// 	buffer[1] = (PVOID)value;
				// 	DWORD dwWrite;
				// 	DeviceIoControl(hDevice, IOCTL_WRITE_PORT_ULONG, &port, 8, NULL, 0, &dwWrite, NULL);
				// }
				// VOID TestDriver(HANDLE hDevice)
				// {
				// 	DWORD dwOutput;
				// 	DeviceIoControl(hDevice, IOCTL_TEST, NULL, 0, NULL, 0, &dwOutput, NULL);
				// }
				
							

相关资源