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
The display monitor identifier that corresponds to the specified hmonitor, if the provided hmonitor is valid. Otherwise, null
.
Applies to
Product | Introduced in |
---|---|
WinUI 3 | Windows App SDK 1.0 |
See also
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.
Windows developer
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru