IOCTL_USBPRINT_VENDOR_SET_COMMAND - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// usbprint.h

// CTL_CODE(0x0022, 0x00e, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_USBPRINT_VENDOR_SET_COMMAND 0x00220038
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-usbprint-ioctl_usbprint_vendor_set_command)

Description

The IOCTL_USBPRINT_VENDOR_SET_COMMAND request allows upper-layer software (such as a language monitor) to issue a vendor-specific SET command to the target device.

Parameters

Major code

Input buffer

A pointer to an input buffer, an array of UCHAR elements. The meaning of each array element is shown in the following table.

Array Element Contents
lpInBuffer[0] Vendor request code
lpInBuffer[1] Vendor request value (most significant byte)
lpInBuffer[2] Vendor request value (least significant byte)
lpInBuffer[3], ... Any additional data to be sent as part of the command

Input buffer length

The size of the input buffer, in bytes.

Output buffer

Not used in this operation; set this parameter to NULL.

Output buffer length

Not used in this operation; set this parameter to 0.

Input/output buffer

Input/output buffer length

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.

See also

Creating IOCTL Requests in Drivers

IOCTL_USBPRINT_VENDOR_GET_COMMAND

WdfIoTargetSendInternalIoctlOthersSynchronously

WdfIoTargetSendInternalIoctlSynchronously

WdfIoTargetSendIoctlSynchronously