次の方法で共有


IDebugPortEvents2::Event

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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:

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.

See also