IMimeSecurity2::DeleteAttribute method

Deletes the specified attribute data for the specified signer.

Syntax

HRESULT DeleteAttribute(
  [in] DWORD  dwFlags,
  [in] DWORD  iSigner,
  [in] DWORD  iAttributeSet,
  [in] DWORD  iInstance,
  [in] LPCSTR pszObjId
);

Parameters

dwFlags [in]

Type: DWORD

Specifies the value SMIME_RECIPIENT_REPLACE_ALL.

iSigner [in]

Type: DWORD

Specifies the index of the signer for which to delete the attributes.

iAttributeSet [in]

Type: DWORD

Specifies the attribute set type.

SMIME_ATTRIBUTE_SET_SIGNED (0)

SMIME_ATTRIBUTE_SET_UNSIGNED (1)

SMIME_ATTRIBUTE_SET_UNPROTECTED (2)

iInstance [in]

Type: DWORD

Specifies the instance to delete for attributes with the same ID. A value of zero indicates the first instance in the attribute set.

pszObjId [in]

Type: LPCSTR

Specifies an LPCSTR that contains the ID of the attribute.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK
Indicates success.
S_FALSE
Indicates that the specified attribute doesn't exist.
E_INVALIDARG
Indicates that dwFlags or iAttributeSet is invalid, that iSigner is zero or out of bounds, or that the message does not support S/MIME version 3.

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)