Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
GINFOSEG (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSINFOSEG
typedef struct _GINFOSEG { /* gis */
ULONG time;
ULONG msecs;
UCHAR hour;
UCHAR minutes;
UCHAR seconds;
UCHAR hundredths;
USHORT timezone;
USHORT cusecTimerInterval;
UCHAR day;
UCHAR month;
USHORT year;
UCHAR weekday;
UCHAR uchMajorVersion;
UCHAR uchMinorVersion;
UCHAR chRevisionLetter;
UCHAR sgCurrent;
UCHAR sgMax;
UCHAR cHugeShift;
UCHAR fProtectModeOnly;
USHORT pidForeground;
UCHAR fDynamicSched;
UCHAR csecMaxWait;
USHORT cmsecMinSlice;
USHORT cmsecMaxSlice;
USHORT bootdrive;
UCHAR amecRAS[32];
UCHAR csgWindowableVioMax;
UCHAR csgPMMax;
} GINFOSEG;
The GINFOSEG structure contains various global information.
Field Description
────────────────────────────────────────────────────────────────────────────
time Specifies the time from January 1, 1970 (in seconds).
msecs Specifies the current system time (in milliseconds).
hour Specifies the current hour using values from 0 through
23.
minutes Specifies the current minute using values from 0
through 59.
seconds Specifies the current second using values from 0
through 59.
hundredths Specifies the current hundredths of a second using
values from 0 through 99.
timezone Specifies the difference (in minutes) between the
current time zone and Greenwich Mean Time (GMT). This
field is positive for time zones west of Greenwich; it
is negative for time zones east of Greenwich. For
example, for Eastern Standard Time this field is 300
(that is, five hours, 5 * 60, after GMT). If this field
is -1, the time zone is undefined.
cusecTimerInterval Specifies the timer interval (in microseconds).
day Specifies the current day of the month using values
from 1 through 31.
month Specifies the current month of the year using values
from 1 through 12.
year Specifies the current year.
weekday Specifies the current day of the week using values from
0 through 6 (Sunday equals zero).
uchMajorVersion Specifies the major version number.
uchMinorVersion Specifies the minor version number.
chRevisionLetter Specifies the revision letter.
sgCurrent Specifies the current foreground screen group.
sgMax Specifies the maximum number of screen groups.
cHugeShift Specifies the shift count for huge segments.
fProtectModeOnly Specifies the protect-mode-only indicator.
pidForeground Specifies the identifier of the current foreground
process.
fDynamicSched Specifies the dynamic variation flag (1 equals
enabled).
csecMaxWait Specifies the maximum wait (in seconds).
cmsecMinSlice Specifies the minimum time slice (in milliseconds).
cmsecMaxSlice Specifies the maximum time slice (in milliseconds).
bootdrive Specifies the boot drive.
amecRAS[32] Specifies that each bit corresponds to a system-trace
major code from 0x0000 through 0x00FF. The most
significant bit (leftmost) of the first byte in the
array corresponds to major code 0x0000. If a bit is
cleared, the trace is disabled. If a bit is set, the
trace is enabled.
csgWindowableVioMax Specifies the maximum number of VIO window-compatible
sessions.
csgPMMax Specifies the maximum number of Presentation Manager
sessions.
See Also
DosGetInfoSeg, LINFOSEG
♦