Share via


IDebugInterceptExceptionCompleteEvent2::GetInterceptCookie

Note

This article applies to Visual Studio 2015. 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

InterceptCurrentException
IDebugInterceptExceptionCompleteEvent2