Share via


Méthode Win32Interop.GetWindowIdFromWindow(IntPtr)

Référence

Définition

Espace de noms : Microsoft.UI

Obtient le WindowId qui correspond au hwnd spécifié, si le HWND fourni est valide.

public static WindowId GetWindowIdFromWindow(IntPtr hwnd);

Paramètres

hwndIntPtr

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

Retours

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