Partager via


IMAPIOfflineNotify::Notify

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Sends notifications to the client about changes in connection state.

void STDMETHODCALLTYPE Notify(  
    const MAPIOFFLINE_NOTIFY * pNotifyInfo 
);

Parameters

  • pNotifyInfo
    [in] The notification that Outlook sends to the client. The notification indicates the part of the connection state that has changed, the old connection state, and the new connection state.

Remarks

Outlook uses this method to send notification callbacks to a client. To make this interface available to Outlook 2010, the client must implement this interface and pass a pointer to it as a member in MAPIOFFLINE_ADVISEINFO when setting up callbacks using IMAPIOfflineMgr::Advise.

The client also passes to MAPIOFFLINE_ADVISEINFO a client token that Outlook 2010 uses in IMAPIOfflineNotify::Notify to identify the client registered for the notification callback.

In general, Outlook 2010 can notify a client of online/offline changes and other connection state changes, but the Offline State API supports only notifications for online/offline changes. The client must ignore all other notifications.

See Also

Concepts

About the Offline State API

MAPIOFFLINE_NOTIFY