CompareFileTime

  LONG CompareFileTime(lpft1, lpft2)    
  LPFILETIME lpft1; /* address of file time 1 */
  LPFILETIME lpft2; /* address of file time 2 */

The CompareFileTime function compares two 64-bit file times.

Parameters

lpft1

Points to a FILETIME structure that specifies a 64-bit file time. The FILETIME structure has the following format:

typedef struct _FILETIME { /* ft */

DWORD dwLowDateTime; /* low 32 bits */

DWORD dwHighDateTime; /* high 32-bits */

} FILETIME, *PFILETIME, *LPFILETIME;

lpft2

Points to a FILETIME structure that specifies a 64-bit file time.

Return Value

The return value is one of the following values:

Value Meaning

-1 file time one is less than file time two
0 file time one is equal to than file time two
+1 file time one is greater than file time two

See Also

GetFileTime