Sys(2340)
This function, added in VFP 7, is useful only for Visual FoxPro COM servers that are run as Windows NT services. It allows your server to intercept the logoff message sent by Windows, and specifies whether to ignore the message and continue running, or to shut down.
Usage |
cValue = SYS( 2340, nOption ) |
Parameter |
Value |
Meaning |
nOption |
Omitted |
Return the current value. |
0 |
Respond to a logoff message by shutting down. |
|
1 |
Ignore logoff messages and continue running. |
|
cValue |
Character |
A character representation of the numeric value passed to the function. |
Example |
* To ignore the WM_QUERYENDSESSION and WM_ENDSESSION messages, * issue the following: cValue = SYS(2340, 1) |
See Also |