StreamError StreamWrite (
GeodeHandle driver,
StreamToken stream,
StreamBlocker blocker,
word buffSize,
const byte * buffer,
word * numBytesWritten);
This routine writes data to a stream. The routine takes the following arguments:
driver
GeodeToken
of the stream driver.
stream
StreamToken
of the stream.
blocker
buffsize
buffer
*numBytesWritten
StreamWrite()
will write to this variable the number of bytes actually written to the stream.
If
StreamWrite()
is successful, it returns zero. If it is unsuccessful, or could not write all the data to the stream, it returns a member of the
StreamError
enumerated type.
StreamError StreamWriteByte (
GeodeHandle driver,
StreamToken stream,
StreamBlocker blocker,
byte dataByte);
This routine writes a single byte to a stream. It takes the following arguments:
driver
GeodeToken
of the stream driver.
stream
StreamToken
of the stream.
blocker
dataByte
If the routine is successful, it returns zero. If it is unsuccessful, it returns a member of the
StreamError
enumerated type.
dword SysGetConfig();
This routine returns a set of values defining the system configuration. The returned dword contains four byte values, listed below from least significant byte to most significant byte:
SysConfigFlags
reflecting the system status. This record includes information on how the system was started, whether Swat is running it, whether the system was restarted, etc.
SysProcessorType
and is one of SPT_8088, SPT_8086, SPT_80186, SPT_80286, SPT_80386, or SPT_80486. Use the macro SGC_PROCESSOR() to extract this value from the returned dword.
SysMachineType
indicating the type of the machine running GEOS. It may be one of the following values: SMT_UNKNOWN, SMT_PC, SMT_PC_CONV, SMT_PC_JR, SMT_PC_XT, SMT_PC_XT_286, SMT_PC_AT, SMT_PS2_30, SMT_PS2_50, SMT_PS2_60, SMT_PS2_80, or SMT_PS1. Use the macro SGC_MACHINE() to extract this value from the returned dword.Include: system.h
Boolean SysGetDosEnvironment( /* true if error (not found) */
const char * variable, /* environment variable */
char * buffer, /* buffer for return value */
word bufSize); /* maximum return string length */
This routine looks up a specified DOS environment variable in the environment buffer. It takes three parameters:
variable
buffer
bufSize
If the variable is not found, the error flag returned will be
true
.
Include: system.h
ErrorCheckingFlags SysGetECLevel(
MemHandle * checksumBlock);
This routine checks the current error-checking level of the system. The returned record of
ErrorCheckingFlags
describes which levels of error checking are turned on and which are off. If checksum error checking (ECF_BLOCK_CHECKSUM) is on, pass a pointer to the handle of a block on which the checksum will be done.
Include: ec.h
dword SysGetInfo(
SysGetInfoType info); /* type of information to retrieve */
This routine returns general system information. Pass the type of information to be returned; the value returned depends on the type passed in
info
. Note that the largest returned value is a dword; many different return values should be cast to the appropriate type when calling
SysGetInfo()
.
The
info
parameter (of
SysGetInfoType
) can have one of the following values:
Include: sysstats.h
GEOS SDK TechDocs
|
|
StreamOpen() ...
|
SysGetPenMode() ...