IDebugPortEvents2::Event
This method sends events that signify the creation and destruction of processes and programs on a port.
HRESULT Event(
IDebugCoreServer2* pServer,
IDebugPort2* pPort,
IDebugProcess2* pProcess,
IDebugProgram2* pProgram,
IDebugEvent2* pEvent,
REFIID riidEvent
);
int Event(
IDebugCoreServer2 pServer,
IDebugPort2 pPort,
IDebugProcess2 pProcess,
IDebugProgram2 pProgram,
IDebugEvent2 pEvent,
ref Guid riidEvent
);
Parameters
pMachine
[in] An IDebugCoreServer2 object that represents the debug server (there is one for every instance of Visual Studio) in which the event occurred.pPort
[in] An IDebugPort2 object that represents the port in which the event occurred.pProcess
[in] An IDebugProcess2 object that represents the process in which the event occurred.pProgram
[in] An IDebugProgram2 object that represents the program in which the event occurred.pEvent
[in] An IDebugEvent2 object that identifies the event. The possible events are as follows:riidEvent
[in] The GUID of the event. Because the event is cast to IDebugEvent2 before calling this method, this identifier makes it easier to determine which event is being sent.
Return Value
If successful, returns S_OK; otherwise, returns an error code.