Hi ,
I am writing a Vxd (basically a file system API Hook) from a Win98 Machine
which traps all Open Calls made by the user on the files on an Network
Machine with NTFS Partition.
The VxD should trap the Open Call and Check for the OFFLINE
(FILE_ATTRIBUTE_OFFLINE) attribute in the server.
I am able to trap the open calls.
What I need to know is How to Read the FILE_ATTRIBUTE_OFFLINE attribute of a
file from a VxD.
I tried using R0_FindFirstFile and R0_GetFileAttributes , both the functions
does not retrieve attribute FILE_ATTRIBUTE_OFFLINE, but works fine for READ
ONLY , ARCHIVE, etc…
Is there anything special I have to do in these functions. I am slightly
confused with Mustmatch attribute parameter.
There is one SDK API GetFileInformationByHandle() which returns the correct
file attribute of a file. Is there any low level call associated with the
API so that I can use to retrieve the file attribute information. But this
Call needs to open the file to retrieve the attribute, but Is there anyway
out to find out the OFFLINE attribute without actually opening the file. I
want to perform the operation of finding the OFFLINE Attribute of a file
from a VxD.
A help in this regard will be highly appreciated.
Thanx and regards
Sriram