Table of contents
TOC
Collapse the table of content
Expand the table of content

C28152

Last Updated: 11/22/2016

warning C28152: The return from an AddDevice-like function unexpectedly DO_DEVICE_INITIALIZING

The driver has returned from its AddDevice routine, or a similar utility routine, but the DO_DEVICE_INITIALIZING bit of the Flags word (DeviceObject->Flags) in the DeviceObject routine is not cleared.

The AddDevice routine must contain code similar to the following to clear the DO_DEVICE_INITIALIZING flag.

FunctionalDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;

For more information about AddDevice routines, see AddDevice Routines in Function or Filter Drivers

Send comments about this topic to Microsoft

© 2017 Microsoft