Export (0) Print
Expand All

TouchFileTimes function

Updates the date and time at which the specified file was last modified.

Syntax


BOOL TouchFileTimes(
  _In_  HANDLE FileHandle,
  _In_  PSYSTEMTIME pSystemTime
);

Parameters

FileHandle [in]

A handle to the file of interest.

pSystemTime [in]

A 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.

Remarks

All ImageHlp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Imagehlp.h

Library

Imagehlp.lib

DLL

Imagehlp.dll

See also

Image Help Library Overview
ImageHlp Functions
SYSTEMTIME

 

 

Community Additions

ADD
Show:
© 2014 Microsoft