
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.