Registriert seit: 9. Jun 2011
678 Beiträge
FreePascal / Lazarus
|
AW: (Re)start explorer.exe
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.
|