| title | Win32Interop class |
|---|---|
| description | The **Win32Interop** class is available in .NET as part of the [Windows App SDK](../../../windows-app-sdk/index.md). |
| ms.topic | article |
| ms.date | 02/08/2022 |
| keywords | windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop |
| ms.localizationpriority | low |
As a C# desktop application developer, in .NET you can make use of the Win32Interop class, whose methods wrap and represent several interoperability functions including the GetWindowIdFromWindow function.
The Win32Interop class is available in .NET as part of the Windows App SDK.
Namespace: Microsoft.UI
public class Win32Interop- GetDisplayIdFromMonitor(IntPtr)
- GetIconFromIconId(IconId)
- GetIconIdFromIcon(IntPtr)
- GetMonitorFromDisplayId(DisplayId)
- GetWindowFromWindowId(WindowId)
- GetWindowIdFromWindow(IntPtr)
| Product | Introduced in |
|---|---|
| WinUI | Windows App SDK 1.0 |