Exclusive Serial port

I want to know which driver opened the serial port (“Serial0”).I want to use
the Serial driver but i get an error saying that the device is already in
use. I know it’s not an application that use the Serial port. Can i
determine which driver is using the Serial device.

Thanks

The serial driver does not require a PFILE_OBJECT, as such any driver
can anonymously send a IRP_MJ_CREATE with an irp that it creates on its
own and does not go through the i/o manager. I would just set a bp on
serial create dispatch routine and dump the call stack.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Francky
Sent: Thursday, November 24, 2005 9:58 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Exclusive Serial port

I want to know which driver opened the serial port (“Serial0”).I want to
use
the Serial driver but i get an error saying that the device is already
in
use. I know it’s not an application that use the Serial port. Can i
determine which driver is using the Serial device.

Thanks


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com