예제 #1
0
파일: LivingDog.cs 프로젝트: shansheng/QDJJ
 public LivingDog.LIV_hardware_info Grand_GetHardware_info()
 {
     LivingDog.LIV_hardware_info lIV_hardware_info = default(LivingDog.LIV_hardware_info);
     this.RetCode = LivingDog.LIV_get_hardware_info(this.ulDogHandle, ref lIV_hardware_info);
     LivingDog.LIV_hardware_info result;
     if ((long)this.RetCode == (long)((ulong)LivingDog.LIV_SUCCESS))
     {
         result = lIV_hardware_info;
     }
     else
     {
         lIV_hardware_info.RetCode = this.RetCode;
         result = lIV_hardware_info;
     }
     return(result);
 }
예제 #2
0
파일: LivingDog.cs 프로젝트: shansheng/QDJJ
 public int Grand_ChangePwd(int p_UserType, string p_NewPwd)
 {
     this.RetCode = LivingDog.LIV_set_passwd(this.ulDogHandle, p_UserType, Encoding.Default.GetBytes(p_NewPwd), -1);
     return(this.RetCode);
 }
예제 #3
0
파일: LivingDog.cs 프로젝트: shansheng/QDJJ
 public int Grand_Write(int p_Bloker, byte[] p_byte)
 {
     this.RetCode = LivingDog.LIV_write(this.ulDogHandle, p_Bloker, p_byte);
     return(this.RetCode);
 }
예제 #4
0
파일: LivingDog.cs 프로젝트: shansheng/QDJJ
 public int Grand_Passwd(int p_UserType, string p_Pwd)
 {
     byte[] bytes = Encoding.Default.GetBytes(p_Pwd);
     this.RetCode = LivingDog.LIV_passwd(this.ulDogHandle, p_UserType, bytes);
     return(this.RetCode);
 }
예제 #5
0
파일: LivingDog.cs 프로젝트: shansheng/QDJJ
 public int Grand_CloseDog()
 {
     this.RetCode = LivingDog.LIV_close(this.ulDogHandle);
     return(this.RetCode);
 }
예제 #6
0
파일: LivingDog.cs 프로젝트: shansheng/QDJJ
 public int Grand_OpenDog(int vendor, int index)
 {
     this.RetCode = LivingDog.LIV_open(vendor, index, ref this.ulDogHandle);
     return(this.RetCode);
 }