Example #1
0
        public string getDLXInfoRD()
        {
            byte[] data = new byte[1024];
            RDNID.getDLXInfoRD(data);
            String s = RDNID.aByteToString(data);

            return(s);
        }
Example #2
0
        public string getNIDNumber()
        {
            byte[] id = new byte[30];
            if (RDNID.getNIDNumberRD(mCard, id) != DefineConstants.NID_SUCCESS)
            {
                return("");
            }
            String s = RDNID.aByteToString(id);

            return(s);
        }
Example #3
0
        //get national card id
        public string getNIDData()
        {
            byte[] data = new byte[1024];
            if (RDNID.getNIDDataRD(mCard, data, data.Length) != DefineConstants.NID_SUCCESS)
            {
                return("");
            }
            String s = RDNID.aByteToString(data);

            return(s);
        }
Example #4
0
        static public String[] getReaderListRD()
        {
            byte[] szReaders = new byte[1024 * 2];
            int    size      = szReaders.Length;
            int    numreader = RDNID.getReaderListRD(szReaders, size);

            if (numreader <= 0)
            {
                return(null);
            }
            String s = RDNID.aByteToString(szReaders);

            string[] readerlist = s.Split(';');
            return(readerlist);
        }
Example #5
0
 public Int32 isCardInsert()
 {
     return(RDNID.isCardInsertRD(mCard));
 }
Example #6
0
 public Int32 deselectReader()
 {
     return(RDNID.deselectReaderRD(mCard));
 }
Example #7
0
 public Int32 disconnectCard()
 {
     return(RDNID.disconnectCardRD(mCard));
 }
Example #8
0
 public IntPtr selectReader(String reader)
 {
     byte[] _reader = String2Byte(reader);
     mCard = RDNID.selectReaderRD(_reader);
     return(mCard);
 }