Debugging Tools for Windows |
The GetRunningProcessDescription and GetRunningProcessDescriptionWide methods return a description of the process that includes the executable image name, the service names, the MTS package names, and the command line.
HRESULT
IDebugClient::GetRunningProcessDescription(
IN ULONG64 Server,
IN ULONG SystemId,
IN ULONG Flags,
OUT OPTIONAL PSTR ExeName,
IN ULONG ExeNameSize,
OUT OPTIONAL PULONG ActualExeNameSize,
OUT OPTIONAL PSTR Description,
IN ULONG DescriptionSize,
OUT OPTIONAL PULONG ActualDescriptionSize
);
HRESULT
IDebugClient3::GetRunningProcessDescriptionWide(
IN ULONG64 Server,
IN ULONG SystemId,
IN ULONG Flags,
OUT OPTIONAL PWSTR ExeName,
IN ULONG ExeNameSize,
OUT OPTIONAL PULONG ActualExeNameSize,
OUT OPTIONAL PWSTR Description,
IN ULONG DescriptionSize,
OUT OPTIONAL PULONG ActualDescriptionSize
);
#ifdef UNICODE
#define GetRunningProcessDescriptionT GetRunningProcessDescriptionWide
#else
#define GetRunningProcessDescriptionT GetRunningProcessDescription
#endif
Flag | Description |
---|---|
DEBUG_PROC_DESC_NO_PATHS | Return only file names without path names. |
DEBUG_PROC_DESC_NO_SERVICES | Do not look up service names. |
DEBUG_PROC_DESC_NO_MTS_PACKAGES | Do not look up MTS package names. |
DEBUG_PROC_DESC_NO_COMMAND_LINE |
Do not retrieve the command line. |
This method may also return error values. See Return Values for more details.
GetRunningProcessDescription is available in all versions of IDebugClient. GetRunningProcessDescriptionWide is available in IDebugClient3 and later versions.
This method is available only for live user-mode debugging.
For more information about creating and attaching to live user-mode targets, see Live User-Mode Targets.
Headers: Defined in dbgeng.h. Include dbgeng.h.
GetRunningProcessSystemIds, GetRunningProcessSystemIdByExecutableName, ConnectProcessServer, AttachProcess, CreateProcessAndAttach2