Boolean SysShutdown(
SysShutdownType type,
...);
This routine causes the system to shut down, exiting to the native operating system (typically DOS). It takes variable parameters depending on the first parameter. The first parameter is the type of shutdown requested, and it determines the calling format of the routine.
SysShutdown()
returns a Boolean value dependent on the type of shutdown.
The parameters and calling format for this routine depend on the value in the
type
parameter. The possible values (
SysShutdownType
) are listed below with the associated parameter and return information.
true
if a system shutdown is already in progress at the time of the call. This type of shutdown will send
MSG_META_CONFIRM_SHUTDOWN
to all objects registered on the MANUFACTURER_ID_GEOWORKS:GCNSLT_SHUTDOWN_CONTROL GCN list (but only if the shutdown is not cancelled). Each object on that list must return an acknowledgment of the shutdown. The parameter format and parameters areBoolean SysShutdown( SysShutdownType type, optr notificationOD, Message msg);
notificationOD
msg
after the shutdown has been acknowledged. Pass a null optr to use the default notification (
MSG_META_DETACH
sent to the UI).
msg
notificationOD
.Boolean SysShutdown{
SysShutdownType type, /* SST_DIRTY */
const char * reason);
reason
parameter is a pointer to a text string presented to the user as a reason for the dirty shutdown. The string is null-terminated. Pass -1 if no reason is to be given.
Ctrl-Alt-Del
. Applications should not call it.
only
by the UI when the SST_CLEAN_FORCED shutdown is complete. This type does not return, and it takes one additional parameter. The calling format and parameters of this type areBoolean SysShutdown( SysShutdownType type, const char * reason);
reason
parameter is a character string explaining the reason (typically an error) for the final shutdown.
MSG_META_CONFIRM_SHUTDOWN
to all objects on the MANUFACTURER_ID_GEOWORKS:GCNSLT_SHUTDOWN_CONTROL GCN list (see
MetaClass
). All notified objects must return acknowledgment of the shutdown. This type of
SysShutdown()
returns
true
if another system shutdown is already in progress. It takes two additional parameters:Boolean SysShutdown( SysShutdownType type, optr notificationOD, Message msg);
notificationOD
msg
after the shutdown has been acknowledged. Pass a null optr to use the default notification (
MSG_META_DETACH
sent to the UI), though this is not usually the intent of the call.
msg
notificationOD
.
MSG_META_CONFIRM_SHUTDOWN
; this allows shutdown confirmation dialog boxes to be presented in order to the user. The caller of this type will be blocked until all previous callers have finished their confirmation procedure. When
SysShutdown()
returns, the caller may present its confirmation dialog and continue or abort the shutdown. If
SysShutdown()
returns
true
from a call with this type, the caller should
not
present the confirmation dialog to the user and need not call
SysShutdown()
with SST_CONFIRM_END; another thread has already cancelled the shutdown. This type takes no additional parameters.
MSG_META_CONFIRM_SHUTDOWN
handler. It takes one additional parameter and returns nothing. The calling format is shown below:void SysShutdown( SysShutdownType type, Boolean confirm);
confirm
parameter should be TRUE if the shutdown is to be continued, FALSE if the shutdown should be aborted.Include: system.h
Warnings: Most applications should not call
SysShutdown()
. Any that do should do so with extreme care.
void SysStatistics(
SysStats * stats); /* returned statistics */
This routine returns system performance statistics. Pass it a pointer to an empty
SysStats
structure; the routine will fill in the appropriate fields.
SysStats
has the following structure:
typedef struct {
dword SS_idleCount;
SysSwapInfo SS_swapOuts;
SysSwapInfo SS_swapIns;
word SS_contextSwitches;
word SS_interrupts;
word SS_runQueue;
} SysStats;
Include: sysstats.h
GEOS SDK TechDocs
|
|
SysGetPenMode() ...
|
TextSearchInString() ...