Edit

IDebugProcessSecurity::GetUserName

Gets the user name from the port supplier.

Syntax

int GetUserName (
    string pbstrUserName
);

Parameters

pbstrUserName
[out] A string containing the user name.

Return Value

If the method succeeds, it returns S_OK. Otherwise it returns an error code.

Remarks

GetUserName returns the user name that is displayed in the User Name column of the Attach to Process dialog box. To view the Attach to Process dialog box, click Attach to Process on the Tools menu in the Visual Studio integrated development environment (IDE).

See also