共用方式為


PROCESS_INFO_FIELDS

Specified what kind of information to retrieve for a process.

enum enum_PROCESS_INFO_FIELDS { 
   PIF_FILE_NAME             = 0x00000001,
   PIF_BASE_NAME             = 0x00000002,
   PIF_TITLE                 = 0x00000004,
   PIF_PROCESS_ID            = 0x00000008,
   PIF_SESSION_ID            = 0x00000010,
   PIF_ATTACHED_SESSION_NAME = 0x00000020,
   PIF_CREATION_TIME         = 0x00000040,
   PIF_FLAGS                 = 0x00000080,
   PIF_ALL                   = 0x000000ff
};
typedef DWORD PROCESS_INFO_FIELDS;
public enum enum_PROCESS_INFO_FIELDS { 
   PIF_FILE_NAME             = 0x00000001,
   PIF_BASE_NAME             = 0x00000002,
   PIF_TITLE                 = 0x00000004,
   PIF_PROCESS_ID            = 0x00000008,
   PIF_SESSION_ID            = 0x00000010,
   PIF_ATTACHED_SESSION_NAME = 0x00000020,
   PIF_CREATION_TIME         = 0x00000040,
   PIF_FLAGS                 = 0x00000080,
   PIF_ALL                   = 0x000000ff
};

Members

  • PIF_FILE_NAME
    Initialize/use the bstrFileName field of the PROCESS_INFO structure.

  • PIF_BASE_NAME
    Initialize/use the bstrBaseName field of the PROCESS_INFO structure.

  • PIF_TITLE
    Initialize/use the bstrTitle field of the PROCESS_INFO structure.

  • PIF_PROCESS_ID
    Initialize/use the ProcessId field of the PROCESS_INFO structure.

  • PIF_SESSION_ID
    Initialize/use the dwSessionId field of the PROCESS_INFO structure.

  • PIF_ATTACHED_SESSION_NAME
    Initialize/use the bstrAttachedSessionName field of the PROCESS_INFO structure.

  • PIF_CREATION_TIME
    Initialize/use the CreationTime field of the PROCESS_INFO structure.

  • PIF_FLAGS
    Initialize/use the Flags field of the PROCESS_INFO structure.

  • PIF_ALL
    Fills out all fields.

Remarks

Passed to the IDebugProcess2::GetInfo method to indicate which fields of the PROCESS_INFO structure are to be initialized.

Also used in Fields field of the PROCESS_INFO structure to indicate which fields are used and valid.

These flags may be combined with a bitwise OR.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

Enumerations (Visual Studio Debugging)

PROCESS_INFO