34 lines
877 B
C#
34 lines
877 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace cn.xinelu.MedicalCheckup.Client.Common
|
|
{
|
|
public class extend_100UC
|
|
{
|
|
#region API声明
|
|
|
|
[DllImport("Termb.dll", CharSet = CharSet.Auto)]
|
|
public static extern int CVR_InitComm(int Port);
|
|
|
|
[DllImport("Termb.dll", CharSet = CharSet.Auto)]
|
|
public static extern int CVR_Authenticate();
|
|
|
|
[DllImport("Termb.dll", CharSet = CharSet.Auto)]
|
|
public static extern int CVR_AuthenticateForNoJudge();
|
|
|
|
[DllImport("Termb.dll", CharSet = CharSet.Auto)]
|
|
public static extern int CVR_Read_Content(int active);
|
|
|
|
[DllImport("Termb.dll", CharSet = CharSet.Auto)]
|
|
public static extern int CVR_CloseComm();
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|