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

Function FormatLastError2

sourcecommon/utils.cpp:1297–1314  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1295}
1296//---------------------------------------------------------------------------
1297AnsiString FormatLastError2(DWORD error)
1298{
1299 AnsiString rv;
1300 LPVOID lpMsgBuf;
1301 if( ! FormatMessage(
1302 FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
1303 NULL,
1304 error,
1305 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
1306 (LPTSTR) &lpMsgBuf,
1307 0,
1308 NULL)
1309 )
1310 return rv;
1311 rv = (LPCTSTR)lpMsgBuf;
1312 LocalFree( lpMsgBuf );
1313 return rv;
1314}
1315//---------------------------------------------------------------------------
1316AnsiString __fastcall GetValueFromString(AnsiString s)
1317{

Callers 7

RotateFileMethod · 0.85
MyPlaySoundFunction · 0.85
PlayButtonClickMethod · 0.85
CreateShortcutFunction · 0.85
DeleteShortcutFunction · 0.85
aPingExecuteMethod · 0.85
ProcessMessageRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected