DirectoryControl over LanMan drives...

Hi everyone!

In my driver I need to get file attributes (size, times, attribs) for a
given file path. Currently I’m using DirectoryControl to get file’s entry so
I open the dir and query for FullDirectoryInformation using file name as
search template (I thought this method is faster than openinig file and then
query its attributes). Anyway, since I need only size+times+attribs I
allocate FILE_FULL_DIRECTORY_INFORMATION structure on the stack and pass it
as UserBuffer to the DirControl IRP specifying buffer
size=sizeof(FILE_FULL_DIRECTORY_INFORMATION). So, I’m getting back
STATUS_BUFFER_OVERFLOW which is (actually, was) fine with me because “driver
supposed to fill the structure with as much information as possible and
return overflow status” and data that I need perfectly fit into this rule.
An it’s been working just fine for files located on local disks. But as soon
as file is located on a network mapped drive I’m getting some garbage in the
buffer instead of meaningfull information. So, I guess the question is if
this is a bug in W2K or I just misunderstood the doc? And in any case what
would be the best method to query for size+times+attribs for a given file
name (path)?

TIA,

Vladimir


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com