__try
{
}
__except
(
LogStructuredException
(
GetExceptionInformation
()))
{
}
int LogStructuredException ( EXCEPTION_POINTERS * pExcept )
{
char
msg
[1024]={0};
sprintf
(
msg
,
"Exception code:%lu,Exception address:%lu, ExceptionFlags:%lu \n"
,
pExcept
->
ExceptionRecord
->
ExceptionCode
,
pExcept
->
ExceptionRecord
->
ExceptionAddress
,
pExcept
->
ExceptionRecord
->
ExceptionFlags
);
g_runLog
.
Push
(
msg
);
return
1;
}