Metodo IDebugClient3::GetEventCallbacks (dbgeng.h)

Il metodo GetEventCallbacks restituisce l'oggetto callback dell'evento registrato con questo client.

Sintassi

HRESULT GetEventCallbacks(
  [out] PDEBUG_EVENT_CALLBACKS *Callbacks
);

Parametri

[out] Callbacks

Riceve un puntatore dell'interfaccia all'oggetto callback dell'evento registrato con questo client.

Valore restituito

Questo metodo può anche restituire valori di errore. Per altre informazioni, vedere Valori restituiti .

Codice restituito Descrizione
S_OK
Il metodo è stato eseguito correttamente.

Commenti

Ogni client può avere al massimo un oggetto IDebugEventCallbacks o IDebugEventCallbacksWide registrato per la ricezione di eventi.

Se non viene registrato alcun oggetto callback eventi con il client, il valore di Callback verrà impostato su NULL.

L'interfaccia IDebugEventCallbacks estende l'interfaccia COM IUnknown. Prima di restituire l'oggetto IDebugEventCallbacks specificato da Callbacks, il motore chiama il metodo IUnknown::AddRef . Quando questo oggetto non è più necessario, è necessario chiamare il metodo IUnknown::Release .

Per altre informazioni sui callback, vedere Callback.

Requisiti

Requisito Valore
Piattaforma di destinazione Desktop
Intestazione dbgeng.h (includere Dbgeng.h)

Vedi anche

Idebugclient

IDebugClient2

IDebugClient3

IDebugClient4

IDebugClient5

IDebugEventCallbacks

SetEventCallbacks