UcxUsbDeviceInitSetEventCallbacks function (ucxusbdevice.h)

Initializes a UCXUSBDEVICE_INIT structure with client driver's event callback functions.

Syntax

void UcxUsbDeviceInitSetEventCallbacks(
  [in, out] PUCXUSBDEVICE_INIT             UsbDeviceInit,
  [in]      PUCX_USBDEVICE_EVENT_CALLBACKS EventCallbacks
);

Parameters

[in, out] UsbDeviceInit

A pointer to a UCXUSBDEVICE_INIT structure that UCX passes when it invokes client driver's EVT_UCX_CONTROLLER_USBDEVICE_ADD event callback function.

[in] EventCallbacks

A pointer to a UCX_USBDEVICE_EVENT_CALLBACKS structure that contains function pointer to client driver's event callback functions. The client driver initializes the structure by calling UCX_USBDEVICE_EVENT_CALLBACKS_INIT.

Return value

None

Remarks

An initialized UCXUSBDEVICE_INIT structure is used by the UcxUsbDeviceCreate method to create a USB device and register the client driver's event callback functions.

For a code example, see EVT_UCX_CONTROLLER_USBDEVICE_ADD.

Requirements

Requirement Value
Minimum supported client Windows 10
Target Platform Windows
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header ucxusbdevice.h (include Ucxclass.h)

See also

UCX_USBDEVICE_EVENT_CALLBACKS

UcxUsbDeviceCreate