IDebugProcess2::GetName
Gets the title, friendly name, or file name of the process.
Syntax
Parameters
gnType
[in] A value from the GETNAME_TYPE enumeration that specifies what type of name to return.
pbstrName
[out] Returns the name of the process.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.