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


Andrew Fish
 

What error did you get?

On Oct 15, 2020, at 4:07 AM, Ali Shirvani <aj.shirvani@...> wrote:

Regards,