How do I know which application to open the serial device.

How do I know which application to open the serial device.

I would like to know whether a serial (COM1) device or an FTDI USB device that is open.
And if it is open, which application opened.

At the application level.
Setupapi with detected that device is present.

thx

What problem are you trying to solve? There are no APIs for this

d

debt from my phone


From: xxxxx@gmail.com
Sent: 11/10/2012 1:13 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How do I know which application to open the serial device.

How do I know which application to open the serial device.

I would like to know whether a serial (COM1) device or an FTDI USB device that is open.
And if it is open, which application opened.

At the application level.
Setupapi with detected that device is present.

thx


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

The serial device, I can not open, as long as another application open.
I would like to tell the user which application to use the device.
I suspected that there is no api.
Solving complex care.
I just do not know where to look for it.

Serial ports are exclusive devices, one app at a time . Tell the user you can’t open the port, and if they want to use your app, close the app they started which has the port open. Dont tell the user which app, just for them to close it.

d

debt from my phone


From: xxxxx@gmail.com
Sent: 11/10/2012 10:07 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How do I know which application to open the serial device.

The serial device, I can not open, as long as another application open.
I would like to tell the user which application to use the device.
I suspected that there is no api.
Solving complex care.
I just do not know where to look for it.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer