CompareFileTime

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function compares two 64-bit file times.

Syntax

LONG CompareFileTime( 
  const FILETIME* lpFileTime1,
  const FILETIME* lpFileTime2
);

Parameters

  • lpFileTime1
    [in] Long pointer to a FILETIME structure that specifies the first 64-bit file time.
  • lpFileTime2
    [in] Long pointer to a FILETIME structure that specifies the second 64-bit file time.

Return Value

A value of –1 indicates that the first file time is less than the second file time. Zero indicates that the first file time is equal to the second file time. A value of +1 indicates that the first file time is greater than the second file time.

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Time Functions
GetFileTime
FILETIME

Other Resources