IABContainer::DeleteEntries

Applies to: Outlook 2013 | Outlook 2016

Removes one or more entries, typically messaging users, distribution lists, or other containers.

HRESULT DeleteEntries(
  LPENTRYLIST lpEntries,
  ULONG ulFlags
);

Parameters

lpEntries

[in] A pointer to an array of ENTRYLIST structures that contain entry identifiers that represent the entries being deleted.

ulFlags

[in] Reserved; must be zero.

Return value

S_OK

The specified entries have been successfully deleted.

MAPI_W_PARTIAL_COMPLETION

The call succeeded, but one or more of the entries could not be deleted. When this value is returned, the call should be handled as successful. To test for this value, use the HR_FAILED macro. For more information, see Using Macros for Error Handling.

MFCMAPI reference

For MFCMAPI sample code, see the following table.

File Function Comment
Abdlg.cpp
CabDlg::OnDeleteSelectedItem
MFCMAPI uses the DeleteEntries method to delete a specific entry from an address book container.

See also

IABContainer : IMAPIContainer

MFCMAPI as a Code Sample