sixefftee
asked on
Reading from a USB port with Win32 API
I have a HID device (magnetic cardreader) that uses a usb port to connect to a computer running any version of windows. I want to be able to figure out what port the device is on and read information from it. I know I need to use the Win32 API, but I haven't been able to find any useful information on how to do this. Can any one help?
Thanks in advance.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept jkr's comment as answer.
Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
migoEX
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Accept jkr's comment as answer.
Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
migoEX
EE Cleanup Volunteer
treat the port as file
do create file() readfile() write file() it will work....
i used the simmilar for printer port and serial port as files. so USB also work.