Share via


MimeOleSMimeCapsFromDlg function

Do not use. Reads a combo box of encryption algorithm IDs (Using the handle passed in), to select a default encryption algorithm and reads a combo box of signature algorithm IDs to select a default signing algorithm. A list of capabilities for each is built from the combo box items. Without combo boxes, the defaults are 40-bit RC2 and SHA-1. Optionally, if a checkbox with a blob item ID is checked, the capabilities list is generated as a blob. The results are used to encode an Secure/Multipurpose Internet Mail Extensions (S/MIME) capabilities array object of the specified size.

Syntax

HRESULT MimeOleSMimeCapsFromDlg(
  _In_    HWND   hwnd,
  _In_    DWORD  idEncAlgs,
  _In_    DWORD  idSignAlgs,
  _In_    DWORD  idBlob,
  _Inout_ LPBYTE pbSMimeCaps,
  _Inout_ DWORD  *pcbSmimeCaps
);

Parameters

hwnd [in]

Type: HWND

Specifies a handle to the dialog window.

idEncAlgs [in]

Type: DWORD

Specifies encryption algorithm combo box ID.

idSignAlgs [in]

Type: DWORD

Specifies signature algorithm combo box ID.

idBlob [in]

Type: DWORD

Specifies a blob item checkbox ID.

pbSMimeCaps [in, out]

Type: LPBYTE

Specifies pointer to the S/MIME capabilities array.

pcbSmimeCaps [in, out]

Type: DWORD*

Returns array length.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates capabilities list set.
E_FAIL
Indicates capabilities list not set.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
Library
Inetcomm.lib
DLL
Inetcomm.dll (version 6.0 or later)