YW_NDEF_Read
(
int ReaderID
)
YW_NDEF_ Read方法的作用将标签中的NDEF读到临时列表中, 返回值为NDEF记录的数量.
int stdcall YW_NDEF_Read(int ReaderID);
function YW_NDEF_Read(ReaderID: Integer): Integer;stdcall;external 'YW60x.dll';
Public Declare Function YW_NDEF_Read Lib "YW60x.dll" (ReaderID as Integer) As Long
public int YW_NDEF_Read(int ReaderID)
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_NDEF_Read");
func.setParam(0,ReaderID);
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_Read(int ReaderID);
public FUNCTION long YW_NDEF_Read(long ReaderID) library "YW60x.dll"