Share via


IDebugInterceptExceptionCompleteEvent2::GetInterceptCookie

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

語法

int GetInterceptCookie(
   out ulong pqwCookie
);

參數

pqwCookie
[out]與截獲例外狀況相關聯的唯一值。

傳回值

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

備註

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

另請參閱