ICEnroll4::EnableSMIMECapabilities property

[This property is no longer available for use as of Windows Server 2008 and Windows Vista.]

The EnableSMIMECapabilities property controls whether the PKCS #10 will contain a signed attribute for Secure/Multipurpose Internet Mail Extensions (S/MIME) capabilities.

The default value for this property is FALSE. This property was first defined in the ICEnroll3 interface.

This property is read/write.

Syntax


HRESULT put_EnableSMIMECapabilities(
  [in]  BOOL bValue
);

HRESULT get_EnableSMIMECapabilities(
  [out] BOOL *pbValue
);

Property value

If TRUE, the PKCS #10 will contain a signed attribute for S/MIME capabilities.

Error codes

If the property access methods put_EnableSMIMECapabilities and get_EnableSMIMECapabilities succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

Examples


BOOL     bSMIME;
HRESULT  hr;


// pEnroll is a previously instantiated ICEnroll interface pointer.
// Get the EnableT61DNEncoding Boolean value.

hr = pEnroll->get_EnableSMIMECapabilities( &bSMIME );
if ( FAILED ( hr ) )
    printf("Failed get_EnableSMIMECapabilities - %x\n", hr );
else
    printf( "EnableSMIMECapabilities: %s\n", 
             ( bSMIME ? "Enabled" : "Disabled" ) );


// 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" );

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Xenroll.h

Library

Uuid.lib

DLL

Xenroll.dll

IID

IID_ICEnroll4 is defined as c1f1188a-2eb5-4a80-841b-7e729a356d90

See also

ICEnroll4
ICEnroll3
CEnroll

 

 

Show: