UdecxUsbDeviceCreate - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// udecxusbdevice.h

NTSTATUS UdecxUsbDeviceCreate(
  [in, out]      PUDECXUSBDEVICE_INIT   *UdecxUsbDeviceInit,
  [in, optional] PWDF_OBJECT_ATTRIBUTES Attributes,
  [out]          UDECXUSBDEVICE         *UdecxUsbDevice
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-udecxusbdevice-udecxusbdevicecreate)

UdecxUsbDeviceCreate function

Description

Creates a USB Device Emulation (UDE) device object.

Parameters

UdecxUsbDeviceInit [in, out]

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.

Attributes [in, optional]

A pointer to a caller-allocated WDF_OBJECT_ATTRIBUTES structure that specifies attributes for the USB device object.

UdecxUsbDevice [out]

A pointer to a variable that receives a handle to the new UDE device object that represents the virtual USB device.

Return value

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

See also

Architecture: USB Device Emulation (UDE)

Write a UDE client driver