EsbSetPassword

既存のパスワードを消去して、ユーザーのパスワードを設定します。

構文

            EsbSetPassword
             (
            hCtx, userName, Password
            )
ByVal 
            hCtx
                 As Long
ByVal 
            userName
             As String
ByVal 
            Password
             As String
         
パラメータ説明

hCtx

VB APIコンテキスト・ハンドル。

userName

ユーザー名。

Password

ユーザーの新パスワード。

備考

戻り値

なし。

アクセス

この関数を使用するには、呼出し元が呼出し元のパスワードを設定していないかぎり、ログインしたサーバーに対して呼出し元がユーザーの作成/削除権限(ESB_PRIV_USERCREATE)を持っている必要があります。

         Declare Function EsbSetPassword Lib "ESBAPIN" (ByVal hCtx As Long, ByVal UserName As String, ByVal Password As String) As Long

Sub ESB_SetPassword ()
   Dim sts As long
   Dim UserName As String
   Dim Password As String   UserName = "Joseph"
   Password = "NewPassword"
   '*****************
   ' Set New password
   '*****************
   sts = EsbSetPassword (hCtx, UserName, Password) 
End Sub
      

関連トピック