UID | tech.root | title | ms.date | targetos | description | prerelease | req.assembly | req.construct-type | req.ddi-compliance | req.dll | req.header | req.idl | req.include-header | req.irql | req.kmdf-ver | req.lib | req.max-support | req.namespace | req.redist | req.target-min-winverclnt | req.target-min-winversvr | req.target-type | req.type-library | req.umdf-ver | req.unicode-ansi | topic_type | api_type | api_location | api_name | f1_keywords | dev_langs | helpviewer_keywords | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:winrt-microsoft.ui.interop.GetDisplayIdFromMonitor |
uiinterop |
GetDisplayIdFromMonitor (winrt) |
02/02/2022 |
Windows |
Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided **HMONITOR** is valid. |
false |
function |
winrt-microsoft.ui.interop.h |
Windows 10, version 1809 (with Windows App SDK 1.0 or later) |
|
|
|
|
|
|
|
Gets the DisplayId
that corresponds to the specified hmonitor, if the provided HMONITOR is valid.
Note
This API is declared in the Microsoft.UI.Interop.h
header file found in the \include\winrt
folder of the Windows App SDK.
C#. For C# desktop application developers, the interop functions in this header are wrapped by the methods of the Microsoft.UI.Win32Interop class.
Type: const HMONITOR &
The handle of the display monitor for which to get the DisplayId
.
Type: DisplayId
The display monitor identifier that corresponds to the specified hmonitor, if the provided hmonitor is valid. Otherwise, null
.