Share via


IDebugProcess2::GetName

Note

This article applies to Visual Studio 2015. 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

Gets the title, friendly name, or file name of the process.

Syntax

HRESULT GetName(   
   GETNAME_TYPE  gnType,  
   BSTR*         pbstrName  
);  
int GetName(   
   enum_GETNAME_TYPE  gnType,  
   out string         pbstrName  
);  

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.

See Also

IDebugProcess2
GETNAME_TYPE