让程序崩溃时自动写minidump
摘要:
首先在合适的地方调用LPTOP_LEVEL_EXCEPTION_FILTER pOdk = SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); MyUnhandledExceptionFilter的实现如下:LONG WINAPI MyUnhandledExceptionFilter( __in struct _EXCEPTION_POINTERS* ExceptionInfo ){ HANDLE hFile = CreateFile("mini.dmp", // name of the write GENERI 阅读全文
posted @ 2011-04-01 20:09 FlowingCloud 阅读(963) 评论(0) 推荐(0) 编辑