RevokeScaleChangeNotifications function

Revokes the registration of a window, preventing it from receiving callbacks when scaling information changes.

Note  This function is not supported as of Windows 8.1. Use UnregisterScaleChangeEvent instead.
 

Syntax

HRESULT RevokeScaleChangeNotifications(
  DISPLAY_DEVICE_TYPE displayDevice,
  DWORD               dwCookie
);

Parameters

displayDevice

Type: DISPLAY_DEVICE_TYPE

The enum value that indicates which display device to receive notifications about.

dwCookie

Type: DWORD

The registration token returned by a previous call to RegisterScaleChangeNotifications.

Return Value

Type: STDAPI

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

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header shellscalingapi.h
DLL Shcore.dll

See Also

GetScaleFactorForMonitor

RegisterScaleChangeEvent

UnregisterScaleChangeEvent