コード例 #1
0
ファイル: AdvancedReader.cs プロジェクト: neman/BashChelik
        public FixedPersonalData ReadFixedPersonalData()
        {
            EID_FIXED_PERSONAL_DATA nativeFixedPersonalData = new EID_FIXED_PERSONAL_DATA();
            var nativeResult = NativeMethods.EidReadFixedPersonalData(ref nativeFixedPersonalData);
            CheckNativeResult(nativeResult);
            FixedPersonalData result = new FixedPersonalData(nativeFixedPersonalData);

            return result;
        }
コード例 #2
0
 public FixedPersonalData(EID_FIXED_PERSONAL_DATA nativeData)
 {
     PersonalNumber = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.personalNumber));
     Surname = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.surname));
     GivenName = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.givenName));
     ParentGivenName = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.parentGivenName));
     Sex = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.sex));
     PlaceOfBirth = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.placeOfBirth));
     StateOfBirth = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.stateOfBirth));
     DateOfBirth = Encoding.UTF8.GetString(nativeData.dateOfBirth);
     CommunityOfBirth = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.communityOfBirth));
 }
コード例 #3
0
ファイル: FixedPersonalData.cs プロジェクト: neman/BashChelik
 public FixedPersonalData(EID_FIXED_PERSONAL_DATA nativeData)
 {
     PersonalNumber = Encoding.UTF8.GetString(nativeData.personalNumber, 0, nativeData.personalNumberSize);
     Surname = Encoding.UTF8.GetString(nativeData.surname, 0, nativeData.surnameSize);
     GivenName = Encoding.UTF8.GetString(nativeData.givenName, 0, nativeData.givenNameSize);
     ParentGivenName = Encoding.UTF8.GetString(nativeData.parentGivenName, 0, nativeData.parentGivenNameSize);
     Sex = Encoding.UTF8.GetString(nativeData.sex, 0, nativeData.sexSize);
     PlaceOfBirth = Encoding.UTF8.GetString(nativeData.placeOfBirth, 0, nativeData.placeOfBirthSize);
     StateOfBirth = Encoding.UTF8.GetString(nativeData.stateOfBirth, 0, nativeData.stateOfBirthSize);
     DateOfBirth = Encoding.UTF8.GetString(nativeData.dateOfBirth, 0, nativeData.dateOfBirthSize);
     CommunityOfBirth = Encoding.UTF8.GetString(nativeData.communityOfBirth, 0, nativeData.communityOfBirthSize);
 }
コード例 #4
0
ファイル: NativeMethods.cs プロジェクト: neman/BashChelik
 public static extern int EidReadFixedPersonalData(ref EID_FIXED_PERSONAL_DATA pData);