CreateFile() and usb

M

mike

I have several programs that access a particular printer port using
CreateFile() and have problems when 2 programs open the port at the same
time (sometimes i forget to close one).
CreateFile() does not throw an error when a usb port is currently in use as
it does with COM ports. Is there a way to detect if a usb port is in use?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top