Partager via


IMsTscNonScriptable::ResetPassword (Windows Embedded CE 6.0)

1/6/2010

This method resets all password states in the Remote Desktop ActiveX control. Call this method to clear passwords that are stored in any one of the three supported formats: clear text, portable encoded, or binary (non-portable) encoded.

Syntax

HRESULT ResetPassword();

Parameters

None.

Return Value

The following table shows the return values for this method.

Value Description

S_OK

Virtual channel was correctly created.

E_FAIL

The control is already connected or in the connecting state.

nonzero error code

An error occurred.

Remarks

You can call this method to reset the control's password after disconnecting. This ensures that subsequent connections that use the same instance of the control do not automatically log on with a previously set password.

You can only call this method 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 interface.

Requirements

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

See Also

Reference

IMsTscNonScriptable