Displaying Shut Down dialog

  • Thread starter Thread starter nikola.bucic
  • Start date Start date
N

nikola.bucic

Is there any code so that I can call shut down dialog box from my
program?

Under shut down dialog box I mean the one that is shown when you click
on Start -> Shut Down.

Thanks in advance.
 
Add a reference to system directory\shell32.dll
Add the following code:

Shell32.ShellClass c = new Shell32.ShellClass();
c.ShutdownWindows();

I tested this and it worked on Win2K pro.

Thi
 
Back
Top