Partager via


Méthode Win32Interop.GetWindowIdFromWindow(IntPtr)

Reference

Definition

Espace de noms : Microsoft.UI

Obtient ce WindowId qui correspond au hwnd spécifié, si l’élément fourni HWND est valide.

public static WindowId GetWindowIdFromWindow(IntPtr hwnd);

Parameters

hwnd IntPtr

Handle de la fenêtre pour laquelle obtenir le WindowId.

Returns

WindowId

Identificateur qui correspond au hwnd spécifié, si le hwnd fourni est valide. Sinon, null.

S’applique à

Product Introduite dans
WinUI 3 SDK d’application Windows 1.0

Voir aussi