IOCTL_HID_DISABLE_SECURE_READ IOCTL

The IOCTL_HID_DISABLE_SECURE_READ request cancels an IOCTL_HID_ENABLE_SECURE_READ request for a HID collection. Only a "trusted" user-mode application (an application with SeTcbPrivilege privileges) can successfully use this request. Kernel-mode drivers have SeTcbPrivilege privileges by default, but user-mode applications do not.

For information about how to use enable and disable secure read requests to enforce a secure read for a collection, see Enforcing a Secure Read For a HID Collection.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

None.

Input Buffer Length

None.

Output Buffer

None.

Output Buffer Length

None.

Status Block

The HID class driver sets the Status member of Irp->IoStatus to STATUS_SUCCESS if the requester has SeTcbPrivilege privileges and the file is valid. Otherwise, it is set to STATUS_PRIVILEGE_NOT_HELD.

Requirements

   
Header hidclass.h (include Hidclass.h)

See Also

IOCTL_HID_DISABLE_SECURE_READ