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 codeDescription
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

Minimum supported server

Windows Server 2003

Product

Outlook Express 6.0

Header

Mimeole.h

Library

Inetcomm.lib

DLL

Inetcomm.dll (version 6.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Community Additions

ADD
Show: