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

Method GetDosTime

sourcecommon/File.cpp:290–304  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

288}
289//---------------------------------------------------------------------------
290DWORD __fastcall TFile::GetDosTime(void)
291{
292 DWORD dos = 0L;
293 FILETIME CT, LAT, LWT, NORMAL;
294 if( ! handle ) return dos;
295 Error = ! GetFileTime(handle, &CT, &LAT, &LWT);
296 FileTimeToLocalFileTime(&LWT, &NORMAL);
297
298 //FileTimeToDosDateTime(&CT, ((LPWORD)&dos)+1, (LPWORD)&dos);
299 //FileTimeToDosDateTime(&LAT, ((LPWORD)&dos)+1, (LPWORD)&dos);
300 FileTimeToDosDateTime(&NORMAL, ((LPWORD)&dos)+1, (LPWORD)&dos);
301
302 if( Exceptions && Error ) throw 0;
303 return dos;
304}
305//---------------------------------------------------------------------------
306bool __fastcall TFile::SetDosTime(DWORD t)
307{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected