I am having a problem with Redirecting filenames for my own application firewall.
Can someone help?
I have everything needed. As mentioned around every source I can seem to find.
If I alter the filename but keep it the same length, everything is ok and filea.bat is loaded instead of file.bat. If I change the file length, the file cannot be found. Is there something I am missing?
pFileObject = pData->Iopb->TargetFileObject;
// pFileObject->FileName.MaximumLength is 92 in this case.
can you also do
RtlZeroMemory(pFileObject->FileName.Buffer,92)
before
RtlCopyMemory (pFileObject->FileName.Buffer,
L"\Device\HarddiskVolume1\filea.bat", 66);
thanks,
–rc
On Wed, Jan 13, 2010 at 2:38 PM, wrote: > No. Unfortunately not. > > — > NTDEV is sponsored by OSR > > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars > > To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer >
If I wanted to make a file readonly and alert the user that it is readonly whenever they attempt to write to the file. How would I do it? I would prefer to write it as a driver so the setting cannot be overruled.