Hi all,
I am redirecting the opening of certain files, in PreCreate, to a single known file[MYFILE], like this:
if(redirect(Data->Iopb->TargetFileObject))
{
status = ReplaceFileObjectName(Data->Iopb->TargetFileObject,
MYFILE);
if(NT_SUCCESS(status))
{
Data->IoStatus.Status = STATUS_REPARSE;
Data->IoStatus.Information = IO_REPARSE;
}
}
But on another operation, like PreWrite, I want to detect that the file has been redirected. Also, I want to know the original file path.
Is this possible?
Thank you. ![]()