ChangePassword method

Method
short ChangePassword (
char * pCurrentPassword,
char * pNewPassword1,
char * pNewPassword2 )
Parameters
pCurrentPassword
Specifies the users current password.
pNewPassword1
Specifies the users new password.
pNewPassword2
Specifies the users new password again. This is for verification.
Description
Content Manager OnDemand changes the logon password for the current user.
Return Value
Refer to return codes.
Also see
Logon method

C/C++

 CArsOle * pArsCtrl;
 short rc;

  .
  .

 rc = pArsCtrl->ChangePassword( "tt1sd",
                                "sfd45r",
                                "sfd45r" );
 if ( rc != ARS_OLE_RC_SUCCESS )
    ERROR;

   .
   .

Visual Basic

Dim rc As Integer

   .
   .

 rc = ArsOle.ChangePassword ( "tt1sd",   _
                              "sfd45r",  _
                              "sfd45r" )
 if rc <> ARS_OLE_RC_SUCCESS Then
    MsgBox "ERROR"
    End
 End If

   .
   .