无参数,
YW_NDEF_Initial方法的作用是初始化NDEF各种变量。一般只需要在程序装载的时候初始化一次就可以.
int stdcall YW_NDEF_Initial();
function YW_NDEF_Initial: Integer;stdcall;external 'YW60x.dll';
Public Declare Function YW_NDEF_Initial Lib "YW60x.dll" () As Long
public int YW_NDEF_Initial()
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_NDEF_Initial");
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_NDEF_Initial();
public FUNCTION long YW_NDEF_Initial() library "YW60x.dll"