Thema: Delphi (Re)start explorer.exe

Einzelnen Beitrag anzeigen

CCRDude

Registriert seit: 9. Jun 2011
678 Beiträge
 
FreePascal / Lazarus
 
#4

AW: (Re)start explorer.exe

  Alt 23. Sep 2011, 16:02
1. Don't just assume that hWnd will return something
2. Loop until hWnd no longer returns anything

Still won't those extra windows. So better:

3. Use EnumProcesses/CreateToolHelpSnapshot32 to enumerate all processes, looking for explorer.exe, instead of going by the window.
  Mit Zitat antworten Zitat