The SetUserNameAndPassword method sets the server current user name and password.
HRESULT SetUserNameAndPassword( [in] BSTR NewUserName, [in] BSTR CurrentPassword, [in] BSTR NewPassword );
Required. BSTR that specifies the new user name.
Required. BSTR that specifies the current password.
Required. BSTR that specifies the new password.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Sub SetUserNameAndPassword( _ ByVal NewUserName As String, _ ByVal CurrentPassword As String, _ ByVal NewPassword As String _ )
Required. String that specifies the new user name.
Required. String that specifies the current password.
Required. String that specifies the new password.
If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.