We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080970f commit 86f0fe1Copy full SHA for 86f0fe1
src/WinMSRDriver/msrmain.c
@@ -62,6 +62,18 @@ DriverEntry(
62
RtlInitUnicodeString(&UnicodeString, NT_DEVICE_NAME);
63
RtlInitUnicodeString(&dosDeviceName, DOS_DEVICE_NAME);
64
65
+#if 1
66
+ status = IoCreateDeviceSecure(DriverObject,
67
+ sizeof(struct DeviceExtension),
68
+ &UnicodeString,
69
+ FILE_DEVICE_UNKNOWN,
70
+ FILE_DEVICE_SECURE_OPEN,
71
+ FALSE,
72
+ &SDDL_DEVOBJ_SYS_ALL_ADM_ALL,
73
+ NULL,
74
+ &MSRSystemDeviceObject
75
+ );
76
+#else
77
status = IoCreateDevice(DriverObject,
78
sizeof(struct DeviceExtension),
79
&UnicodeString,
@@ -70,6 +82,7 @@ DriverEntry(
82
FALSE,
83
&MSRSystemDeviceObject
84
);
85
+#endif
86
87
if (!NT_SUCCESS(status))
88
return status;
0 commit comments