int YW_NDEF_AddRecord
(
Byte uri,
int sLen,
Byte[] s
)
YW_NDEF_ AddRecord方法的作用增加一条NDEF记录到临时列表中,增加的记录并没有写道标签中.
int stdcall YW_NDEF_AddRecord(Byte uri, int sLen, Byte* s);
function YW_NDEF_AddRecord(Byte uri, int sLen, Byte* s):Integer;stdcall;external "YW60x.dll"
Public Declare Function YW_NDEF_AddRecord Lib "YW60x.dll" (ByVal uri As Byte, ByVal sLen As Integer,ByRef s As Byte) As Long
public int DES(byte cModel, Pointer pkey, Pointer in, Pointer out)
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_NDEF_AddRecord");
fuc.setRetVal(Type.INT);
fuc.setParameter(0, uri);
fuc.setParameter(1,sLen);
fuc.setParameter(2,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_AddRecord(Byte uri, int sLen, Byte* s)
public FUNCTION long YW_NDEF_AddRecord( char uri int sLen, ref char s[]) library "YW60x.dll"