Skip to content

Latest commit

 

History

History
86 lines (63 loc) · 4.18 KB

ni-usbioctl-ioctl_usb_get_node_connection_driverkey_name.md

File metadata and controls

86 lines (63 loc) · 4.18 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NI:usbioctl.IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME
IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME (usbioctl.h)
The IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME I/O control request retrieves the driver registry key name that is associated with the device that is connected to the indicated port.
buses\ioctl_usb_get_node_connection_driverkey_name.htm
usbref
05/07/2018
IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME IOCTL
IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME control, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME control code [Buses], buses.ioctl_usb_get_node_connection_driverkey_name, usbioctl/IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME, usbirp_cdc9e1be-96fd-41d4-a0d3-1303b0b4fb1d.xml
usbioctl.h
Usbioctl.h
Windows
Windows
IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME
usbioctl/IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME
APIRef
kbSyntax
HeaderDef
Usbioctl.h
IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME

IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME IOCTL

-description

The IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME I/O control request retrieves the driver registry key name that is associated with the device that is connected to the indicated port.

IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME is a user-mode I/O control request. This request targets the USB hub device (GUID_DEVINTERFACE_USB_HUB).

-ioctlparameters

-ioctl-major-code

-input-buffer

The AssociatedIrp.SystemBuffer member points to a user-allocated USB_NODE_CONNECTION_DRIVERKEY_NAME structure. On input, the ConnectionIndex member of this structure contains the number of the port that the device is connected to.

-input-buffer-length

The size of a USB_NODE_CONNECTION_DRIVERKEY_NAME structure.

-output-buffer

On output, the DriverKeyName member of the USB_NODE_CONNECTION_DRIVERKEY_NAME structure at AssociatedIrp.SystemBuffer contains the driver key name that is associated with the device that is connected to the port that is indicated by ConnectionIndex.

The ActualLength member indicates the length, in bytes, of the driver key name. The Parameters.DeviceIoControl.OutputBufferLength member indicates the size, in bytes, of the entire USB_NODE_CONNECTION_DRIVERKEY_NAME structure.

-output-buffer-length

The size of a USB_NODE_CONNECTION_DRIVERKEY_NAME structure.

-in-out-buffer

-inout-buffer-length

-status-block

The USB stack sets Irp->IoStatus.Status to STATUS_SUCCESS if the request is successful. Otherwise, the USB stack sets Status to the appropriate error condition, such as STATUS_INVALID_PARAMETER or STATUS_INSUFFICIENT_RESOURCES.

If the caller allocates an output buffer that is large enough to hold all of the output data, IoStatus.Information will be equal to the value of ActualLength. If the output buffer is large enough to hold all of the output data, IoStatus.Information will be equal to sizeof(USB_NODE_CONNECTION_DRIVERKEY_NAME).

-see-also

USB_NODE_CONNECTION_DRIVERKEY_NAME