IDkmRunningProcessInfoProvider.PrepareForDebuggingProcess Method

Definition

Called by the SDM prior to start debugging. It is used to obtain current information about the process, ensure that the process can be debugged, and to make any operating system configuration changes (ex: enabling enhanced error reporting) to improve debugging.

public:
 Microsoft::VisualStudio::Debugger::DefaultPort::DkmRunningProcessInfo ^ PrepareForDebuggingProcess(Microsoft::VisualStudio::Debugger::DefaultPort::DkmTransportConnection ^ connection, int id, long startTime, Microsoft::VisualStudio::Debugger::DefaultPort::DkmRunningProcessInfoPropertyMask requestedPropertyMask);
public Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo PrepareForDebuggingProcess (Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection connection, int id, long startTime, Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfoPropertyMask requestedPropertyMask);
abstract member PrepareForDebuggingProcess : Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection * int * int64 * Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfoPropertyMask -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo
Public Function PrepareForDebuggingProcess (connection As DkmTransportConnection, id As Integer, startTime As Long, requestedPropertyMask As DkmRunningProcessInfoPropertyMask) As DkmRunningProcessInfo

Parameters

connection
DkmTransportConnection

[In] This represents a connection between the monitor and the IDE. It can either be a local connection if the monitor is running in the same process as the IDE, or it can be a remote connection. In the monitor process, there is only one connection.

id
Int32

[In] Process Id (PID) assigned by the operating system.

startTime
Int64

[In] 64-bit date time value indicating when the process was started. The start time along with the id and the machine where the process was started can uniquely identify a process. '0' can be passed if the start time is unknown.

requestedPropertyMask
DkmRunningProcessInfoPropertyMask

[In] Flags indicating which properties of DkmRunningProcessInfo should be computed.

Returns

[Out] Information about the requested process.

Applies to