Condividi tramite


IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION IOCTL (usbioctl.h)

La richiesta di controllo I/O IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION recupera uno o più descrittori per il dispositivo associato all'indice di porta indicato.

IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION è una richiesta di controllo I/O in modalità utente. Questa richiesta è destinata al dispositivo hub USB (GUID_DEVINTERFACE_USB_HUB).

Codice principale

IRP_MJ_DEVICE_CONTROL

Buffer di input

Il membro AssociatedIrp.SystemBuffer punta a una struttura USB_DESCRIPTOR_REQUEST che descrive la richiesta del descrittore.

Lunghezza del buffer di input

Il membro Parameters.DeviceIoControl.OutputBufferLength indica le dimensioni, in byte, del buffer di output allocato dall'utente nel membro Data della struttura USB_DESCRIPTOR_REQUEST.

Buffer di output

Il membro data della struttura USB_DESCRIPTOR_REQUEST in AssociatedIrp.SystemBuffer punta al buffer di output.

Blocco di stato

Lo stack USB imposta Irp->IoStatus.Status su STATUS_SUCCESS se la richiesta ha esito positivo. In caso contrario, lo stack USB imposta Stato sulla condizione di errore appropriata, ad esempio STATUS_INVALID_PARAMETER o STATUS_INSUFFICIENT_RESOURCES.

Fabbisogno

Requisito Valore
intestazione usbioctl.h (include Usbioctl.h)

Vedere anche

USB_DESCRIPTOR_REQUESTGUID_DEVINTERFACE_USB_HUB