public bool ResetAdminPassword(string OldPwd, string NewPwd) { bool flag = false; try { if (this.IsConnected && CiteDLL.XX_SetSystemPwd(this.CamSerial, OldPwd, NewPwd) == 0) { flag = true; } } catch { } return(flag); }