- 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,
FILE_DEVICE_KEYBOARD,
FILE_DEVICE_SECURE_OPEN,
TRUE,
FALSE,
&Fdo);
if (NT_SUCCESS(Status))
goto cleanup;
@ -649,7 +649,7 @@ ClassAddDevice(
NULL,
Pdo->DeviceType,
Pdo->Characteristics & FILE_DEVICE_SECURE_OPEN ? FILE_DEVICE_SECURE_OPEN : 0,
TRUE,
FALSE,
&Fdo);
if (!NT_SUCCESS(Status))
{