Olli083097
asked on
How to use the GetFileTime API?
How do I use the GetFileTime API call?
BTW: Could you explain what the prefixes means?
E.G. nDrive, hFile, lpCreationTime, lpszLongPath and fPictureOwnsHandle.
What does the n, h, lp, lpsz and f mean?
BTW: Could you explain what the prefixes means?
E.G. nDrive, hFile, lpCreationTime, lpszLongPath and fPictureOwnsHandle.
What does the n, h, lp, lpsz and f mean?
ASKER
I need to know HOW to do it?!
But thanx for the help anyway...!
But thanx for the help anyway...!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops, I just saw the f in fFixedDrive part of the typOFSTRUCT structure. I have no clue what the f means :) I checked the help in VC++ 5.0 and couldn't find anything. Anybody else know?
ASKER
Thanx!
the declaration is like this:
Declare function GetFileTime& Lib "kernel32" (ByVal hfile as long, lpCreationTime as FILETIME, lpLastAccessTime as FILETIME, lpLastWriteTime as FILETIME) as Long
hFile: Long - a handle to a file
lpCreationTime: FILETIME - a FILETIME structure to load the last access time of the file
lpLastAccessTime: FILETIME - a FILETIME structure to load the last access time of the file (not supported by FAT file systems)
lpLastWriteTime: FILETIME - a FILETIME structure to load the last access time of the file
Type FILETIME '8 Bytes
dwLowDateTime as Long
dwHighDateTime as Long
EndType
64-bit number specifying the elapsed time since January 1, 1601, in 100-nanosecond increments.