Exemplo n.º 1
0
 public DocumentData(EID_DOCUMENT_DATA nativeData)
 {
     DocumentRegistrationNumber = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.docRegNo));
     DocumentType = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.documentType));
     IssuingDate = Encoding.UTF8.GetString(nativeData.issuingDate);
     ExpiryDate = Encoding.UTF8.GetString(nativeData.expiryDate);
     IssuingAuthority = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.issuingAuthority));
 }
Exemplo n.º 2
0
        public DocumentData ReadDocumentData()
        {
            EID_DOCUMENT_DATA nativeDocumentData = new EID_DOCUMENT_DATA();
            int nativeResult = NativeMethods.EidReadDocumentData(ref nativeDocumentData);
            CheckNativeResult(nativeResult);
            DocumentData result = new DocumentData(nativeDocumentData);

            return result;
        }
Exemplo n.º 3
0
 internal static extern int EidReadDocumentData(ref EID_DOCUMENT_DATA pData);