IMAPIProviderShutdown::QueryFastShutdown

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Queries the MAPI provider for fast shutdown support.

HRESULT QueryFastShutdown ();

Return Value

  • S_OK
    The MAPI provider supports the MAPI client to do fast shutdown.

  • MAPI_E_NO_SUPPORT
    The MAPI provider does not support the MAPI client to do fast shutdown.

Remarks

MAPI providers that do not need to support client fast shutdown should still implement the IMAPIProviderShutdown interface, and have the IMAPIProviderShutdown::QueryFastShutdown method return MAPI_E_NO_SUPPORT. For Outlook as a MAPI client, this causes Outlook to wait for all external references to be released before it exits.

Depending on the user's Windows registry setting for fast shutdown, not implementing the IMAPIProviderShutdown interface does not necessarily prevent a client fast shutdown.

See Also

Reference

IMAPIProviderShutdown : IUnknown

Concepts

Client Shutdown in MAPI