Win32Status Property


Gets the Win32 status of the certificate upon verifying the message's signature.


Value Type: Long
Parameters: None 
Remarks:

This property gets the status value as obtained from Win32 API. For most popular status codes, MailBee also provides an easier to use Status property.

 

Win32 certiticate validation status codes can be found in Win32 API documenation on CERT_CHAIN_POLICY_STATUS structure.


Usage example:

' This example loads the message from file and verifies it.

Dim objSMIME, objMsg

' Using Visual Basic to create the objects
Set objMsg = CreateObject("MailBee.Message")
Set objSMIME = CreateObject("MailBee.SMIME")

' Using ASP to create the objects
'Set objMsg = Server.CreateObject("MailBee.Message")
'Set objSMIME = Server.CreateObject("MailBee.SMIME")

' Specify MailBee license key
objSMIME.LicenseKey = "put your license key here"

' Load the message from file
objMsg.ImportFromFile "mail_src.eml"

' Specify the message for the further processing
Set objSMIME.Message = objMsg

' Verify the message
objSMIME.Verify

' Check if any errors occurred
If (objSMIME.SMIMEError <> 0) Or (objSMIME.SMIMESpecificError <> 0) Then
    ' Display the code of the last occured 
    ' In ASP use Response.Write instead of MsgBox
    MsgBox "Status = " & objSMIME.SignerCert.Status & "   Win32Status = " & _
      objSMIME.SignerCert.Win32Status
End If

' Check if the message was verified successfully
If objSMIME.Verified Then
    MsgBox "This message is verified."
End If

See Also:

CertInfo Object

Status Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.