Windows Dev Center

Expand Minimize

UnregisterScaleChangeEvent function

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

Syntax


STDAPI UnregisterScaleChangeEvent(
  _In_ DWORD_PTR dwCookie
);

Parameters

dwCookie [in]

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]

Header

ShellScalingAPI.h

Library

Shcore.lib

DLL

Shcore.dll

See also

RegisterScaleChangeEvent
GetScaleFactorForMonitor

 

 

Community Additions

ADD
Show:
© 2015 Microsoft