Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.85 KB

hrdispatchnotifications.md

File metadata and controls

65 lines (42 loc) · 1.85 KB
title description manager ms.date ms.audience ms.topic ms.service ms.localizationpriority api_name api_type ms.assetid
HrDispatchNotifications
This article describes the HrDispatchNotifications function and provides syntax, parameters, and return value.
lindalu
03/09/2015
Developer
reference
office-online-server
medium
MAPI.HrDispatchNotifications
COM
42ec4266-67b9-416e-8b9b-163c95011626

HrDispatchNotifications

Applies to: Outlook 2013 | Outlook 2016

Forces dispatching of all queued notifications.

Property Value
Header file:
Mapiutil.h
Implemented by:
MAPI
Called by:
Client applications and service providers
HRESULT HrDispatchNotifications(
  ULONG ulFlags
);

Parameters

ulFlags

[in] Reserved; must be zero.

Return value

S_OK

All queued notifications have been dispatched.

MAPI_E_USER_CANCEL

WM_QUIT, WM_QUERYENDSESSION, or WM_ENDSESSION was received.

MAPI_E_NOT_INITIALIZED

MAPI was not initialized.

Remarks

The HrDispatchNotifications function causes MAPI to dispatch all notifications that are currently queued in the MAPI notification engine without waiting for a message dispatch. This can have a beneficial effect on memory utilization. For more information, see Forcing a Notification.

Notes to callers

Some applications wait for a notification message in a timeout loop using the Windows PeekMessage and DispatchMessage functions. On all but the fastest platforms, such applications might experience poor performance or even blockage of notifications. Using HrDispatchNotifications not only reduces code but improves performance.