The information in this article applies to:
SUMMARY
Occasionally it may be necessary to change the AUTOEXEC.BAT or CONFIG.SYS
file in order to help a FoxPro-generated .EXE file run better under
Windows. By using the Windows API function ExitWindows(), you can give the
user a choice of rebooting the system now or later.
MORE INFORMATION
By using FOXTOOLS.FLL and the Windows API function ExitWindows(), you can
reboot the entire system. The following code illustrates this concept.
The ExitWindows() function requires two numeric values to be passed to it
and returns a single integer. The significance of the first integer (67) is
that it is the decimal equivalent of 0x43 hexadecimal or EW_REBOOTSYSTEM,
which is a low-order word in the C++ language. The second integer is
reserved and is always zero. When the ExitWindows() function is called, it
sends a message to all active applications that a request has been made to
terminate Windows. If all applications "agree" to be terminated, the
WM_ENDSESSION message will be sent to all applications before Windows is
terminated.
REFERENCES
Visual C++ Help file
Additional query words: VFoxWin FoxWin 2.50 quit restart SDK API FOXTOOLS.FLL
|
|
Last Reviewed: August 24, 1999 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |