编程语言
首页 > 编程语言> > 驱动测试开发源码-4

驱动测试开发源码-4

作者:互联网

#include <wdm.h> 
 
NTSTATUS DriverUnload(PDRIVER_OBJECT driver)
{
	UNREFERENCED_PARAMETER(driver);
 
	DbgPrint("Unload driver");
	return STATUS_SUCCESS;
}
 
NTSTATUS DriverEntry(PDRIVER_OBJECT driver, PUNICODE_STRING regpath)
{
	UNREFERENCED_PARAMETER(regpath);
	driver->DriverUnload = DriverUnload;
 
	DbgPrint("Hello world");
	return STATUS_SUCCESS;
}

 

 

 

转载:https://blog.csdn.net/sinat_21107433/article/details/104881792?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_utm_term~default-0.control&spm=1001.2101.3001.4242

标签:DbgPrint,DriverUnload,OBJECT,driver,源码,NTSTATUS,测试,驱动,PARAMETER
来源: https://www.cnblogs.com/iGhost/p/15105337.html