lpfnEventCallback

A user-defined callback that is triggered when the transport receives any protocol event from the debugger.

Syntax

typedef void (*lpfnEventCallback)(uintptr_t Context, PS_EVENT_CODE Event);

Parameters

uintptr_t Context

A user-defined context set by the PsSetEventCallback function.

PS_EVENT_CODE Event

One of the debugging protocol events described by the PS_EVENT_CODE structure.

Return value

None.

Remarks

This callback is executed in a dedicated thread. You cannot call any other PulseSDK function within it. The engine will not continue working until the callback function returns.

It can be set at any moment during its lifetime.

It can be set to NULL, preventing any event callbacks.