Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Encodes the body of the specified IMimeMessageTree object using Secure/Multipurpose Internet Mail Extensions (S/MIME).
Syntax
HRESULT EncodeMessage(
[in] IMimeMessageTree pTree,
[in] DWORD dwFlags
);
Parameters
-
pTree [in]
-
Type: IMimeMessageTree
Specifies a pointer to an IMimeMessageTree object.
-
dwFlags [in]
-
Type: DWORD
Specifies security encoding flags (SEF_*).
-
SEF_ENCRYPTWITHNOSENDERCERT (0x00000001)
-
SEF_SENDERSCERTPROVIDED (0x00000002)
-
SEF_NOUI (0x00000004)
-
SEF_MASK (0x0000ffff)
-
Return value
Type: HRESULT
Returns one of the following values.
| Return code | Description |
|---|---|
|
Indicates success. |
|
Indicates that an unknown error has occurred. |
|
Indicates that pTree is NULL. |
|
Indicates that the body is not encoded. |
|
Indicates that the message is an unsupported S/MIME class. |
|
Indicates that no certificates were found. |
|
Indicates that an attempt to allocate memory failed. |
|
Indicates that the body is already encoded with an unknown certificate. |
Remarks
S/MIME is the version of MIME.
Requirements
| Minimum supported client |
Windows XP [desktop apps only] |
| Minimum supported server |
Windows Server 2003 [desktop apps only] |
| Product |
Outlook Express 6.0 |
| Header |
|
| IDL |
|
| DLL |
|