IOCTL_HID_ACTIVATE_DEVICE IOCTL

The IOCTL_HID_ACTIVATE_DEVICE request activates a HIDClass device, which makes it ready for I/O operations.

For general information about HIDClass devices, see HID Collections.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

Parameters.DeviceIoControl.Type3InputBuffer contains a collection identifier, as a ULONG value, of the collection to activate.

Input Buffer Length

The length of a ULONG value.

Output Buffer

None.

Output Buffer Length

None.

Status Block

HID minidrivers that carry out the I/O to the device set the following fields of Irp->IoStatus:

  • Information is set to zero.

  • Status is set to STATUS_SUCCESS if the transfer completed without error. Otherwise, it is set to an appropriate NTSTATUS error code.

Minidrivers that call other drivers with this IRP to carry out the I/O to their device should ensure that the Information field of the status block is zero and not change the contents of the Status field.

Requirements

   
Header hidport.h (include Hidport.h)

See Also

IOCTL_HID_DEACTIVATE_DEVICE