Hi all,
I am kinda a novice to the world of NT device driver so
please excuse my ignorance if I am asking stupid
questions.
I am trying to write a filter driver which redirect file requests
from one server to another server. For example, if someone want to
open file \server-A\share\file-A.txt , then I want to automatically
redirect
the request to server-B instead. What Target Device should I attach my
filter to?? I tried to get the device for \Device\Mup but it failed with
STATUS_SHARING_VIOLATION. What does that mean??
RtlInitUnicodeString(&deviceNameString, L"\Device\Mup");
status = IoGetDeviceObjectPointer(&deviceNameString,
STANDARD_RIGHTS_ALL,
&deviceExtension->TargetFileObject,
&deviceExtension->TargetDeviceObject);
Any help would be much appreciated!
Thanks,
Patrick