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

Method Close

sourcecommon/File.cpp:65–74  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

63}
64//---------------------------------------------------------------------------
65bool __fastcall TFile::Close(void)
66{
67 if( ! handle ) return false;
68 LastError = 0;
69 Error = ! CloseHandle( handle );
70 if( Error ) LastError = GetLastError();
71 handle = NULL;
72 if( Exceptions && Error ) throw 0;
73 return ! Error;
74}
75//---------------------------------------------------------------------------
76bool __fastcall TFile::IsOpen(void)
77{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected