j'utilise la commande qui suit pour listé les programmes actif sous winows
Public Sub ProcessList()
Dim hwnd As Long
Dim TitreFenetre As String * 255
Dim Titre As String
Dim papa
hwnd = NextWindow(RecupHandleBureau(), 5)
Do While hwnd <> 0
TitreFenetre = String(255, 0)
R = TxtWindow(hwnd, TitreFenetre, 255)
papa = idPapa(hwnd)
If TitreFenetre <> String(255, 0) Then
Titre = TitreFenetre
Titre = Left(Titre, R)
'Set lst = frmPrinc.List.ListItems.Add(, , Titre)
Term.AddText " " & hwnd & " : " & Titre & vbCrLf, ColorTheme.wxbPLUGINOutput
' lst.SubItems(1) = hWnd
' lst.SubItems(2) = papa
End If
hwnd = NextWindow(hwnd, 2)
LoopColorTheme.wxbPLUGINOutput
End Sub
Ma question est la suivante, je voudrai savoir si je peut récupéré le nom de programme d'un handle (son nom .exe) EX: Hwnd:351 = explorer.exe