/
*
*
Note that
if
the exe
is
managed app, we don't really need to
*
call exit
or
_c_exit. .cctor should be able to take care of
*
this.
*
/
if
( !managedapp )
exit(mainret);
if
(has_cctor
=
=
0
)
_cexit();
}
__except ( _XcptFilter(GetExceptionCode(), GetExceptionInformation()) )
{
/
*
*
Should never reach here
*
/
mainret
=
GetExceptionCode();
/
*
*
Note that
if
the exe
is
managed app, we don't really need to
*
call exit
or
_c_exit. .cctor should be able to take care of
*
this.
*
/
if
( !managedapp )
_exit(mainret);
if
(has_cctor
=
=
0
)
_cexit();
}
/
*
end of
try
-
except
*
/
return
mainret;