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 |
---|---|
|
Indicates algorithm list set. |
|
Indicates algorithm list not set. |
|
Indicates array pointer NULL, array length 0, or output buffer NULL. |
|
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 |
|
Library |
|
DLL |
|