您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetExceptionInformation函数代码示例

51自学网 2021-06-01 21:07:31
  C++
这篇教程C++ GetExceptionInformation函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GetExceptionInformation函数的典型用法代码示例。如果您正苦于以下问题:C++ GetExceptionInformation函数的具体用法?C++ GetExceptionInformation怎么用?C++ GetExceptionInformation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GetExceptionInformation函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: render

int render(winampVisModule* pVisModule){if(!running)	return -1;#	ifdef USE_STACK_WALKER	__try {		return MyRender(pVisModule);	}	__except(ExpFilter(GetExceptionInformation(), GetExceptionCode()))  {		MessageBoxA(NULL, "Fatal error in render. see alienfx_vis_crashlog for details", "Error", MB_OK | MB_ICONERROR);		return -1;  }}
开发者ID:Ingrater,项目名称:Winamp-AlienFX-Plugin,代码行数:13,


示例2: _snprintf

UINT CNetManager::executePacket_Gen_Exception(Packet* pPacket){	CHAR szTitle[MAX_PATH];	_snprintf(szTitle, MAX_PATH, "Packet: %d", pPacket->GetPacketID());	__try 	{		return executePacket_CPP_Exception(pPacket);	}	__except (tProcessInnerException(GetExceptionInformation(), g_hMainWnd, szTitle), EXCEPTION_EXECUTE_HANDLER) {}	return PACKET_EXE_CONTINUE;}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:13,


示例3: DumpMiniDump

void DumpMiniDump(PEXCEPTION_POINTERS excpInfo){	if (excpInfo == NULL) 	{		// Generate exception to get proper context in dump		__try 		{			RaiseException(EXCEPTION_BREAKPOINT, 0, 0, NULL);		} 		__except(DumpMiniDump(GetExceptionInformation()),EXCEPTION_EXECUTE_HANDLER) 		{		}	} 
开发者ID:Caboose1543,项目名称:LUNIServerProject,代码行数:13,


示例4: AFSFSControl

NTSTATUSAFSFSControl( IN PDEVICE_OBJECT LibDeviceObject,              IN PIRP Irp){    NTSTATUS ntStatus = STATUS_SUCCESS;    IO_STACK_LOCATION *pIrpSp;    pIrpSp = IoGetCurrentIrpStackLocation( Irp);    __try    {        switch( pIrpSp->MinorFunction)        {            case IRP_MN_USER_FS_REQUEST:                ntStatus = AFSProcessUserFsRequest( Irp);                break;            case IRP_MN_MOUNT_VOLUME:                break;            case IRP_MN_VERIFY_VOLUME:                break;            default:                break;        }        AFSCompleteRequest( Irp,                              ntStatus);    }    __except( AFSExceptionFilter( __FUNCTION__, GetExceptionCode(), GetExceptionInformation()) )    {        AFSDbgLogMsg( 0,                      0,                      "EXCEPTION - AFSFSControl/n");        AFSDumpTraceFilesFnc();    }    return ntStatus;}
开发者ID:sanchit-matta,项目名称:openafs,代码行数:51,


示例5: openprinter_ps

static int openprinter_ps (void){	TCHAR *gsargv[] = {		L"-dNOPAUSE", L"-dBATCH", L"-dNOPAGEPROMPT", L"-dNOPROMPT", L"-dQUIET", L"-dNoCancel",		L"-sDEVICE=mswinpr2", NULL	};	int gsargc, gsargc2, i;	TCHAR *tmpparms[100];	TCHAR tmp[MAX_DPATH];	char *gsparms[100];	if (ptr_gsapi_new_instance (&gsinstance, NULL) < 0)		return 0;	cmdlineparser (currprefs.ghostscript_parameters, tmpparms, 100 - 10);	gsargc2 = 0;	gsparms[gsargc2++] = ua (L"WinUAE");	for (gsargc = 0; gsargv[gsargc]; gsargc++) {		gsparms[gsargc2++] = ua (gsargv[gsargc]);	}	for (i = 0; tmpparms[i]; i++)		gsparms[gsargc2++] = ua (tmpparms[i]);	if (currprefs.prtname[0]) {		_stprintf (tmp, L"-sOutputFile=%%printer%%%s", currprefs.prtname);		gsparms[gsargc2++] = ua (tmp);	}	if (postscript_print_debugging) {		for (i = 0; i < gsargc2; i++) {			TCHAR *parm = au (gsparms[i]);			write_log (L"GSPARM%d: '%s'/n", i, parm);			xfree (parm);		}	}	__try {		int rc = ptr_gsapi_init_with_args (gsinstance, gsargc2, gsparms);		for (i = 0; i < gsargc2; i++) {			xfree (gsparms[i]);		}		if (rc != 0) {			write_log (L"GS failed, returncode %d/n", rc);			return 0;		}		ptr_gsapi_run_string_begin (gsinstance, 0, &gs_exitcode);	} __except (ExceptionFilter (GetExceptionInformation (), GetExceptionCode ())) {		write_log (L"GS crashed/n");		return 0;	}	psmode = 1;	return 1;}
开发者ID:kingguppy,项目名称:WinUAE,代码行数:50,


示例6: HandleCrash

int __cdecl HandleCrash(PEXCEPTION_POINTERS pExceptPtrs){	if(pExceptPtrs == 0)	{		// Raise an exception :P		__try		{			RaiseException(EXCEPTION_BREAKPOINT, 0, 0, 0);		}		__except(HandleCrash(GetExceptionInformation()), EXCEPTION_CONTINUE_EXECUTION)		{		}			}
开发者ID:satanail,项目名称:ArcTic-d,代码行数:14,


示例7: FindDlgAddTypes

/** FindDlgAddTypes** Purpose:** Enumerate object types and fill combobox with them.**/VOID FindDlgAddTypes(    HWND hwnd){    ULONG  i;    HWND   hComboBox;    SIZE_T sz;    LPWSTR lpType;    POBJECT_TYPE_INFORMATION  pObject;    hComboBox = GetDlgItem(hwnd, ID_SEARCH_TYPE);    if (hComboBox == NULL) {        return;    }    SendMessage(hComboBox, CB_RESETCONTENT, (WPARAM)0, (LPARAM)0);    if (g_pObjectTypesInfo == NULL) {        SendMessage(hComboBox, CB_ADDSTRING, (WPARAM)0, (LPARAM)L"*");        SendMessage(hComboBox, CB_SETCURSEL, (WPARAM)0, (LPARAM)0);        return;    }    //    // Warning: not all object types are listed.    //    __try {        //type collection available, list it        pObject = (POBJECT_TYPE_INFORMATION)&g_pObjectTypesInfo->TypeInformation;        for (i = 0; i < g_pObjectTypesInfo->NumberOfTypes; i++) {            sz = pObject->TypeName.MaximumLength + sizeof(UNICODE_NULL);            lpType = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sz);            if (lpType) {                _strncpy(lpType, sz / sizeof(WCHAR),                    pObject->TypeName.Buffer, pObject->TypeName.Length / sizeof(WCHAR));                SendMessage(hComboBox, CB_ADDSTRING, (WPARAM)0, (LPARAM)lpType);                HeapFree(GetProcessHeap(), 0, lpType);            }            pObject = (POBJECT_TYPE_INFORMATION)((PCHAR)(pObject + 1) +                ALIGN_UP(pObject->TypeName.MaximumLength, sizeof(ULONG_PTR)));        }        SendMessage(hComboBox, CB_ADDSTRING, (WPARAM)0, (LPARAM)L"*");        SendMessage(hComboBox, CB_SETCURSEL, (WPARAM)0, (LPARAM)0);    }    __except (exceptFilter(GetExceptionCode(), GetExceptionInformation())) {        return;    }}
开发者ID:samghub,项目名称:WinObjEx64,代码行数:57,


示例8: _tmain

int _tmain(int argc, _TCHAR* argv[]){	::SetUnhandledExceptionFilter(ExceptionFilter);	__try	{		RaiseException();	}	__except(filter(GetExceptionCode(), GetExceptionInformation()))	{		std::wcout << L"in handler" << std::endl;	}		return 0;}
开发者ID:rickerliang,项目名称:testgit,代码行数:15,


示例9: executeShell

	static int executeShell(int argc, char *argv[])	{		int code = 0;				__try		{			code = avmthane::Shell::run(argc, argv);		}		__except(avmthane::CrashFilter(GetExceptionInformation(), GetExceptionCode()))		{			code = -1;		}		return code;	}
开发者ID:FlowShift,项目名称:thane,代码行数:15,


万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。