OnGetDeviceCertificate
Declaration
Delphi
procedure OnGetDeviceCertificate(out Certificate: OleVariant);
ActiveX
HRESULT OnGetDeviceCertificate([out] VARIANT* Certificate);
Description
This function should read the device certificate from the device driver and return it to the API.
Samples:
C#
void axSignApi4_OnGetDeviceCertificate(object sender, IStepOverSignatureAPIv4Events_OnGetDeviceCertificateEvent e) { e.certificate = SigDev.GetDeviceCertificate(); }
VB.net
Private Sub signapi4_OnGetDeviceCertificate(ByVal Certificate As Object) Certificate = mSignaturDevice.GetDeviceCertificate End Sub
Delphi
procedure TForm1.SignApiGetDeviceCertificate(Sender: TObject; TypeOfPic: Integer; out Certificate: OleVariant); begin Certificate := StepOverSignatureDevice1.GetDeviceCertificate; end;
VB6
Private Sub signapi4_OnGetDeviceCertificate(Certificate As Variant) Certificate = sigdev.GetDeviceCertificate End Sub
Â