Skip to content

Latest commit

 

History

History
157 lines (118 loc) · 4.95 KB

imstscax-username.md

File metadata and controls

157 lines (118 loc) · 4.95 KB
title description ms.assetid ms.tgt_platform keywords topic_type api_name api_location api_type ms.topic ms.date
IMsTscAx UserName property
Specifies the user name logon credential.
9be25003-b9aa-41bb-a5a9-512546175114
multiple
UserName property Remote Desktop Services
UserName property Remote Desktop Services , IMsTscAx interface
IMsTscAx interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient interface
IMsRdpClient interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient2 interface
IMsRdpClient2 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient3 interface
IMsRdpClient3 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient4 interface
IMsRdpClient4 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient5 interface
IMsRdpClient5 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient6 interface
IMsRdpClient6 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient7 interface
IMsRdpClient7 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient8 interface
IMsRdpClient8 interface Remote Desktop Services , UserName property
UserName property Remote Desktop Services , IMsRdpClient9 interface
IMsRdpClient9 interface Remote Desktop Services , UserName property
apiref
IMsTscAx.UserName
IMsTscAx.get_UserName
IMsTscAx.put_UserName
IMsRdpClient.UserName
IMsRdpClient.get_UserName
IMsRdpClient.put_UserName
IMsRdpClient2.UserName
IMsRdpClient2.get_UserName
IMsRdpClient2.put_UserName
IMsRdpClient3.UserName
IMsRdpClient3.get_UserName
IMsRdpClient3.put_UserName
IMsRdpClient4.UserName
IMsRdpClient4.get_UserName
IMsRdpClient4.put_UserName
IMsRdpClient5.UserName
IMsRdpClient5.get_UserName
IMsRdpClient5.put_UserName
IMsRdpClient6.UserName
IMsRdpClient6.get_UserName
IMsRdpClient6.put_UserName
IMsRdpClient7.UserName
IMsRdpClient7.get_UserName
IMsRdpClient7.put_UserName
IMsRdpClient8.UserName
IMsRdpClient8.get_UserName
IMsRdpClient8.put_UserName
IMsRdpClient9.UserName
IMsRdpClient9.get_UserName
IMsRdpClient9.put_UserName
MsTscAx.dll
COM
reference
05/31/2018

IMsTscAx::UserName property

Specifies the user name logon credential.

This property is read/write.

Syntax

HRESULT put_UserName(
  [in]  BSTR newVal
);

HRESULT get_UserName(
  [out] BSTR *pUserName
);

Property value

The new user name.

Error codes

Return S_OK if successful.

Remarks

Setting the UserName property is optional. If it is not specified, the user can provide a user name when the Windows Logon dialog box appears during connection.

This property can be set only if the control is not in the connected state. It returns E_FAIL if it is called when the control is connected. You can check if the control is connected by responding to connection events in IMsTscAxEvents or examining the Connected property.

The get_UserName property method allocates the memory required for the buffer pointed to by the pVersion parameter. Calling C/C++ applications must free the memory with a call to the SysFreeString function. This is not required for Visual Basic and scripting clients.

For more information about Remote Desktop Web Connection, see Requirements for Remote Desktop Web Connection.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Type library
MsTscAx.dll
DLL
MsTscAx.dll
IID
IID_IMsTscAx is defined as 8C11EFAE-92C3-11D1-BC1E-00C04FA31489

See also

IMsRdpClient

IMsRdpClient2

IMsRdpClient3

IMsRdpClient4

IMsRdpClient5

IMsRdpClient6

IMsRdpClient7

IMsRdpClient8

IMsRdpClient9

IMsTscAx