CreateFile() and usb

  • Thread starter Thread starter mike
  • Start date Start date
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
 
Back
Top