IFPCServer3::SetUserNameAndPassword method
Applies to: desktop apps only
The SetUserNameAndPassword method sets the server current user name and password.
Syntax
HRESULT SetUserNameAndPassword(
[in] BSTR NewUserName,
[in] String NewUserName,
[in] BSTR CurrentPassword,
[in] String CurrentPassword,
[in] BSTR NewPassword,
[in] String NewPassword
);
FPCServer.SetUserNameAndPassword( _
ByVal NewUserName As BSTR, _
ByVal NewUserName As String, _
ByVal CurrentPassword As BSTR, _
ByVal CurrentPassword As String, _
ByVal NewPassword As BSTR, _
ByVal NewPassword As String _
)
Parameters
NewUserName [in]
C++ Required. BSTR that specifies the new user name.
VB Required. String that specifies the new user name.
CurrentPassword [in]
C++ Required. BSTR that specifies the current password.
VB Required. String that specifies the current password.
NewPassword [in]
C++ Required. BSTR that specifies the new password.
VB Required. String that specifies the new password.
Return value
C++
This method returns S_OK if the call is successful; otherwise, it returns an error code.
VB
If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only) |
Version |
Forefront Threat Management Gateway (TMG) 2010 |
IDL |
Msfpccom.idl |
DLL |
Msfpccom.dll |
See also
Build date: 7/12/2010