Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.67 KB

imapisupport-spooleryield.md

File metadata and controls

65 lines (38 loc) · 1.67 KB
title manager ms.date ms.audience ms.topic ms.service ms.localizationpriority api_name api_type ms.assetid
IMAPISupportSpoolerYield
lindalu
11/16/2014
Developer
reference
office-online-server
medium
IMAPISupport.SpoolerYield
COM
f5c6ba8f-4ef5-4d60-b4e6-5b9160ec4e99

IMAPISupport::SpoolerYield

Applies to: Outlook 2013 | Outlook 2016

Gives control of the CPU to the MAPI spooler so that it can perform any tasks it considers necessary.

HRESULT SpoolerYield(
ULONG ulFlags
);

Parameters

ulFlags

Reserved; must be zero.

Return value

S_OK

The transport provider successfully released the CPU.

MAPI_W_CANCEL_MESSAGE

Instructs the transport provider to stop the delivery of the message to any recipients that have not yet received it.

Remarks

The IMAPISupport::SpoolerYield method is implemented for transport provider support objects. Transport providers call SpoolerYield to allow the MAPI spooler to accomplish any necessary processing.

Notes to callers

Call SpoolerYield when you are performing lengthy operations that can be paused. This allows foreground applications to run during a long operation, such as delivery to a large recipient list across a busy network.

If SpoolerYield returns with MAPI_W_CANCEL_MESSAGE, the MAPI spooler has determined that the message should no longer be sent. Return MAPI_E_USER_CANCEL to your calling process and exit, if possible.

For more information about yielding to the MAPI spooler, see Interacting with the MAPI Spooler.

See also

IMAPISupport : IUnknown