public int LoginAdmin(string password) { int num = -1; try { if (this.IsConnected) { num = CiteDLL.XX_CheckSystemPwd(this.CamSerial, password); } } catch { } return(num); }
public bool CheckAdminPassword(string pwd, bool mount_usb) { bool flag = false; try { if (CiteDLL.XX_CheckSystemPwd(this.CamSerial, pwd, mount_usb) == 0) { flag = true; } } catch (Exception exception) { flag = false; } return(flag); }