#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