Re: AddDevice question

> that confuses me is that AddDevice gets called with a device already > made. Am I supposed to create a device with IoCreateDevice and >...
Re: AddDevice question
> that confuses me is that AddDevice gets called with a device already
> made. Am I supposed to create a device with IoCreateDevice and
> IoCreateSymbolicLink and ignore the device I am given?

No. You’re supposed to create a new device (FDO), and to IoAttachDeviceToDeviceStack to the device given (PDO).

Read more PnP docs and samples to understand what is FDO and what is PDO.

>Am I supposed
> to attach my created device to the device I am given?

Yes.


Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

We will be happy to hear your thoughts

Leave a reply

TechEggs
Logo