Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.36 KB

File metadata and controls

46 lines (30 loc) · 1.36 KB
title Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
description Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
ms.topic article
ms.date 02/08/2022
keywords windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
ms.localizationpriority low

Win32Interop.GetDisplayIdFromMonitor(IntPtr) method

Reference

Definition

Namespace: Microsoft.UI

Gets the DisplayId that corresponds to the specified hmonitor, if the provided hmonitor is valid.

public static DisplayId GetDisplayIdFromMonitor(IntPtr hmonitor);

Parameters

hmonitor IntPtr

The handle of the display monitor for which to get the DisplayId.

Returns

DisplayId

The display monitor identifier that corresponds to the specified hmonitor, if the provided hmonitor is valid. Otherwise, null.

Applies to

Product Introduced in
WinUI Windows App SDK 1.0

See also