From: Nobody on
"Ivo Beltchev" <ivo(a)ivo.com> wrote in message
news:uA6IlEUwKHA.4908(a)TK2MSFTNGP06.phx.gbl...
> Yes, I know all that, but users still complain that they have to log off.
> Also when upgrading to a new version sometimes both the new DLL and the
> old DLL get loaded by Explorer - hilarity ensues. And the Restart Manager
> is kind of flaky too. Sometimes it detects the dependency and renames the
> files, other times it does not.
>
> That said, my current "solution" is indeed to do nothing and rely on the
> Restart Manager. But I'm not satisfied how it behaves sometimes.

It seems that terminating Explorer process would solve this problem if the
user agrees to it. It's possible to rearrange task bar buttons by using
undocumented methods, but it's a hack. See this link

ButtonBoogie 2: Rearrange Your Taskbar Buttons
http://www.pcmag.com/article2/0,2817,1901633,00.asp

Unfortunately it's for subscriber only. If you search the web for
"ButtonBoogie2.zip", you might find it a copy of it. The way it works is by
installing a hook and monitor or send messages that are found through a tool
like Spy++, so you can do the same if you have Spy++ or similar tool. This
means that your solution could break in future versions of the OS.


From: m on
Remember that there is also an option to run _each_ explorer window in a
separate process. My guess is that this is used mostly for shell debugging,
but it is an important consideration.

In general what the OP is doing is just wrong, and IMHO there is no reliable
way to deal with the installation / un-installation of shell extensions
except reboot (think terminal services) and I can think of no other
legitimate reason for wanting to restart explorer from a program.

"Ivo Beltchev" <ivo(a)ivo.com> wrote in message
news:#QOwFgTwKHA.3896(a)TK2MSFTNGP02.phx.gbl...
> You can try to locate the top-level window with class "Progman" and post
> WM_QUIT to it. Keep in mind that sometimes there are 2 explorer processes
> that are running - one for the Desktop/taskbar and one for the Explorer
> windows. Also on 64-bit Vista there may be a 32-bit Explorer also running
> (if a 32-bit process has launched "explorer.exe").
>
> Vilius Mockunas wrote:
>> Hello,
>>
>> I want to shutdown explorer.exe by imitating Ctrl+Alt+Shift+"Cancel
>> button push by mouse"
>> Of course I can write my own code, but I consider this method more
>> reliable.
>>
>> V
>>
>>
>> "Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
>> news:%23etZ%23FKwKHA.1796(a)TK2MSFTNGP02.phx.gbl...
>>> What exactly do you want to do?
>>> Why do you want to hook that dialog and
>>> why do you want to intercept this dialog?
>>>
>>> regards
>>>
>>> Kerem
>>>
>>> --
>>> -----------------------
>>> Beste Gr�sse / Best regards / Votre bien devoue
>>> Kerem G�mr�kc�
>>> Latest Project: http://www.pro-it-education.de/software/deviceremover
>>> Latest Open-Source Projects: http://entwicklung.junetz.de
>>> -----------------------
>>>
>>> "Vilius Mockunas" <v_mockunas(a)yahoo.com> schrieb im Newsbeitrag
>>> news:Od2Cc5GwKHA.812(a)TK2MSFTNGP06.phx.gbl...
>>>> But if I want to install hook I need thread id - how do I get it in
>>>> this case ?
>>>>
>>>> V
>>>>
>>>> "Dee Earley" <dee.earley(a)icode.co.uk> wrote in message
>>>> news:OwXXnODwKHA.1692(a)TK2MSFTNGP04.phx.gbl...
>>>>> On 09/03/2010 08:07, Vilius Mock�nas wrote:
>>>>>> Hello,
>>>>>>
>>>>>> How do I get shutdown dialog window handle (which shows after Alt+F4)
>>>>>> ?
>>>>>> After displaying the dialog user input is almost disabled so it's
>>>>>> hard to
>>>>>> identify process which created the dialog, but I suspect
>>>>>> explorer.exe.
>>>>> CBT hooks.
>>>>>
>>>>> Can I ask why you want to do this?
>>>>> You r app should not be doing anything with this dialog as it is for
>>>>> the USER to choose.
>>>>>
>>>>> If you want to shut down windows, there are fully documented APIs to
>>>>> do it.
>>>>>
>>>>> --
>>>>> Dee Earley (dee.earley(a)icode.co.uk)
>>>>> i-Catcher Development Team
>>>>>
>>>>> iCode Systems
>>>>
>>
>>