Explorer.exe
-
How can I reload explorer.exe through C++? I need to do this so it rereads the registry. Thanx.
I remember seeing how to do this in "Visual C++ Windows Shell Programming" (a cool book BTW). The topic isn't in the index (and I'm not really up for searching through 660+ pages for it) so this is from memory... I believe you get the HWND of the window with class "Program Manager" and send it a WM_CLOSE. Then re-run Explorer to restart the shell. The only trouble with this is that some of your tray icons will be blown away. --Mike-- ================== The original message was: How can I reload explorer.exe through C++?
I need to do this so it rereads the registry.Thanx.
-
I remember seeing how to do this in "Visual C++ Windows Shell Programming" (a cool book BTW). The topic isn't in the index (and I'm not really up for searching through 660+ pages for it) so this is from memory... I believe you get the HWND of the window with class "Program Manager" and send it a WM_CLOSE. Then re-run Explorer to restart the shell. The only trouble with this is that some of your tray icons will be blown away. --Mike-- ================== The original message was: How can I reload explorer.exe through C++?
I need to do this so it rereads the registry.Thanx.
================== The original message was: I remember seeing how to do this in "Visual C++ Windows Shell Programming" (a cool book BTW). The topic isn't in the index (and I'm not really up for searching through 660+ pages for it) so this is from memory...
I believe you get the HWND of the window with class "Program Manager" and send it a WM_CLOSE. Then re-run Explorer to restart the shell. The only trouble with this is that some of your tray icons will be blown away.
--Mike--
==================
The original message was:How can I reload explorer.exe through C++?
I need to do this so it rereads the registry.Thanx.
-
I remember seeing how to do this in "Visual C++ Windows Shell Programming" (a cool book BTW). The topic isn't in the index (and I'm not really up for searching through 660+ pages for it) so this is from memory... I believe you get the HWND of the window with class "Program Manager" and send it a WM_CLOSE. Then re-run Explorer to restart the shell. The only trouble with this is that some of your tray icons will be blown away. --Mike-- ================== The original message was: How can I reload explorer.exe through C++?
I need to do this so it rereads the registry.Thanx.