DOC: ExitWindows Function Declaration Incorrect in API Viewer (168796)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic for Applications 5.0
- Microsoft Visual Basic for Applications 6.0
This article was previously published under Q168796 SUMMARY
This article demonstrates how to programmatically restart or log off a
computer in Visual Basic. The sample code shown in this article creates a
project that can normally or forcibly perform these functions on a computer
with a Windows 95, Windows 98, Windows Me, Windows 2000, or Windows NT operating system. A normal procedure allows the user the opportunity to close all open programs before executing a restart or log off. A forced procedure automatically closes all open programs before executing a restart or log off.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
174883 DOC: ExitWindows Function Declaration Incorrect in API Viewer
Win32 Programmer's Reference-Search on the following topics:
- AdjustTokenPrivileges
- ExitWindowsEx
- GetLastError
- Privileges
- Logging Off or Shutting Down
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kb32bitOnly kbbug kbdocerr KB168796 |
---|
|