다음을 통해 공유


IDebugPortEvents2::Event

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method sends events that signify the creation and destruction of processes and programs on a port.

Syntax

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:

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

IDebugPortEvents2
IDebugCoreServer2
IDebugPort2
IDebugProcess2
IDebugProgram2
IDebugEvent2