PROCESS_INFO

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

Contains information about a process.

Syntax

typedef struct tagPROCESS_INFO { 
   PROCESS_INFO_FIELDS Fields;
   BSTR                bstrFileName;
   BSTR                bstrBaseName;
   BSTR                bstrTitle;
   AD_PROCESS_ID       ProcessId;
   DWORD               dwSessionId;
   BSTR                bstrAttachedSessionName;
   FILETIME            CreationTime;
   PROCESS_INFO_FLAGS  Flags;
} PROCESS_INFO;
public struct PROCESS_INFO { 
   public uint          Fields;
   public string        bstrFileName;
   public string        bstrBaseName;
   public string        bstrTitle;
   public AD_PROCESS_ID ProcessId;
   public uint          dwSessionId;
   public string        bstrAttachedSessionName;
   public FILETIME      CreationTime;
   public uint          Flags;
};

Members

Fields
A combination of flags from the PROCESS_INFO_FIELDS enumeration that specify which fields are filled out.

bstrFileName
The full path name of the process. Equivalent to calling the GetName method with the parameter GN_FILENAME.

bstrBaseName
The file name and extension of the process. Equivalent to calling the IDebugProcess2::Getname method with the parameter GN_BASENAME.

bstrTitle
The title of the process, if one exists. Equivalent to calling the IDebugProcess2::Getname method with the parameter GN_TITLE.

ProcessId
The AD_PROCESS_ID structure that identifies the process. Equivalent to calling the GetPhysicalProcessId method.

dwSessionId
The identifier of the debug session that this process is running in.

bstrAttachedSessionName
The attached session name. Equivalent to calling the GetAttachedSessionName method.

CreationTime
The time the process was created.

Flags
A combination of flags from the PROCESS_INFO_FLAGS enumeration that specify properties of the process.

Remarks

This structure is passed to the GetInfo method where it is filled in.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also