If Err.Number <> 0 Then Call MsgBox("Error 0x" & Hex(Err.Number) & " " & Err.Description) Else Call MsgBox("Data signed successfully") Call xSign.ReadFile("c:\temp\source.txt", 0, 0, efpVerify, True)
If Err.Number = 0 Then Call MsgBox("Data verified successfully") Else If Err.Number = eerVerifyFailed Then Call MsgBox("Verification of signature failed") Else Call MsgBox("Error 0x" & Hex(Err.Number) & " " & Err.Description) End If End If End If