Problems loading a WDM drive

  • Thread starter Thread starter curious
  • Start date Start date
C

curious

Guest
Hello

I wrote the simplest WDM drive, driver1 , with VC++2019

#include <ntddk.h>

extern "C"

NTSTATUS

DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath) {

UNREFERENCED_PARAMETER(DriverObject);

UNREFERENCED_PARAMETER(RegistryPath);

return STATUS_SUCCESS;

}

1 OS is Windows 10 64 bit under test signing mode (the Secure boot is disabled).

2 firewalls and antivirus were disabled.



3 The Installation of the drive was ok

sc.exe create driver1 type= kernel binPath= F:\driver1.sys



4 The loading command of the drive is:

sc.exe start driver1



5 The loading failed:



[SC] StartService FAILED 1275:

This driver has been blocked from loading



I would appreciate any help solving this error.

Thanks a lot.

Continue reading...
 
Back
Top