public CardData Read() { PEID_DOCUMENT_DATA d = new PEID_DOCUMENT_DATA(); PEID_FIXED_PERSONAL_DATA f = new PEID_FIXED_PERSONAL_DATA(); PEID_VARIABLE_PERSONAL_DATA v = new PEID_VARIABLE_PERSONAL_DATA(); int c = 0; Validate(CelikApiWrapper.EidBeginRead(string.Empty, ref c), StaticData.ACTION_FAILED, StaticData.BEGIN_READ); Validate(CelikApiWrapper.EidReadDocumentData(ref d), StaticData.ACTION_FAILED, StaticData.READ_DOCUMENT_DATA); Validate(CelikApiWrapper.EidReadFixedPersonalData(ref f), StaticData.ACTION_FAILED, StaticData.READ_FIXED_DATA); Validate(CelikApiWrapper.EidReadVariablePersonalData(ref v), StaticData.ACTION_FAILED, StaticData.READ_VARIABLE_DATA); Validate(CelikApiWrapper.EidEndRead(), StaticData.ACTION_FAILED, StaticData.END_READ); return new CardData { DocumentData = d, FixedData = f, VariableData = v }; }
public static extern int EidReadFixedPersonalData(ref PEID_FIXED_PERSONAL_DATA d);