IMsTscNonScriptable::get_PortablePassword (Windows CE 5.0)
This method retrieves the password part of a connection password for the Remote Desktop ActiveX control, in portable encoded format.
HRESULT get_PortablePassword(BSTR* pPortablePass);
Parameters
- pPortablePass
[out] Pointer to a string that receives the password in portable-encoded format. This should not be considered a strongly encrypted format.
Return Values
If the method succeeds, the return value is S_OK.
If it fails, the method returns a nonzero error code.
Remarks
If you first call put_ClearTextPassword to set a password in clear-text format, you can then convert the password to portable encoded format by calling get_PortablePassword.
A portable encoded password consists of a portable password and a portable salt value, and appears as a string of hexadecimal digits.
To set a password in portable-encoded format, you must call both put_PortablePassword and put_PortableSalt.
You can call the get_PortableSalt method to retrieve the portable salt part of the password.
For more information about converting clear-text passwords to encoded passwords, see the put_ClearTextPassword method.
This method allocates the memory for the buffer pointed to by pPortablePass. C/C++ applications must call the SysFreeString function to free the memory. This is not required for Visual Basic clients.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Discodlg.h. Mstsax.idl.
Link Library: Mstsax.lib.
See Also
IMsTscNonScriptable | put_PortablePassword | put_ClearTextPassword
Send Feedback on this topic to the authors