- CreateClassDeviceObject/ClassAddDevice: Do not create KeyboardClass device with exclusive access as it will prevent key loggers from working.

svn path=/trunk/; revision=41054
This commit is contained in:
Michael Martin 2009-05-23 01:37:34 +00:00
parent f92ef3f38f
commit 56cc203023

View file

@ -354,7 +354,7 @@ CreateClassDeviceObject(
&DeviceNameU, &DeviceNameU,
FILE_DEVICE_KEYBOARD, FILE_DEVICE_KEYBOARD,
FILE_DEVICE_SECURE_OPEN, FILE_DEVICE_SECURE_OPEN,
TRUE, FALSE,
&Fdo); &Fdo);
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))
goto cleanup; goto cleanup;
@ -649,7 +649,7 @@ ClassAddDevice(
NULL, NULL,
Pdo->DeviceType, Pdo->DeviceType,
Pdo->Characteristics & FILE_DEVICE_SECURE_OPEN ? FILE_DEVICE_SECURE_OPEN : 0, Pdo->Characteristics & FILE_DEVICE_SECURE_OPEN ? FILE_DEVICE_SECURE_OPEN : 0,
TRUE, FALSE,
&Fdo); &Fdo);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {