Platform SDK: Certificate Enrollment Control

ICEnroll3::EnableSMIMECapabilities [C++]

CEnroll.EnableSMIMECapabilities [Visual Basic]

The EnableSMIMECapabilities property controls whether the PKCS10 will contain a signed attribute for Secure/Multipurpose Internet Mail Extensions (S/MIME) capabilities. The default value is FALSE.

[Visual Basic]
objEnroll.EnableSMIMECapabilities [ = bValue ]
[C++]
HRESULT put_EnableSMIMECapabilities(BOOL bValue);
HRESULT get_EnableSMIMECapabilities(BOOL * pbValue);

Parameters

[Visual Basic] objEnroll
Object expression that resolves to a CEnroll object.
[Visual Basic,C++] bValue
A Boolean value assigned to this property. It is one of the following values:
[C++] pbValue
Pointer to the retrieved property value.

Example Code [C++]

// Get the EnableSMIMECapabilities value.
BOOL       bSMIME;
HRESULT    hr;
// pEnroll is previously instantiated ICEnroll interface pointer.
hr = pEnroll->get_EnableSMIMECapabilities(&bSMIME);
if (FAILED(hr))
    printf("Failed get_EnableSMIMECapabilities - %x\n", hr );
else
    printf("EnableSMIMECapabilities: %s\n",
          ( bSMIME ? "TRUE" : "FALSE"));

// Set the EnableSMIMECapabilities value.
hr = pEnroll->put_EnableSMIMECapabilities(TRUE);
if ( FAILED ( hr ) )
    printf("Failed put_EnableSMIMECapabilities - %x\n", hr );
else
    printf( "EnableSMIMECapabilities was set to TRUE\n" );

Example Code [Visual Basic]

' Declare Certificate Enrollment Control object.
Dim objXen As Object

Dim bSMIME As Boolean

' Instantiate the object.
Set objXen = CreateObject("CEnroll.CEnroll.1")

' Retrieve the EnableSMIMECapabilities value.
bSMIME = objXen.EnableSMIMECapabilities
MsgBox bSMIME, vbOKOnly, "EnableSMIMECapabilities"

' Set the EnableSMIMECapabilities value.
objXen.EnableSMIMECapabilities = True

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Xenroll.h.
  Library: Use Uuid.lib.

See Also

ICEnroll3