// udecxusbdevice.h
PUDECXUSBDEVICE_INIT UdecxUsbDeviceInitAllocate(
[in] WDFDEVICE UdecxWdfDevice
);
View the official Windows Driver Kit DDI referenceNo description available.
Allocates memory for a UDECXUSBDEVICE_INIT structure that is used to initialize a virtual USB device.
UdecxWdfDevice [in]A handle to a framework device object that represents a USB device. The client driver initialized this object in the previous call to UdecxWdfDeviceAddUsbDeviceEmulation.
This method returns a pointer to an opaque UDECXUSBDEVICE_INIT that contains the initialization parameters. The structure is allocated by the USB device emulation class extension (UdeCx).
The UDE client driver calls this method to allocate parameters for the virtual device that is created by a subsequent call to UdecxUsbDeviceCreate. If the device is not created or the driver is finished using the resources, the driver must free the resources by calling UdecxUsbDeviceInitFree.
Architecture: USB Device Emulation (UDE)