Bewerken

Delen via


UdecxUsbDeviceInitSetStateChangeCallbacks function (udecxusbdevice.h)

Initializes a WDF-allocated structure with pointers to callback functions.

Syntax

void UdecxUsbDeviceInitSetStateChangeCallbacks(
  [in, out] PUDECXUSBDEVICE_INIT                     UdecxUsbDeviceInit,
  [in]      PUDECX_USB_DEVICE_STATE_CHANGE_CALLBACKS Callbacks
);

Parameters

[in, out] UdecxUsbDeviceInit

A pointer to a WDF-allocated structure that contains initialization parameters for the virtual USB device. The client driver retrieved this pointer in the previous call to UdecxUsbDeviceInitAllocate.

[in] Callbacks

A pointer to a UDECX_USB_DEVICE_STATE_CHANGE_CALLBACKS structure that contains pointers to callback functions implemented by the client driver.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.15
Header udecxusbdevice.h (include Udecx.h)
Library Udecxstub.lib
IRQL PASSIVE_LEVEL

See also

Architecture: USB Device Emulation (UDE)

UdecxUsbDeviceInitAllocate

Write a UDE client driver