1 #include <ntddk.h> 2 3 //驱动卸载函数 4 VOID DriverUnload ( PDRIVER_OBJECT driver) 5 { 6 DbgPrint (" First : Our Driver is UnLoad ....\r\n") ; 7 } 8 9 //驱动入口 相当于main 10 11 NTSTATUS DriverEntry (PDRIVER_OBJECT driver , PUNICODE_STRING reg_path) 12 { 13 14 //打印一句话 15 DbgPrint("First : Hellow , My Salary !\r\n"); 16 driver->DriverUnload = DriverUnload ; 17 return STATUS_SUCCESS ; 18 }