ReactOS  0.4.14-dev-358-gbef841c
imagehlp_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "imagehlp.h"
#include "wine/debug.h"
Include dependency graph for imagehlp_main.c:

Go to the source code of this file.

Functions

BOOL WINAPI TouchFileTimes (HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
 

Function Documentation

◆ TouchFileTimes()

BOOL WINAPI TouchFileTimes ( HANDLE  FileHandle,
LPSYSTEMTIME  lpSystemTime 
)

Definition at line 38 of file imagehlp_main.c.

39 {
40  FILETIME FileTime;
41  SYSTEMTIME SystemTime;
42 
43  if(lpSystemTime == NULL)
44  {
45  GetSystemTime(&SystemTime);
46  lpSystemTime = &SystemTime;
47  }
48 
49  return (SystemTimeToFileTime(lpSystemTime, &FileTime) &&
50  SetFileTime(FileHandle, NULL, NULL, &FileTime));
51 }
BOOL WINAPI SetFileTime(IN HANDLE hFile, CONST FILETIME *lpCreationTime OPTIONAL, CONST FILETIME *lpLastAccessTime OPTIONAL, CONST FILETIME *lpLastWriteTime OPTIONAL)
Definition: fileinfo.c:1098
HANDLE FileHandle
Definition: stats.c:38
smooth NULL
Definition: ftsmooth.c:416
VOID WINAPI GetSystemTime(OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:317
BOOL WINAPI SystemTimeToFileTime(IN CONST SYSTEMTIME *lpSystemTime, OUT LPFILETIME lpFileTime)
Definition: time.c:148