Why does IOCTL_KEYBOARD_QUERY_INDICATORS always result “0” at leds.LedFlags?
The function returns SUCCESS and the leds.UnitId is correctly set after the call.
I do the following:
KEYBOARD_INDICATOR_PARAMETERS leds = { 0 };
WDF_MEMORY_DESCRIPTOR_INIT_BUFFER(
&outputDescriptor,
(PVOID)&leds,
sizeof(KEYBOARD_INDICATOR_PARAMETERS)
);
status = WdfIoTargetSendIoctlSynchronously(
WdfDeviceGetIoTarget(destdevice),
NULL,
IOCTL_KEYBOARD_QUERY_INDICATORS,
NULL,
&outputDescriptor,
NULL,
NULL
);