// udecxusbdevice.h
NTSTATUS UdecxUsbDeviceInitAddStringDescriptorRaw(
[in, out] PUDECXUSBDEVICE_INIT UdecxUsbDeviceInit,
[in] PUCHAR Descriptor,
[in] USHORT DescriptorLength,
[in] UCHAR DescriptorIndex,
[in] USHORT LanguageId
);
View the official Windows Driver Kit DDI referenceNo description available.
Adds a USB string descriptor to the initialization parameters used to create a virtual USB device.
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.
Descriptor [in]A caller-allocated buffer that contains the USB descriptor to add to the device.
DescriptorLength [in]The length of the descriptor buffer.
DescriptorIndex [in]The index of the descriptor.
LanguageId [in]The language identifier of the string. The client driver must define constants for the language support, such as:
const USHORT US_ENGLISH = 0x409;
The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.
Architecture: USB Device Emulation (UDE)