Platform SDK: Debugging and Error Handling

TouchFileTimes

The TouchFileTimes function updates the date and time at which the specified file was last modified.

BOOL TouchFileTimes (
  HANDLE FileHandle,
  PSYSTEMTIME pSystemTime
);

Parameters

FileHandle
[in] Handle to the file of interest.
pSystemTime
[in] Pointer to a SYSTEMTIME structure. If this parameter is NULL, the current system date and time is used.

Return Value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Imagehlp.h.
  Library: Use Imagehlp.lib.

See Also

Image Help Library Overview, ImageHlp Functions, SYSTEMTIME