Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.23 KB

CompareFileTime.md

File metadata and controls

53 lines (37 loc) · 1.23 KB

Home

Function name : CompareFileTime

Group: Time - Library: kernel32


The CompareFileTime function compares two file times.


Code examples:

Comparing file times
Building a tree of subdirectories for a given path using FindFile functions

Declaration:

LONG CompareFileTime(
  CONST FILETIME *lpFileTime1,  // first file time
  CONST FILETIME *lpFileTime2   // second file time
);  

FoxPro declaration:

DECLARE INTEGER CompareFileTime IN kernel32;
	STRING lpFileTime1,;
	STRING lpFileTime2  

Parameters:

lpFileTime1 [in] Pointer to a FILETIME structure that specifies the first file time.

lpFileTime2 [in] Pointer to a FILETIME structure that specifies the second file time.


Return value:

The return value is one of the following values.

Value Meaning –1 First file time is less than second file time.  0 First file time is equal to second file time.  1 First file time is greater than second file time.