How Do I Restart Computer with WIN 311 w/ vb4 16bit 
Author Message
 How Do I Restart Computer with WIN 311 w/ vb4 16bit

How Can I use Vb4.0 for 16 bit environment to exit win 3.1 and reboot?

Mark W. Davis

may you find abundant life and grasp it with all that you are.



Tue, 17 Oct 2000 03:00:00 GMT  
 How Do I Restart Computer with WIN 311 w/ vb4 16bit

Declare Function ExitWindows Lib "User" (ByVal dwReturnCode As Long, ByVal
wReserved As Integer) As Integer

This is the API call you need to declare, you use it something like this -

ExitWindows(0,0)

I use this routine already but the source code is at my office so I am not
sure of the numbers you need to put in.  I am pretty sure it is 0 or 1
depending on whether you want to restart Windows or just exit.  If you can't
get it to work by next week, email me.

ian.bate at {*filter*}.net

Quote:

>How Can I use Vb4.0 for 16 bit environment to exit win 3.1 and reboot?

>Mark W. Davis

>may you find abundant life and grasp it with all that you are.



Wed, 18 Oct 2000 03:00:00 GMT  
 How Do I Restart Computer with WIN 311 w/ vb4 16bit

Hi Mark,

Check the ExitWindows() API function.

Regards,
         Stoil

Quote:

> How Can I use Vb4.0 for 16 bit environment to exit win 3.1 and reboot?

> Mark W. Davis

> may you find abundant life and grasp it with all that you are.



Fri, 20 Oct 2000 03:00:00 GMT  
 How Do I Restart Computer with WIN 311 w/ vb4 16bit


Quote:
>How Can I use Vb4.0 for 16 bit environment to exit win 3.1 and reboot?

>Mark W. Davis

>may you find abundant life and grasp it with all that you are.

For example code, download the SHUTDOWN and RESTART files on the VB3
source page at my home page - URL below.

Visit my source code page at http://www.mindspring.com/~johnecarter
Visit my favorite school at http://www.mindspring.com/~addison



Sat, 28 Oct 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Win 311/VB3 progress bar prob

2. How to find Win 311 or W

3. Win 95 / 311 Errors

4. Restart Windows, NOT restart Computer

5. VB4 16bit and VB5 32bit on same computer

6. How to find Win 311 or Win 95 User Name?

7. Help Please, Need Code for Restarting WIN 95 within VB4 Application

8. Win 3.11, VB4 16Bit and an out of memory error

9. Win NT4 and vb4 16bit (msg includes picture)

10. Help: Unloading a dll in windows 95 311

11. VB4 - 16BIT Sheridan Calendar Widgets (16bit OCX)

12. 16bit SourceSafe problems w/VB4.0-16bit - too many file handles open

 

 
Powered by phpBB® Forum Software