DkmDebugProcessRequest.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建新的 DkmDebugProcessRequest 对象实例。
此 API 是在 Visual Studio 14 RTM (VS14RTM) 中引入的。
public:
static Microsoft::VisualStudio::Debugger::Start::DkmDebugProcessRequest ^ Create(int ProcessId, long StartTime, Microsoft::VisualStudio::Debugger::DkmProcess ^ LogicalParentProcess, System::String ^ Path, System::Collections::ObjectModel::ReadOnlyCollection<Guid> ^ EngineFilter, Microsoft::VisualStudio::Debugger::Start::DkmDebugProcessRequestFlags Flags);
public static Microsoft.VisualStudio.Debugger.Start.DkmDebugProcessRequest Create (int ProcessId, long StartTime, Microsoft.VisualStudio.Debugger.DkmProcess LogicalParentProcess, string Path, System.Collections.ObjectModel.ReadOnlyCollection<Guid> EngineFilter, Microsoft.VisualStudio.Debugger.Start.DkmDebugProcessRequestFlags Flags);
static member Create : int * int64 * Microsoft.VisualStudio.Debugger.DkmProcess * string * System.Collections.ObjectModel.ReadOnlyCollection<Guid> * Microsoft.VisualStudio.Debugger.Start.DkmDebugProcessRequestFlags -> Microsoft.VisualStudio.Debugger.Start.DkmDebugProcessRequest
Public Shared Function Create (ProcessId As Integer, StartTime As Long, LogicalParentProcess As DkmProcess, Path As String, EngineFilter As ReadOnlyCollection(Of Guid), Flags As DkmDebugProcessRequestFlags) As DkmDebugProcessRequest
参数
- ProcessId
- Int32
中调试器应附加到的进程。 通常,这应该是仍处于初始挂起点的新进程。 但是,在某些情况下(例如在基本 dm 已附加到进程时),只发送请求来使调试器的其余部分准备好调试进程时,此限制可能不适用。
- StartTime
- Int64
[In] 64 位 date time 值,指示进程的启动时间。 开始时间连同 id 和启动进程的计算机可以唯一地标识进程。
- LogicalParentProcess
- DkmProcess
中逻辑上要调试的新进程的父进程的进程。 对于类似于子进程调试的内容,这通常是实际的父进程。 在其他情况下,它可以是执行的进程,这是激发要调试的请求的操作。
- Path
- String
中进程启动可执行文件的完整路径。
- EngineFilter
- ReadOnlyCollection<Guid>
[In,可选]用于调试此进程的一组调试引擎的 guid。 如果为 null,则调试器将根据任何子进程调试设置来确定正确的引擎筛选器。 目前,这只是从父进程使用引擎,但将来可能会更改。 若要强制使用同一引擎,调用方应传递 LogicalParentProcess,而不是 null。
中在 DkmDebugProcessRequest 对象中传递的标志。
返回
弄此方法调用的结果。