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

   
Windows version Windows 8.1 [desktop apps only] Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header shellscalingapi.h
Library Shcore.lib
DLL Shcore.dll

See Also

GetScaleFactorForMonitor

RegisterScaleChangeEvent