IMimeSecurity2::Encode method

Encodes the message body.

Syntax

HRESULT Encode(
  [in] HWND  hwnd,
  [in] DWORD dwFlags
);

Parameters

hwnd [in]

Type: HWND

Specifies the handle of the parent window.

dwFlags [in]

Type: DWORD

Specifies a set of security encoding flags (SEF_*).

SEF_ENCRYPTWITHNOSENDERCERT (0x00000001)

SEF_SENDERSCERTPROVIDED (0x00000002)

SEF_NOUI (0x00000004)

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_FAIL
Indicates that an unknown error has occurred.
E_INVALIDARG
Indicates that dwFlags is invalid.
MIME_S_SECURITY_NOOP
Indicates that the body is plain text.
MIME_E_SECURITY_NOCERT
Indicates that no certificates were found.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
MIME_E_SECURITY_ENCRYPTNOSENDERCERT
Indicates that a problem with the certificate prevented encoding.

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
IDL
Mimeole.idl
DLL
Inetcomm.dll (version 6.0 or later)