Retrieving USB device vendorID and productID


aj.shirvani@...
 

Hi,

I've located a handle to the USB device with
`gEfiSimpleFileSystemProtocolGuid.` Now I want to retrieve vendorID and
productID with `gEfiUsbIoProtocolGuid,` and I got an error when trying to
get the appropriated handle with this function:

// UsbHandle is an EFI_HANDLE located by gEfiSimpleFileSystemProtocolGuid
gBS->HandleProtocol(UsbHandle, &gEfiUsbIoProtocolGuid, (VOID**)&UsbIo);

Would you please help me to get the vendorID and productID of that USB
device?

Regards,
Ali

Join discuss@edk2.groups.io to automatically receive all group messages.