MAPIDELETEMAIL callback function (mapi.h)
[The use of this function is discouraged. It may be altered or unavailable in subsequent versions of Windows.]
The MAPIDeleteMail function deletes a message.
Syntax
MAPIDELETEMAIL Mapideletemail;
ULONG Mapideletemail(
[in] LHANDLE lhSession,
[in] ULONG_PTR ulUIParam,
[in] LPSTR lpszMessageID,
FLAGS flFlags,
ULONG ulReserved
)
{...}
Parameters
[in] lhSession
Session handle that represents a valid Simple MAPI session. The value of the lhSession parameter must represent a valid session; it cannot be zero.
[in] ulUIParam
Parent window handle or zero, indicating that if a dialog box is displayed, it is application modal. If the ulUIParam parameter contains a parent window handle, it is of type HWND (cast to a ULONG_PTR). If no dialog box is displayed during the call, ulUIParam is ignored.
[in] lpszMessageID
The identifier for the message to be deleted. This identifier is messaging system-specific and will be invalid when MAPIDeleteMail successfully returns.
flFlags
Reserved; must be zero.
ulReserved
Reserved; must be zero.
Return value
This function returns one of the following values.
Return code | Description |
---|---|
|
One or more unspecified errors occurred while deleting the message. No message was deleted. |
|
There was insufficient memory to proceed. No message was deleted. |
|
An invalid message identifier was passed in the lpszMessageID parameter. No message was deleted. |
|
An invalid session handle was passed in the lhSession parameter. No message was deleted. |
|
The call succeeded and the message was deleted. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | mapi.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for