共用方式為


IDebugInterceptExceptionCompleteEvent2::GetInterceptCookie

當被攔截的例外狀況處理完成時呼叫。

HRESULT GetInterceptCookie(
   UINT64* pqwCookie
);
int GetInterceptCookie(
   out ulong pqwCookie
);

參數

  • pqwCookie
    [] out已攔截的例外狀況相關聯的唯一值。

傳回值

如果成功的話,會傳回S_OK。 否則會傳回錯誤碼。

備註

IDebugStackFrame3::InterceptCurrentException方法完成時被攔截的例外狀況的處理,它會傳送IDebugInterceptExceptionCompleteEvent2事件。 處理常式可以使用GetInterceptCookie方法來擷取唯一的例外狀況相關聯的值 (相同的值傳遞至InterceptCurrentException 方法)。

請參閱

參考

IDebugStackFrame3::InterceptCurrentException

IDebugInterceptExceptionCompleteEvent2