Good Day,
What is the correct Sequence in using a non-PNP Serial device in kernel
mode…
I have some code that calls
IoGetDeviceObjectPointer
and after that i send IRP_MJ_CLOSE then Call ObDereferenceObject on the File
& device Objects
After this sequence i cannot use the Serial Port Anymore… Is there
anything more that i need to do to completely close the Serial port?
Thanks…
Best Regards,
Rikki Tamayo
You should only dereference the file object when you are done. This will send the close to the serial port for you, so there is no need to send the IRP_MJ_CLOSE manually.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Wednesday, June 09, 2004 3:50 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Correct Way to Use Serial Device
Good Day,
?
What is the correct Sequence in using a non-PNP Serial device in kernel mode...
?
I?have some code that calls
?
IoGetDeviceObjectPointer
?
and after that i send IRP_MJ_CLOSE then Call ObDereferenceObject on the File & device Objects
?
After this sequence i cannot use the Serial Port Anymore... Is there anything more that i need to do to completely close the Serial port?
?
Thanks...
?
Best Regards,
Rikki Tamayo
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thank you very much for the information...
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, June 10, 2004 12:55 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Correct Way to Use Serial Device
You should only dereference the file object when you are done. This will
send the close to the serial port for you, so there is no need to send the
IRP_MJ_CLOSE manually.
d
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Wednesday, June 09, 2004 3:50 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Correct Way to Use Serial Device
Good Day,
?
What is the correct Sequence in using a non-PNP Serial device in kernel
mode...
?
I?have some code that calls
?
IoGetDeviceObjectPointer
?
and after that i send IRP_MJ_CLOSE then Call ObDereferenceObject on the File
& device Objects
?
After this sequence i cannot use the Serial Port Anymore... Is there
anything more that i need to do to completely close the Serial port?
?
Thanks...
?
Best Regards,
Rikki Tamayo
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@omron.com.ph To
unsubscribe send a blank email to xxxxx@lists.osr.com