Win32Interop 類別
作為 C# 桌面應用程式開發人員,在 .NET 中,您可以使用 Win32Interop 類別,該類別的方法包裝並表示多個互通性函數,包括 GetWindowIdFromWindow 函數。
Win32Interop 類別在 .NET 中作為 Windows App SDK 的一部分提供。
定義
命名空間:Microsoft.UI
public class Win32Interop
方法
- GetDisplayIdFromMonitor(IntPtr)
- GetIconFromIconId(IconId)
- GetIconIdFromIcon(IntPtr)
- GetMonitorFromDisplayId(DisplayId)
- GetWindowFromWindowId(WindowId)
- GetWindowIdFromWindow(IntPtr)
適用於
Products | 導入 |
---|---|
WinUI 3 | Windows App SDK 1.0 |
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應