Quantcast
Channel: Print/Fax forum
Viewing all articles
Browse latest Browse all 3156

How to get vendor ID of a USB connected device by using the pfnGetPrinterDataFromPort API of USBMON

$
0
0

I have a custom language monitor.I am using pfnGetPrinterDataFromPort api of USBMON. Can i use this api to fetch the device path, vendor id and product id for the usb connected device?

If yes then can someone help me find out the control ID which can be used to fetch the vendor ID and product ID. 

I can retrieve the 1284 string using the  control ID CTL_CODE(FILE_DEVICE_UNKNOWN,  0x0000 + 13,  METHOD_BUFFERED, FILE_ANY_ACCESS). but i need the vendor ID which is not present in 1284 string.

Thanks in advance.


Viewing all articles
Browse latest Browse all 3156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>