Share via


IDebugInterceptExceptionCompleteEvent2::GetInterceptCookie

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Called when the processing of an intercepted exception has completed.

Syntax

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

Parameters

pqwCookie
[out] Unique value that is associated with the exception that was intercepted.

Return Value

If successful, returns S_OK; otherwise returns error code.

Remarks

After the InterceptCurrentException method has completed handling of an intercepted exception, it sends the IDebugInterceptExceptionCompleteEvent2 event. The handler can use the GetInterceptCookie method to retrieve the unique value associated with the exception (the same value passed to the InterceptCurrentException method).

See also