Exemplo n.º 1
0
		internal static RegistrationData Transcribe(groupSD_REGISTRATION_DATA nativeData)
		{
			var result = new RegistrationData();

			result.RegistrationInfo = nativeData.registrationData;
			result.SignatureData = nativeData.signatureData;
			result.IssuingAuthority = nativeData.issuingAuthority;
			
			return result;
		}
Exemplo n.º 2
0
		/// <param name="index">od 1 do 3</param>
		public RegistrationData ReadRegistrationData(int index)
		{
			var nativeRegistrationData = new groupSD_REGISTRATION_DATA();
			var nativeResult = NativeMethods.sdReadRegistration(ref nativeRegistrationData, index);
			CheckNativeResult(nativeResult);

			var result = RegistrationData.Transcribe(nativeRegistrationData);

			return result;
		}