Platform SDK: Certificate Enrollment Control |
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);
// 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" );
' 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
Windows NT/2000: Requires Windows 2000.
Header: Declared in Xenroll.h.
Library: Use Uuid.lib.