
Help an Api beginer (please...)
Hi Ryan,
On NT, you must have the correct security privilege to shutdown the system.
There are a number of KB articles on this topic. Here are two.
HOWTO: Shutdown Windows NT, Windows 95, and 98 from VB Code
Last reviewed: July 3, 1998
Article ID: Q161136
http://support.microsoft.com/support/kb/articles/q161/1/36.asp
PRB: ExitWindowsEx API Does Not Reboot Windows NT
Last reviewed: June 16, 1998
Article ID: Q176695
http://support.microsoft.com/support/kb/articles/q176/6/95.asp
Mike
Quote:
>My Problem:
> I'm using a book called VB 5 in 21 days, to learn the basics of VB5, my
>OS is Win NT 4.0. However, when I come to the chapter on Api's, I'm
supposed
>to write a program that shuts down windows. I follow the book to the word,
>but it doesn't work.