Share via


ICorDebugManagedCallback3::CustomNotification Method

Indicates that a custom debugger notification has been raised.

HRESULT CustomNotification(ICorDebugThread *    pThread,
                           ICorDebugAppDomain * pAppDomain);

Parameters

  • pThread
    [in] A pointer to the thread that raised the notification.

  • pAppDomain
    [in] A pointer to the application domain that contains the thread that raised the notification.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT

Description

S_OK

The method completed successfully.

Remarks

A subsequent call to the ICorDebugThread4::GetCurrentCustomDebuggerNotification method retrieves the thread object that was passed to the Debugger.NotifyOfCrossThreadDependency method. The thread object's type must have been previously enabled by calling the ICorDebugProcess3::SetEnableCustomNotification method. The debugger can read type-specific parameters from the fields of the thread object, and can store responses into fields.

The ICorDebug interface imposes no policy on the types of notifications or their contents, and the semantics of the notifications are strictly a contract between debuggers, applications, and the .NET Framework.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4

See Also

Reference

ICorDebugManagedCallback3 Interface

Other Resources

Debugging Interfaces

Debugging (Unmanaged API Reference)