CompareFileTime Function

Compares two file times.

Syntax

C++
LONG WINAPI CompareFileTime(
  __in  const FILETIME *lpFileTime1,
  __in  const FILETIME *lpFileTime2
);

Parameters

lpFileTime1 [in]

A pointer to a FILETIME structure that specifies the first file time.

lpFileTime2 [in]

A pointer to a FILETIME structure that specifies the second file time.

Return Value

The return value is one of the following values.

Return valueDescription
-1

First file time is earlier than second file time.

0

First file time is equal to second file time.

1

First file time is later than second file time.

 

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll

See Also

GetFileTime
File Times
FILETIME
Time Functions

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Page view tracker