GetFileTime

BOOL GetFileTime(
  HANDLE hFile,             
  LPFILETIME lpftCreation,   
  LPFILETIME lpftLastAccess,   
  LPFILETIME lpftLastWrite  
)
 

Limitations

The time that the file in question was last modified is supported, but not the file creation or access time. The function fails if either of the latter is requested.