Attach Drives in PNP Callback

Hi all,

I m writing a file system minifilter driver, and my driver is started boot time , but when I trying to attach drives in Driver Entry it is failed to be attached, because drives not read at that time I think so.

but I created a PNP callback function and register IRP_MJ_PNP for this function. and trying to attach drives in this function , but still the same scenario.

Help me if anybody knows that.

Thanks.

Hmm, hate to ask, but since you’re a minifilter, how about your
InstanceSetupCallback? http://msdn.microsoft.com/en-us/library/ms793812.aspx

wrote in message news:xxxxx@ntfsd…
> Hi all,
>
> I m writing a file system minifilter driver, and my driver is started boot
> time , but when I trying to attach drives in Driver Entry it is failed to
> be attached, because drives not read at that time I think so.
>
> but I created a PNP callback function and register IRP_MJ_PNP for this
> function. and trying to attach drives in this function , but still the
> same scenario.
>
>
> Help me if anybody knows that.
>
> Thanks.
>

How are you “attaching drives” in a minifilter?


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hi all,
>
> I m writing a file system minifilter driver, and my driver is started boot time , but when I trying to attach drives in Driver Entry it is failed to be attached, because drives not read at that time I think so.
>
> but I created a PNP callback function and register IRP_MJ_PNP for this function. and trying to attach drives in this function , but still the same scenario.
>
>
> Help me if anybody knows that.
>
> Thanks.
>