MimeOleSMimeCapInit function

Do not use. Returns an equivalent of the cookie returned by MimeOleSMimeCapAddSMimeCap when an array of CRYPT_SMIME_CAPABILITIES is passed in; otherwise, the function attempts to match MimeOle encryption capabilities to a Microsoft-enhanced provider (CryptoAPI), and flags matching algorithms in the returned cookie.

Syntax

HRESULT MimeOleSMimeCapInit(
  _In_  LPBYTE pbSMimeCap,
  _In_  DWORD  cbSMimeCap,
  _Out_ LPVOID *ppv
);

Parameters

pbSMimeCap [in]

Type: LPBYTE

Specifies pointer to the S/MIME capabilities array.

cbSMimeCap [in]

Type: DWORD

Specifies array length.

ppv [out]

Type: LPVOID*

Returns cookie flagged with matching algorithms.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates algorithm list set.
S_FALSE
Indicates algorithm list not set.
E_INVALIDARG
Indicates array pointer NULL, array length 0, or output buffer NULL.
E_OUTOFMEMORY
Indicates memory allocation failed.

Remarks

Using NULL values for pbSMimeCap and cbSMimeCap gives maximum results allowed by providers.

Note

Caller of this function is responsible for freeing what ppv points to.

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)