InheritWindowMonitor function (winuser.h)

Causes a specified window to inherit the monitor of another window.

Syntax

BOOL InheritWindowMonitor(
  HWND hwnd,
  HWND hwndInherit
);

Parameters

hwnd

An HWND handle to the window for which monitor inheritance is set.

hwndInherit

An HWND handle to the window from which the monitor is inherited.

Return value

True if the call is successful.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Header winuser.h
Library User32.lib
DLL User32.dll