Declare Function SECKFMChangePassword Lib “c:\lotus\notes\nnotes.dll” (Byval IDFile$,Byval OldPassword$,Byval NewPassword$)As IntegerDeclare Function SECKFMSwitchToIDFile Lib “c:\lotus\notes\nnotes.dll” (Byval IDFile$,Byval Password$,Byval UserName$, Byval MaxUserNameLength%,Byval ReservedFlag%26amp;,Byval flag%26amp;)As IntegerDeclare Function OSLoadString Lib “c:\lotus\notes\nlib.dll” (Byval hModule%26amp;, Byval Status%, Byval retBuffer$, Byval BufferLength%) As IntegerConst MAXUSERNAME=256Type ID_INFO Name As String Password As StringEnd TypeFunction APICheckError(Error%) As String Dim s$, x% If Error% <> 0 Then s$ = Space$(254) x% = OSLoadString(0, Error%, s$, 254) If x% = 0 Then s$ = “General Notes Error” Else s$ = Left$(s$,x%) End If APICheckError= s$ End If End FunctionSub APISwitchID(filepath$, passwordlist, id As ID_Info, s$) Dim Status% Dim Flag% Dim UserName As String * MAXUSERNAME ID.Name=”NA” ID.Password= “NA” Flag%=False Forall x In PasswordList pword$=Cstr(x) Print s %26amp; ” Checking Password ……” %26amp; Pword$ ,filepath$ Status%=SECKFMSwitchToIDFile(filepath$,pword$,UserName,MAXUSERNAME,0,0) If Status% =0 Then Print Now ” Change Password SUCCESS <" %26amp; IDFile$ %26amp; ">” Call CreateIDDoc(filepath$,UserName,pword$,filepath$) Flag%=True ID.Name=UserName ID.Password= Cstr(x) Exit Forall Else Print “Error ” %26amp; APICheckError(status%) Print” Change Password ERROR <" %26amp; IDFile$ %26amp; ">” Print” ERROR <" %26amp; APICheckError(status%)%26amp; ">” End If Status%=0 Yield End Forall If Flag%=False Then Print Now %26amp; ” ERROR Could Not Add file <" %26amp; IDFile$ %26amp; ">” End If End SubFunction APIChangePword(IDFile$, OldPword$, NewPword$)As Integer Dim Status% Status%=SECKFMChangePassword(IDFile$,OldPword$,NewPword$) If Status% =0 Then Print”Change Password SUCCESS <" %26amp; IDFile$ %26amp; ">” APIChangePword=True Else Print”Change Password ERROR <" %26amp; IDFile$ %26amp; ">” Print”ERROR <" %26amp; APICheckError(status%)%26amp; ">” APIChangePword=False End If End Function
,
通lotusscript切换id并修改id的密码_lotus notes
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 通lotusscript切换id并修改id的密码_lotus notes
相关推荐
-      photoshop漫画笔刷绘制非主流照片漫画_photoshop教程
-      photoshop将照片处理为伪手绘特效_photoshop教程
-      photoshop“置换”滤镜更换衬衣颜色_photoshop教程
-      用vmware gsx和w2k3实现exchange 2003群集_exchange server
-      玩转exchange 2000的instant messaging_exchange server
-      如何将exchange配置为lotus notes smtp网关_exchange server
-      exchange server 2003 的安装选项_exchange server
-      如何配置exchange与lotus邮件路由和目录同步_exchange server