Tech Support > Microsoft Windows > Drivers > RE: Access denied in CreateFile
RE: Access denied in CreateFile
Posted by Bryan S. Burgin [MSFT] on August 21st, 2003


f you're craeteing your device object (IoCreateDevice) outside of
DriverEntry, are you clearing the DO_DEVICE_INITIALIZING flag (i.e.,
deviceObject->Flags &= ~DO_DEVICE_INITIALIZING)?

Bryan S. Burgin
bburgin@microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Posted by Brian on August 21st, 2003


Yes. In AddDevice I do a IoCreateDevice and at the end I do a
deviceObject->Flags &= ~DO_DEVICE_INITIALIZING and I do the
IoRegisterInterface in AddDevice and IoSetDeviceInterfaceState in
StartDevice which is called from the DispatchPnP routine after recieving
IRP_MN_START_DEVICE.

--
Brian V. Minier
Lead Software Engineer
Interactive Imaging Systems, Inc
www.iisvr.com



""Bryan S. Burgin [MSFT]"" <bburgin@online.microsoft.com> wrote in message
news:060DXNCaDHA.2000@cpmsftngxa06.phx.gbl...




Similar Posts