how to call function to shotdown my system in my app. Can show me some sample code . thanks.
Printable View
how to call function to shotdown my system in my app. Can show me some sample code . thanks.
I found the follow code in MSDN->Shell, but how to enable it in VB.Net ?
Thanks.
VB Code:
Visual Basic: Private Sub fnShellShutdownWindowsVB() Dim objShell As Shell Set objShell = New Shell objShell.ShutdownWindows Set objShell = Nothing End Sub Method Information Minimum DLL version shell32.dll version 4.71 or later Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
The problem is some old ways won't work on new OS (2000 or XP) , Try this . It should work .http://www.vbforums.com/showthread.p...ghlight=logoff