Freigeben über


ICorDebug::SetUnmanagedHandler Method

Specifies the event handler object for unmanaged events.

HRESULT SetUnmanagedHandler (
    [in] ICorDebugUnmanagedCallback  *pCallback
);

Parameters

Remarks

The event handler object for unmanaged events must be set after a call to ICorDebug::Initialize Method and before any calls to ICorDebug::CreateProcess Method or ICorDebug::DebugActiveProcess Method. However, for legacy purposes, you are not required to set the event handler object for unmanaged events until the first native debug event is raised. Specifically, if ICorDebug::CreateProcess has set the CREATE_SUSPENDED flag, native debug events cannot be dispatched until the main thread is resumed.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorDebug Interface