Export (0) Print
Expand All

MAPISIB

Last modified: July 23, 2011

Applies to: Outlook

This structure is used with IMAPISync::SynchronizeInBackground.

typedef struct _MAPISIB
{
ULONG           ulSize;                
ULONG           ulFlags;
LPMAPISESSION   psesSync;
LPUNKNOWN       punkCallBack;
HANDLE          *phSyncDoneEvent;    
} MAPISIB, *PMAPISIB

ulSize

The size of the structure.

ulFlags

A flag that indicates the type of sync. It must be one of the following values:

SYNC_OUTGOING_MAIL

0x00000200

Send the message to the server (not currently in use).

SYNC_UPLOAD_HIERARCHY

0x00000001

Push hierarchy changes to the server.

SYNC_DOWNLOAD_HIERARCHY

0x00000002

Pull hierarchy changes from server.

SYNC_UPLOAD_CONTENTS

0x00000040

Push message changes to server.

SYNC_DOWNLOAD_CONTENTS

0x00000080

Pull message changes from server.

SYNC_ON_DEMAND

0x20000000

The sync was initiated by the user and should be a higher priority.

SYNC_GLOBAL_HEADERS

0x02000000

Should only sync headers and not full bodies.

psesSync

[IN] A pointer to the MAPI session.

punkCallBack

[IN] A pointer to the interface on which to provide progress. It can be used to query the interface for IMAPISyncProgressCallback : IUnknown.

*phSyncDoneEvent

[OUT] The event that will occur when the thread that was just created is complete. The pointer must be valid because it will contain the event.

Show:
© 2014 Microsoft