From: Plane on
What is the call to display the Windoes shutdown dialog box (as if i
pressed shutdown on the Start menu)
From: Jeff Johnson [MVP: VB] on

<Plane(a)aol.com> wrote in message
news:7s54v15bbsf25put88sjtilq7119fq585i(a)4ax.com...

> What is the call to display the Windoes shutdown dialog box (as if i
> pressed shutdown on the Start menu)

I'm sure it's in here: http://www.geocities.com/SiliconValley/4942/


From: MikeD on

<Plane(a)aol.com> wrote in message
news:7s54v15bbsf25put88sjtilq7119fq585i(a)4ax.com...
> What is the call to display the Windoes shutdown dialog box (as if i
> pressed shutdown on the Start menu)

I'm pretty sure there's an Win32API function you can call, but this works
too:

Dim objShell As Shell

Set objShell = New Shell
objShell.ShutdownWindows

Set objShell = Nothing

You'll need to set a reference to "Microsoft Shell Controls and Automation"
OR you can use late-binding:

Dim objShell As Object

Set objShell = CreateObject("Shell.Application")
objShell.ShutdownWindows

Set objShell = Nothing

--
Mike
Microsoft MVP Visual Basic


From: J French on
On Tue, 14 Feb 2006 12:47:38 -0500, Plane(a)aol.com wrote:

>What is the call to display the Windoes shutdown dialog box (as if i
>pressed shutdown on the Start menu)

ExitWindowsEx

See the two examples for 9x and NT/XP in the downloadable API Guide

http://www.mentalis.org/agnet/


From: Jeff Johnson [MVP: VB] on

"J French" <erewhon(a)nowhere.uk> wrote in message
news:43f2ff12.255741948(a)news.btopenworld.com...

>>What is the call to display the Windoes shutdown dialog box (as if i
>>pressed shutdown on the Start menu)
>
> ExitWindowsEx
>
> See the two examples for 9x and NT/XP in the downloadable API Guide
>
> http://www.mentalis.org/agnet/

I see nothing in the documentation of ExitWindowsEx() that suggests it can
display the shutdown dialog box.


 |  Next  |  Last
Pages: 1 2
Prev: SetTimer vs. Timer Control
Next: Shellexecute in VB6