AddDevice

responsible for creating functional device objects (FDO) or filter device objects (filter DO) for devices enumerated by the Plug and Play (PnP) manager.

1. IoCreateDevice to create a device object
2. [optional] IoRegisterDeviceInterface symbolic links to the device
3. Store the pointer to the device’s PDO in the device extension
4. Define flags in the device ext
5. Set flag for power management
6. Create and/or initialize any other software resources
7. IoAttachDeviceToDeviceStack
8. Clear the DO_DEVICE_INITIALIZING flag in the FDO or filter DO
9. Be prepared to handle PnP IRPs for the device

This entry was posted in Windows Driver. Bookmark the permalink.