Under what conditions is the following true?
Data->Iopb->TargetFileObject->FileName.Buffer == NULL
What should I do in user-space to get such request?
Thanks in advance
Vinod
Under what conditions is the following true?
Data->Iopb->TargetFileObject->FileName.Buffer == NULL
What should I do in user-space to get such request?
Thanks in advance
Vinod
Try FindFirstFile(“.”)
This will probably use ->RelatedFileObject of the current dir and empty FileName.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> Under what conditions is the following true?
> Data->Iopb->TargetFileObject->FileName.Buffer == NULL
>
> What should I do in user-space to get such request?
>
> Thanks in advance
> Vinod
>
Could be volume open? This is an alternate to FO_VOLUME_OPEN flag if I
remember correctly. Try to open a handle to the volume.
Regards,
Ayush Gupta
Software Consultant & Owner,
AI Consulting
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@msn.com
Sent: Friday, February 25, 2011 9:25 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Quick question on PreCreate callback
Under what conditions is the following true?
Data->Iopb->TargetFileObject->FileName.Buffer == NULL
What should I do in user-space to get such request?
Thanks in advance
Vinod
NTFSD is sponsored by OSR
For our schedule of debugging and file system 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
Thanks Maxim and Ayush for your responses.
Ayush - you’re absolutely right in that when I open a volume I see FileName.Buffer as NULL with FO_VOLUME_OPEN flag set.
Maxim - I tried FindFirstFile(“.”) after SetCurrentDirectory to no avail.
Is there a way to get Data->Iopb->TargetFileObject->FileName.Buffer as NULL in cases other than volume open?
Thanks again,
Vinod
I’ve also tried relative opens to no avail. This is on 64-bit Win 7.