UdecxInitializeWdfDeviceInit function (udecxwdfdevice.h)

Initializes device initialization operations when the Plug and Play (PnP) manager reports the existence of a device.

Syntax

NTSTATUS UdecxInitializeWdfDeviceInit(
  PWDFDEVICE_INIT WdfDeviceInit
);

Parameters

WdfDeviceInit

A pointer to a framework-allocated WDFDEVICE_INIT structure.

Return value

The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.

Remarks

The client driver for the emulated host controller device calls this method in its EvtDriverDeviceAdd implementation before it calls WdfDeviceCreate and UdecxWdfDeviceAddUsbDeviceEmulation. For code example, see UdecxWdfDeviceAddUsbDeviceEmulation.

Requirements

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

See also

Architecture: USB Device Emulation (UDE)

WDFDEVICE_INIT

WdfDeviceCreate

Write a UDE client driver