DkmRunningProcessInfo.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(Int32, Int64, Int32, String, String, String, ReadOnlyCollection<String>, String, String, String, Int32, ReadOnlyCollection<DkmPublishedProgramInfo>, DkmRunningProcessFlags, UInt16, DkmAppPackageId) |
Create新的 DkmRunningProcessInfo 对象实例。 |
Create(Int32, Int64, Int32, String, String, String, ReadOnlyCollection<String>, String, String, String, Int32, ReadOnlyCollection<DkmPublishedProgramInfo>, DkmRunningProcessFlags, UInt16, DkmAppPackageId, Int32, DkmIISAppPoolInfo) |
Create新的 DkmRunningProcessInfo 对象实例。 此 API 是在 Visual Studio 17 RTM (DkmApiVersion.VS17RTM) 中引入的。 |
Create(Int32, Int64, Int32, String, String, String, ReadOnlyCollection<String>, String, String, String, Int32, ReadOnlyCollection<DkmPublishedProgramInfo>, DkmRunningProcessFlags, UInt16, DkmAppPackageId)
Create新的 DkmRunningProcessInfo 对象实例。
public:
static Microsoft::VisualStudio::Debugger::DefaultPort::DkmRunningProcessInfo ^ Create(int Id, long StartTime, int SessionId, System::String ^ Name, System::String ^ Title, System::String ^ UserName, System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ ClrVersions, System::String ^ CommandLine, System::String ^ CurrentDirectory, System::String ^ EnvironmentBlock, int IntegrityLevel, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::DefaultPort::DkmPublishedProgramInfo ^> ^ PublishedPrograms, Microsoft::VisualStudio::Debugger::DefaultPort::DkmRunningProcessFlags Flags, System::UInt16 ProcessorArchitecture, Microsoft::VisualStudio::Debugger::DefaultPort::DkmAppPackageId ^ AppPackageId);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo Create (int Id, long StartTime, int SessionId, string Name, string Title, string UserName, System.Collections.ObjectModel.ReadOnlyCollection<string> ClrVersions, string CommandLine, string CurrentDirectory, string EnvironmentBlock, int IntegrityLevel, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DefaultPort.DkmPublishedProgramInfo> PublishedPrograms, Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessFlags Flags, ushort ProcessorArchitecture, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId AppPackageId);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo Create (int Id, long StartTime, int SessionId, string? Name, string? Title, string? UserName, System.Collections.ObjectModel.ReadOnlyCollection<string>? ClrVersions, string? CommandLine, string? CurrentDirectory, string? EnvironmentBlock, int IntegrityLevel, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DefaultPort.DkmPublishedProgramInfo>? PublishedPrograms, Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessFlags Flags, ushort ProcessorArchitecture, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId? AppPackageId);
static member Create : int * int64 * int * string * string * string * System.Collections.ObjectModel.ReadOnlyCollection<string> * string * string * string * int * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DefaultPort.DkmPublishedProgramInfo> * Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessFlags * uint16 * Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo
Public Shared Function Create (Id As Integer, StartTime As Long, SessionId As Integer, Name As String, Title As String, UserName As String, ClrVersions As ReadOnlyCollection(Of String), CommandLine As String, CurrentDirectory As String, EnvironmentBlock As String, IntegrityLevel As Integer, PublishedPrograms As ReadOnlyCollection(Of DkmPublishedProgramInfo), Flags As DkmRunningProcessFlags, ProcessorArchitecture As UShort, AppPackageId As DkmAppPackageId) As DkmRunningProcessInfo
参数
- Id
- Int32
[In]操作系统分配的进程 ID (PID) 。
- StartTime
- Int64
[In] 指示进程启动时间的 64 位日期时间值。 启动时间以及启动进程的 ID 和计算机可以唯一标识进程。
- SessionId
- Int32
[In]如果未) 获取进程 (-1 的终端服务器会话 ID。
- Name
- String
[In,Optional]进程起始可执行文件的完整路径。 如果无法获取完整路径,则只能包含基本可执行文件名称。
- Title
- String
[In,Optional]进程main窗口的标题 ((如果有任何) )。
- UserName
- String
[In,Optional]进程在 (下运行的用户名,例如:MyCompany\MyAlias) 。
- ClrVersions
- ReadOnlyCollection<String>
[In,Optional]加载到调试进程中的所有 CLR 实例的版本号。
- CommandLine
- String
[In,Optional]用于启动进程的命令行。
- CurrentDirectory
- String
[In,Optional]进程的当前目录。
- EnvironmentBlock
- String
[In,Optional]进程的环境块。
- IntegrityLevel
- Int32
[In]SECURITY_MANDATORY_*_RID值,用于指示此过程的完整性级别。 如果完整性级别未知/无效,例如在不存在完整性级别的预 Vista 操作系统上,或者无法获取进程的用户标识,则使用 -1/MAXDWORD。
- PublishedPrograms
- ReadOnlyCollection<DkmPublishedProgramInfo>
[In,Optional]提供有关目标进程中处于活动状态的运行时的信息。 目前,它用于脚本调试和 CoreCLR 调试,将来可能用于其他运行时。
- Flags
- DkmRunningProcessFlags
[In]包含正在运行进程的布尔属性的标志。
- ProcessorArchitecture
- UInt16
[In]示例:PROCESSOR_ARCHITECTURE_INTEL (0) 、PROCESSOR_ARCHITECTURE_ARM (5) 、PROCESSOR_ARCHITECTURE_AMD64 (9) 或 PROCESSOR_ARCHITECTURE_ARM64 (12) 。 此设置是在设置 DkmRunningProcessInfoPropertyMask.BasicInfoFlags 时计算的。
- AppPackageId
- DkmAppPackageId
[In,Optional]此过程的应用程序包的 ID。 如果进程不是 Windows 应用商店应用的一部分,则为 null,或者Windows Phone应用程序。 此设置是在设置 DkmRunningProcessInfoPropertyMask.AppPackageId 时计算的。
返回
[Out]此方法调用的结果。
适用于
Create(Int32, Int64, Int32, String, String, String, ReadOnlyCollection<String>, String, String, String, Int32, ReadOnlyCollection<DkmPublishedProgramInfo>, DkmRunningProcessFlags, UInt16, DkmAppPackageId, Int32, DkmIISAppPoolInfo)
Create新的 DkmRunningProcessInfo 对象实例。
此 API 是在 Visual Studio 17 RTM (DkmApiVersion.VS17RTM) 中引入的。
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo Create (int Id, long StartTime, int SessionId, string? Name, string? Title, string? UserName, System.Collections.ObjectModel.ReadOnlyCollection<string>? ClrVersions, string? CommandLine, string? CurrentDirectory, string? EnvironmentBlock, int IntegrityLevel, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DefaultPort.DkmPublishedProgramInfo>? PublishedPrograms, Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessFlags Flags, ushort ProcessorArchitecture, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId? AppPackageId, int ParentId, Microsoft.VisualStudio.Debugger.DefaultPort.DkmIISAppPoolInfo? AppPool);
static member Create : int * int64 * int * string * string * string * System.Collections.ObjectModel.ReadOnlyCollection<string> * string * string * string * int * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DefaultPort.DkmPublishedProgramInfo> * Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessFlags * uint16 * Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId * int * Microsoft.VisualStudio.Debugger.DefaultPort.DkmIISAppPoolInfo -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmRunningProcessInfo
Public Shared Function Create (Id As Integer, StartTime As Long, SessionId As Integer, Name As String, Title As String, UserName As String, ClrVersions As ReadOnlyCollection(Of String), CommandLine As String, CurrentDirectory As String, EnvironmentBlock As String, IntegrityLevel As Integer, PublishedPrograms As ReadOnlyCollection(Of DkmPublishedProgramInfo), Flags As DkmRunningProcessFlags, ProcessorArchitecture As UShort, AppPackageId As DkmAppPackageId, ParentId As Integer, AppPool As DkmIISAppPoolInfo) As DkmRunningProcessInfo
参数
- Id
- Int32
[In]操作系统分配的进程 ID (PID) 。
- StartTime
- Int64
[In] 指示进程启动时间的 64 位日期时间值。 启动时间以及启动进程的 ID 和计算机可以唯一标识进程。
- SessionId
- Int32
[In]如果未) 获取进程 (-1 的终端服务器会话 ID。
- Name
- String
[In,Optional]进程起始可执行文件的完整路径。 如果无法获取完整路径,则只能包含基本可执行文件名称。
- Title
- String
[In,Optional]进程main窗口的标题 ((如果有任何) )。
- UserName
- String
[In,Optional]进程在 (下运行的用户名,例如:MyCompany\MyAlias) 。
- ClrVersions
- ReadOnlyCollection<String>
[In,Optional]加载到调试进程中的所有 CLR 实例的版本号。
- CommandLine
- String
[In,Optional]用于启动进程的命令行。
- CurrentDirectory
- String
[In,Optional]进程的当前目录。
- EnvironmentBlock
- String
[In,Optional]进程的环境块。
- IntegrityLevel
- Int32
[In]SECURITY_MANDATORY_*_RID值,用于指示此过程的完整性级别。 如果完整性级别未知/无效,例如在不存在完整性级别的预 Vista 操作系统上,或者无法获取进程的用户标识,则使用 -1/MAXDWORD。
- PublishedPrograms
- ReadOnlyCollection<DkmPublishedProgramInfo>
[In,Optional]提供有关目标进程中处于活动状态的运行时的信息。 目前,它用于脚本调试和 CoreCLR 调试,将来可能用于其他运行时。
- Flags
- DkmRunningProcessFlags
[In]包含正在运行进程的布尔属性的标志。
- ProcessorArchitecture
- UInt16
[In]示例:PROCESSOR_ARCHITECTURE_INTEL (0) 、PROCESSOR_ARCHITECTURE_ARM (5) 、PROCESSOR_ARCHITECTURE_AMD64 (9) 或 PROCESSOR_ARCHITECTURE_ARM64 (12) 。 此设置是在设置 DkmRunningProcessInfoPropertyMask.BasicInfoFlags 时计算的。
- AppPackageId
- DkmAppPackageId
[In,Optional]此过程的应用程序包的 ID。 如果进程不是 Windows 应用商店应用的一部分,则为 null,或者Windows Phone应用程序。 此设置是在设置 DkmRunningProcessInfoPropertyMask.AppPackageId 时计算的。
- ParentId
- Int32
[In]如果操作系统分配了任何) ,则父进程的进程 id (PID) (。
- AppPool
- DkmIISAppPoolInfo
[In,Optional]有关关联的 IIS 应用程序池的信息(如果有)。
返回
[Out]此方法调用的结果。