Bonjour,
je cherche un moyen d'obtenir le NativeWindow handle (HWND) de toutes les fenêtres ouvertes par mon application ?
Merci
Bonjour,
je cherche un moyen d'obtenir le NativeWindow handle (HWND) de toutes les fenêtres ouvertes par mon application ?
Merci
je suppose
Code : Sélectionner tout - Visualiser dans une fenêtre à part using System.Windows.Interop;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 var lofIntPtr = new List<IntPtr>(); foreach (Window wnd in Application.Current.Windows) { var vih = new WindowInteropHelper(wnd); lofIntPtr.Add(vih.Handle); }
Partager