Try compiling, signing, and downloading this code:
#include <ntddk.h> VOID OnUnload( IN PDRIVER_OBJECT driverObjectA ) { DbgPrint("Unload\n"); } NTSTATUS DriverEntry( PDRIVER_OBJECT driverObjectA, PUNICODE_STRING RegistryPath ){ DbgPrint("DriverEntry\n"); driverObjectA->DriverUnload = OnUnload; return STATUS_SUCCESS; }
Then load DebugView , unzip it, run it as an administrator, and then “Capture Kernel” in the “Capture” menu item. Download, unzip and run the OSR driver loader , register the driver, "Start Service". You will see the "DriverEntry" log message in DbgView. Now in the OSR driver loader, "Stop the service" and watch the message "Unload". Hope this helps you.
bowlofstew
source share