Implementation of TouchFileTimes(), thanks to Florian Stinglmayr for

submitting a rough draft.
This commit is contained in:
Thomas Weidenmueller 2004-07-30 04:22:44 +00:00 committed by Alexandre Julliard
parent e3c1c249a8
commit 02aa8d50af
1 changed files with 12 additions and 7 deletions

View File

@ -61,12 +61,17 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
/*********************************************************************** /***********************************************************************
* TouchFileTimes (IMAGEHLP.@) * TouchFileTimes (IMAGEHLP.@)
*/ */
BOOL WINAPI TouchFileTimes( BOOL WINAPI TouchFileTimes(HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
HANDLE FileHandle, LPSYSTEMTIME lpSystemTime)
{ {
FIXME("(%p, %p): stub\n", FILETIME FileTime;
FileHandle, lpSystemTime SYSTEMTIME SystemTime;
);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); if(lpSystemTime == NULL)
return FALSE; {
GetSystemTime(&SystemTime);
lpSystemTime = &SystemTime;
}
return (SystemTimeToFileTime(lpSystemTime, &FileTime) &&
SetFileTime(FileHandle, NULL, NULL, &FileTime));
} }