UnregisterScaleChangeEvent function (shellscalingapi.h)

Unregisters for the scale change event registered through RegisterScaleChangeEvent. This function replaces RevokeScaleChangeNotifications.

Syntax

HRESULT UnregisterScaleChangeEvent(
  [in] DWORD_PTR dwCookie
);

Parameters

[in] dwCookie

A pointer to the cookie retrieved in the call to RegisterScaleChangeEvent.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header shellscalingapi.h
Library Shcore.lib
DLL Shcore.dll

See also

GetScaleFactorForMonitor

RegisterScaleChangeEvent