MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / SetDosTime

Method SetDosTime

sourcecommon/File.cpp:306–319  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

304}
305//---------------------------------------------------------------------------
306bool __fastcall TFile::SetDosTime(DWORD t)
307{
308 //DWORD dos = 0L;
309 FILETIME CT, LAT, LWT, NORMAL;
310 if( ! handle ) return false;
311 Error = ! GetFileTime(handle, &CT, &LAT, &LWT);
312 DosDateTimeToFileTime((WORD)(t>>16), (WORD)t, &NORMAL);
313
314 LocalFileTimeToFileTime(&NORMAL, &LWT);
315 Error = ! SetFileTime(handle, &CT, &LAT, &LWT);
316
317 if( Exceptions && Error ) throw 0;
318 return true;
319}
320//---------------------------------------------------------------------------
321// TFileTimeToDateTime ��� ���� � utils.cpp
322// ���������� 100 ������������� ����� � ������

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected