Roger Dube (2004-04-05 08:11):
> Has anyone dealt with the process of getting a file's creation date and/or date modifed information?
> I could use a pointer or two there.
Hi Roger,
my Win32 Programmer's Reference tells me that there is a function
BOOL GetFileInformationByHandle(HANDLE hFile, LPBHFI lpFileInfo)
where lpFileInfo points to a BY_HANDLE_FILE_INFORMATION structure.
This one consists of 7 DWORDs and 3 FILETIMES (create, access, write).
This function gives you all kinds of information.
If you're only interested in the time aspects, you should go with
BOOL GetFileTime(hFile, create, access, write)
where hFile is a HANDLE and the remaining arguments are again FILETIMEs,
made up of DWORD lowDateTime and DWORD highDateTime.
Once you have a FILETIME, you might want to convert it with
FileTimeToLocalFileTime and then FileTimeToSystemTime
Wow, it seems to be quite a job to do this on Windows ...
hth,
s.
-- Stefan Schmiedl +-------------------------------+----------------------------------------+ |Approximity GmbH | EDV-Beratung Schmiedl | |http://www.approximity.com | Am Bräuweiher 4, 93499 Zandt, Germany | |mailto:stefan_at_approximity.com | Tel. (09944) 3068-98, Fax -97 | +-------------------------------+----------------------------------------+ ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Mon Apr 05 2004 - 08:51:25 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.