TouchFileTimes Function

Debug Help Library

TouchFileTimes Function

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

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

Parameters

FileHandle

A handle to the file of interest.

pSystemTime

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

Client

Requires Windows Vista, Windows XP, or Windows 2000 Professional.

Server

Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.

Header

Declared in Imagehlp.h.

Library

Use Imagehlp.lib.

DLL

Requires Imagehlp.dll.

See Also

Image Help Library OverviewImageHlp Functions
SYSTEMTIME


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.