Partilhar via


IDebugProcess2::GetName

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

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

Reference

IDebugProcess2

GETNAME_TYPE