驱动程序版helloworld

#include

VOID DriverUnload(PDRIVER_OBJECT driver){

//驱动卸载,用户动态卸载,便于调试

DbgPrint("misaka: good bye!\r\n");

}

NTSTATUS DriverEntry(PDRIVER_OBJECT driver, PUNICODE_STRING reg_path){

//驱动入口

DbgPrint("misaka: hello world , this is kernel driver !\r\n");

driver->DriverUnload = DriverUnload;

return STATUS_SUCCESS;

}

驱动程序版helloworld_第1张图片

你可能感兴趣的:(驱动程序版helloworld)