int YW_NDEF_GetRecord
(
int Index,
ref Byte uri,
ref int Len,
Byte[] s
)
YW_NDEF_ GetRecord方法的作用获取临时列表中NDEF记录
int stdcall YW_NDEF_GetRecord(int Index, ref Byte uri, ref int Len, Byte[] s)
function YW_NDEF_GetRecord(Index: Integer; var uri: Byte; var sLen: Integer; PChar s):Integer;stdcall;external "YW60x.dll"
Public Declare Function YW_NDEF_GetRecord Lib "YW60x.dll" (ByVal Index as Integr,ByRef uri As Byte, ByRef sLen As Integer,ByRef s As Byte) As Long
public int YW_NDEF_GetRecord(int Index, Pointer uri Pointer uri Pointer s)
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_NDEF_GetRecord ");
fuc.setRetVal(Type.INT);
fuc.setParameter(0,Index);
fuc.setParameter(1, uri);
fuc.setParameter(2,sLen);
fuc.setParameter(3,s);
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_GetRecord (int Index,ref Byte uri, ref int uri, Byte[] s)
public FUNCTION long YW_NDEF_GetRecord ( int Index, char uri int sLen, ref char s[]) library "YW60x.dll"