UnregisterScaleChangeEvent function

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

Syntax

HRESULT UnregisterScaleChangeEvent(
  DWORD_PTR dwCookie
);

Parameters

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

   
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