Share via


IMsTscNonScriptable::put_PortableSalt (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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 Value

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

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

See Also

Reference

IMsTscNonScriptable
IMsTscNonScriptable::get_PortableSalt