error opening more than one handle

hi all,

i have a service and a driver. in the service, i have opened a handle to
the device using createfile. i close the handle only when the service
terminates. but i am not able to open a handle to the device in a process
other than the service when the service is running. what might be going
wrong?

regards.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thursday, October 18, 2001, 8:51:37 AM, you wrote:

vyc> hi all,

vyc> i have a service and a driver. in the service, i have opened a handle to
vyc> the device using createfile. i close the handle only when the service
vyc> terminates. but i am not able to open a handle to the device in a process
vyc> other than the service when the service is running. what might be going
vyc> wrong?

vyc> regards.

vyc> —
vyc> You are currently subscribed to ntdev as: xxxxx@infpres.com
vyc> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Most probably a device object was created with Exclusive parameter set
to TRUE. So you can simultaneously open only one handle to your device.


Best regards,
Konstantin Manurin (aka NizeG) mailto:xxxxx@infpres.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

The device driver may be set for exclusive access. If so, only one process
at a time can have a handle.

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: xxxxx@yahoo.com [mailto:xxxxx@yahoo.com]
Sent: Wednesday, October 17, 2001 9:52 PM
To: NT Developers Interest List
Subject: [ntdev] error opening more than one handle

hi all,

i have a service and a driver. in the service, i have opened a handle to
the device using createfile. i close the handle only when the service
terminates. but i am not able to open a handle to the device in a process
other than the service when the service is running. what might be going
wrong?

regards.


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com