Newbie question about file opening redirection

Hi, I am trying to write a filter driver that can redirect open requests, I’ve read many posts about that but I always get the blue screen of death whenever I redirect an open request so please can any one reffer me to a good filter source or copy/paste the code of MJ_CREATE dispatch routine that do that .

Best Regards


Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !

if (pFileObject->FileName.MaximumLength >= length of
new path)
{
copy the new path into pFileObject->FileName
}
else
{
ExFreePool(pFileObject->FileName.Buffer)
pFileObject->FileName.Buffer =
ExAllocatePoolWithTag(new buffer big enough to hold
new path);
Fixup Length and MaximumLength params
}

You probably want to set RelatedFileObject to NULL if
you are specifying the full path

Irp->IoStatus.Information = IO_REPARSE;
Irp->IoStatus.Status = STATUS_REPARSE;

IoCompleteRequest(Irp, IO_NO_INCREMENT);

return STATUS_REPARSE

— ed eddie wrote:

> Hi, I am trying to write a filter driver that can
> redirect open requests, I’ve read many posts about
> that but I always get the blue screen of death
> whenever I redirect an open request so please can
> any one reffer me to a good filter source or
> copy/paste the code of MJ_CREATE dispatch routine
> that do that .
>
> Best Regards
>
>
> ---------------------------------
> Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> Téléchargez le ici !
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com

Thanks a lot it will be very helpfull for me

Randy Cook a écrit :if (pFileObject->FileName.MaximumLength >= length of
new path)
{
copy the new path into pFileObject->FileName
}
else
{
ExFreePool(pFileObject->FileName.Buffer)
pFileObject->FileName.Buffer =
ExAllocatePoolWithTag(new buffer big enough to hold
new path);
Fixup Length and MaximumLength params
}

You probably want to set RelatedFileObject to NULL if
you are specifying the full path

Irp->IoStatus.Information = IO_REPARSE;
Irp->IoStatus.Status = STATUS_REPARSE;

IoCompleteRequest(Irp, IO_NO_INCREMENT);

return STATUS_REPARSE

— ed eddie wrote:

> Hi, I am trying to write a filter driver that can
> redirect open requests, I’ve read many posts about
> that but I always get the blue screen of death
> whenever I redirect an open request so please can
> any one reffer me to a good filter source or
> copy/paste the code of MJ_CREATE dispatch routine
> that do that .
>
> Best Regards
>
>
> ---------------------------------
> Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> Téléchargez le ici !
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@yahoo.fr
To unsubscribe send a blank email to xxxxx@lists.osr.com

---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !