Partager via


IABContainer::DeleteEntries

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

Reference

IABContainer : IMAPIContainer

Concepts

MFCMAPI as a Code Sample