YW_NDEF_AddRecord
增加内存中的NDEF纪录,不写卡

参数列表:

int  YW_NDEF_AddRecord

(

Byte uri, 

int sLen, 

Byte[] s

)


参数含义:

YW_NDEF_ AddRecord方法的作用增加一条NDEF记录到临时列表中,增加的记录并没有写道标签中.


C++声明(VC++和C++ Builder):

int stdcall YW_NDEF_AddRecord(Byte uri, int sLen, Byte* s);


Delphi声明:

function YW_NDEF_AddRecord(Byte uri, int sLen, Byte* s):Integer;stdcall;external "YW60x.dll"


VB声明:

Public Declare Function YW_NDEF_AddRecord Lib "YW60x.dll" (ByVal uri As Byte, ByVal sLen As Integer,ByRef s As Byte) As Long


JAVA声明:

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;

}


C#声明:

[DllImport("YW60x.dll")]

public static extern int YW_NDEF_AddRecord(Byte uri, int sLen, Byte* s)


Power Builder 9 声明:

public FUNCTION long YW_NDEF_AddRecord( char uri  int sLen, ref char s[]) library "YW60x.dll"


支持的RFID读写器:
YW-607, YW-615