YW_ComFree()
无参数
关闭和释放串口资源
int stdcall YW_ComFree();
function YW_ComFree(): Integer;stdcall;external YOWOREADERDLL;
Public Declare Function YW_ComFree Lib "YW60x.dll" () As Long
public int YW_ComFree()
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_ComFree");
fuc.setRetVal(Type.INT);
fuc.invoke();
ret = fuc.getRetValAsInt();
}
catch(NativeException e)
{
ret = -1;
}
catch(IllegalAccessException e)
{
ret = -2;
}
return ret;
}
[DllImport("YW60x.dll")]
public static extern int YW_ComFree();
public FUNCTION long YW_ComFree() library "YW60x.dll"