A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



CompareFileTime

The CompareFileTime function compares two 64-bit file times.

VB4-32,5,6
Declare Function CompareFileTime Lib "kernel32" (lpFileTime1 As FILETIME, lpFileTime2 As FILETIME) As Long

VB.NET
System.DateTime.Compare

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Kernel32

Parameter Information
- lpFileTime1
Points to a FILETIME structure that specifies the first 64-bit file time.

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

Return Values
If the function succeeds, the return value is one of the following values:
-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.

Last update: 07 April 2006