I am working on very basic redirector minifilter.
Registered FLT_PREOP_CALLBACK_STATUS for IRP_MJ_CREATE and calling FltSetCallbackDataDirty() after parameters change.
It works well for redirects on the same instance of the minifilter just by changing Iopb->TargetFileObject->FileName (no volume-drive-device change)
However I am having trouble redirecting from one drive to another. In that case I am changing
Iopb->TargetInstance as well as Iopb->TargetFileObject->FileName.
I am playing with redirects from \Device\LanmanRedirector to \Device\CdRom0 and it’s not working.
I was thinking it may be because of the device->StackSize but it checks out.
Obviously I am complete newbie to the DDK development so anything you can help with will be greately appreciated.
I can probably open case with Microsoft, but it looks like just a such basic task I thought there must be tonns of staff about it all over.
Is there any sample or article or anything
on minifilter redirection?
Thanks in advance.