IMsTscNonScriptable::put_PortableSalt

This method sets the salt value part of a portable encoded Remote Desktop ActiveX control password.

HRESULT put_PortableSalt(
  BSTR newPortableSalt
);

Parameters

  • newPortableSalt
    [in] The portable salt part of a portable encoded password. For more information, see the following Remarks section.

Return Values

The following table shows the return values for this method.

Value Description
S_OK Salt value 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 that was generated by converting a clear-text password to portable encoded format with the get_PortableSalt method.

To set a password in portable encoded format, you must call both put_PortablePassword and put_PortableSalt.

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Discodlg.h. Mstsax.idl.
Link Library: Mstsax.lib.

See Also

IMsTscNonScriptable | get_PortableSalt

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.