>How do I programming for shut down windows95?
In addition to what Jayesh told you, here are all the values for shutting down the system and what they'll do.
#DEFINE EWX_LOGOFF 0
#DEFINE EWX_SHUTDOWN 1
#DEFINE EWX_REBOOT 2
#DEFINE EWX_FORCE 4
#DEFINE EWX_POWEROFF 8
EWX_LOGOFF - All processes are forced to terminate regardless of whether or not the respond. In VFP, the system then re-starts.
EWX_SHUTDOWN - Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.
EWX_REBOOT Shuts down the system and then restarts Windows.
EWX_FORCE - All processes are forced to terminate regardless of whether or not the respond. In VFP, the system then re-starts.
EWX_POWEROFF - Shuts down the system and turns off the power. The system must support the power-off feature.
hth,
George
Ubi caritas et amor, deus ibi est