Share via


IMsTscNonScriptable::put_BinarySalt

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method sets the salt value part of a binary (non-portable) encoded password for the Remote Desktop ActiveX control.

Syntax

HRESULT put_BinarySalt(
  BSTR newSalt
);

Parameters

  • newSalt
    [in] String containing binary salt-value part of a binary-encoded password.

Return Value

The following table shows the return values for this method.

Value Description

S_OK

String was correctly set.

E_FAIL

The control is already connected or in the connecting state.

nonzero error code

An error occurred.

Remarks

Call this method to specify the salt value part of a connection password after you convert a clear-text password to binary-encoded format by calling get_BinarySalt.

To set a password in binary encoded format, you must call both put_BinaryPassword and put_BinarySalt.

This property can be set only if the control is not in the connected state. The method returns E_FAIL if called when the control is connected. You can check if the control is connected by calling the IMsTscAx::get_Connected method.

Requirements

Header discodlg.h, mstsax.idl
Library Mstsax.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IMsTscNonScriptable
IMsTscNonScriptable::get_BinarySalt