| INT UnsubscribeMailbox( |
| |
LPCTSTR lpszMailbox |
|
| ); |
The UnsubscribeMailbox method unsubscribes the user from
the specified mailbox.
Parameters
- lpszMailbox
- A null-terminated string which specifies the
mailbox to unsubscribe from.
Return Value
If the method succeeds, it returns zero. If an error occurs, the
method returns IMAP_ERROR. To get extended error information, call
GetLastError.
Remarks
The UnsubscribeMailbox method removes the specified mailbox
from the current user's list of active or subscribed mailboxes.
To list those mailboxes which the user has subscribed to, use the
GetFirstMailbox method and specify the IMAP_LIST_SUBSCRIBED
option.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmapv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|