<td id="n3ws3"></td>
          <th id="n3ws3"></th>
            <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
            <del id="n3ws3"><form id="n3ws3"></form></del>
            <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
          1. <dd id="n3ws3"><dl id="n3ws3"></dl></dd>
            YW_Felica_ReadWithoutEncryption
            Felica卡片不加密讀操作

            參數(shù)列表:

            int stdcall YW_Felica_ReadWithoutEncryption

            (

            int ReaderID, 

            unsigned char *IDM,

            unsigned char NumberofService, 

            unsigned char *ServiceCodeList, 

            unsigned char NumberofBlock, 

            unsigned char LengthofBlockList, 

            unsigned char *BlockList, 

            unsigned char *Status1, 

            unsigned char *Status2, 

            unsigned char *pBlockData

            )


            參數(shù)含義:

            參數(shù)

            類型

            方向

            含義

            ReaderID

            int

            IN

            所要獲取的設(shè)備標(biāo)示ID,范圍0x0000-0xFFFF,如果未知,則ReaderID=0

            IDM

            unsigned char*

            IN

            Felica卡卡號,8字節(jié)

            NumberofService

            unsigned char

            IN

            Service數(shù)量

            ServiceCodeList

            unsigned char*

            IN

            Service內(nèi)容,字節(jié)數(shù)為2* NumberofService

            NumberofBlock

            unsigned char

            IN

            Block塊的數(shù)量

            LengthofBlockList

            unsigned char

            IN

            Block列表的字節(jié)長度

            BlockList

            unsigned char*

            IN

            Block列表的內(nèi)容

            Status1

            unsigned char*

            OUT

            讀取后的狀態(tài)字節(jié)Status1,1字節(jié)

            Status2

            unsigned char*

            OUT

            讀取后的狀態(tài)字節(jié)Status2,1字節(jié)

            pBlockData

            unsigned char*

            OUT

            讀到的塊數(shù)據(jù),只有當(dāng)函數(shù)返回>0時,此處才有返回,字節(jié)數(shù)為NumberofBlock*16,如果失敗,請查看狀態(tài)Status1Status2

            返 回 值:大于0為命令發(fā)送成功,<=0為命令發(fā)送失敗


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

            int stdcall YW_Felica_ReadWithoutEncryption(int ReaderID, unsigned char *IDM,unsigned char NumberofService, unsigned char *ServiceCodeList, unsigned char NumberofBlock, unsigned char LengthofBlockList, unsigned char *BlockList, unsigned char *Status1, unsigned char *Status2, unsigned char *pBlockData)


            Delphi聲明:

            function YW_Felica_ReadWithoutEncryption(ReaderID: Integer; IDM: PChar;


            VB聲明:

            Public Declare Function YW_Felica_ReadWithoutEncryption Lib "YW60x.dll" (ByVal ReaderID As Long, ByRef IDM As Byte, _


            JAVA聲明:

            public int YW_Felica_ReadWithoutEncryption(int ReaderID, Pointer IDM,

            byte NumberofService, Pointer ServiceCodeList,

            byte NumberofBlock, byte LengthofBlockList, Pointer BlockList,

            Pointer Status1, Pointer Status2, Pointer pBlockData)

            {

            int ret;

            try

            {

            JNative fuc = new JNative("YW60x.dll", "YW_Felica_ReadWithoutEncryption");

            fuc.setRetVal(Type.INT);

            fuc.setParameter(0, ReaderID);

            fuc.setParameter(1, IDM);

            fuc.setParameter(2, NumberofService);

            fuc.setParameter(3, ServiceCodeList);

            fuc.setParameter(4, NumberofBlock);

            fuc.setParameter(5, LengthofBlockList);

            fuc.setParameter(6, BlockList);

            fuc.setParameter(7, Status1);

            fuc.setParameter(8, Status2);

            fuc.setParameter(9, pBlockData);

            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_Felica_ReadWithoutEncryption(int ReaderID, byte[] IDM,byte NumberofService, byte[] ServiceCodeList,byte NumberofBlock, byte


            Power Builder 9 聲明:

            public FUNCTION long YW_Felica_ReadWithoutEncryption (long lReaderID , ref char IDM[],char NumberofService , ref char ServiceCodeList[],char NumberofBlock , char


            支持的RFID讀寫器:
            YW-607

              <td id="n3ws3"></td>
                    <th id="n3ws3"></th>
                      <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
                      <del id="n3ws3"><form id="n3ws3"></form></del>
                      <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
                    1. <dd id="n3ws3"><dl id="n3ws3"></dl></dd>
                      国产精品亚洲综合日韩 | 黑人大鷄巴A片 | 伊人操逼逼 | NP玩烂了公用爽灌满视频播放 | 韩国不卡视频 |