Share via


Win32Interop.GetDisplayIdFromMonitor(IntPtr) 方法

參考

定義

命名空間:Microsoft.UI

如果提供的 hmonitor 有效,則取得與指定 hmonitor 對應的 DisplayId

public static DisplayId GetDisplayIdFromMonitor(IntPtr hmonitor);

參數

hmonitorIntPtr

要取得 DisplayId 的顯示監視器處理常式。

傳回

DisplayId

如果提供的 hmonitor 有效,則為對應至指定之 hmonitor 的顯示監視器標識碼。 否則為 null

適用於

Products 導入
WinUI 3 Windows App SDK 1.0

另請參閱