Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the user name from the port supplier.
Syntax
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).