YW_USBHIDInitial
无参数
返回值1成功,<=0失败
int stdcall YW_USBHIDInitial(void);
function YW_USBHIDInitial(): Integer;stdcall;external YOWOREADERDLL;
Public Declare Function YW_USBHIDInitial Lib "YW60x.dll" () As Long
public int YW_USBHIDInitial()
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_USBHIDInitial");
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_USBHIDInitial();
public FUNCTION long YW_USBHIDInitial() library "YW60x.dll"