Loosing handles

Recommended Posts

Deye 56

Deye 56

I'm trying to use this just as an example to try and better understand what is happening in the background when running this
and how to relink every thing back to normal, optimal state

As you can see this will first retrieve the full path to the open explorer windows
next it will exit the explorer main shell process "gracefully"

now there are 2 things look for :

1. To bring back the explorer main shell I've uses shellexecute with a termination to its pid the system then did a reload of its own .. ,and by doing this I noticed the system tray icons all came back to normal, as not with the initial shellexecute run ..

2. With second time of retrieving the left over objects (explorer windows) apparently some of their handles are not functional anymore.

Trying to find a better way to reload the shell and find a way to get those handles back , I have tried a few things with various API functions but since I know not much of the options and possibilities I gave it a rest for now. and now, see what is your take about this process.