次の方法で共有


IDebugInterceptExceptionCompleteEvent2::GetInterceptCookie

インターセプトされた例外の処理が完了したときに呼び出されます。

構文

int GetInterceptCookie(
   out ulong pqwCookie
);

パラメーター

pqwCookie
[out] インターセプトされた例外に関連付けられている一意の値。

戻り値

成功した場合は、S_OK を返します。それ以外の場合は、エラー コードを返します。

解説

InterceptCurrentException メソッドでは、インターセプトされた例外の処理の完了後に、IDebugInterceptExceptionCompleteEvent2 イベントが送信されます。 ハンドラーでは GetInterceptCookie メソッドを使用して、例外に関連付けられている一意の値 (InterceptCurrentException メソッドに渡されたものと同じ値) を取得できます。

関連項目