IOCTL_GET_DEVICE_DESCRIPTOR - NtDoc

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

// CTL_CODE(0x8000, 0x806, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_GET_DEVICE_DESCRIPTOR 0x80002018
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-usbscan-ioctl_get_device_descriptor)

IOCTL_GET_DEVICE_DESCRIPTOR IOCTL

Description

Returns vendor and device identifiers.

Parameters

Major code

Input buffer

Pointer to a DEVICE_DESCRIPTOR structure.

Input buffer length

Size of the input buffer.

Output buffer

Pointer to a DEVICE_DESCRIPTOR structure (same as lpInbuffer).

Output buffer length

Size of the output buffer.

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.

Remarks

DeviceIoControl Parameters

When the DeviceloControl function is called with the IOCTL_GET_USB_DESCRIPTOR I/O control code, the caller must specify the address of a DEVICE_DESCRIPTOR structure as the function's lpOutbuffer parameter. The kernel-mode driver fills in the structure.

For more information, see Accessing Kernel-Mode Drivers for Still Image Devices.