IMsTscNonScriptable::ResetPassword

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.

HRESULT ResetPassword();

Parameters

None.

Return Values

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

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

See Also

IMsTscNonScriptable

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.