IDWriteFontCollection3::GetExpirationEvent method (dwrite_3.h)

Retrieves the expiration event for the font set, if any. The expiration event is set on a system font set object if it is out of date due to fonts being installed, uninstalled, or updated. You should handle the event by getting a new system font set.

Syntax

HANDLE GetExpirationEvent();

Return value

Type: HANDLE

An event handle, if called on the system font set, or nullptr if called on a custom font set.

Remarks

You mustn't call CloseHandle on the returned event handle. The handle is owned by the font set object, and it remains valid as long as you hold a reference to the font set. You can wait on the returned event, or use RegisterWaitForSingleObject to request a callback when the event is set.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib