Shutting down Windows 95

Posted on 1999-12-27
Medium Priority
Last Modified: 2010-05-02
How do we SHUT DOWN windows 95?
(Please, I need the code to shut it down, not restart it!)

Is this procedure the same as for Windows 98?
Question by:mhdhallak
  • 2

Accepted Solution

shyamkumarreddy earned 30 total points
ID: 2308959
To shutdown the windows use API function

use this code

private declare function exitwindowsex....

dim temp

temp =exitwindowsex(1,0)

This code will automatically shuts ur windows

Expert Comment

ID: 2309032
Try this:

Private declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Boolean

Dim success As Boolean
success = ExitWindowsEx(1, 0)

You can also use, instead of '1':
0 - logoff
2 - restart

Expert Comment

ID: 2310439
By the way, the above will also work in Windows 98.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question