DosGetInfoSeg
DosGetInfoSeg
GINFOSEG struc
gis_time dd ? ;time in seconds
gis_msecs dd ? ;milliseconds
gis_hour db ? ;hours
gis_minutes db ? ;minutes
gis_seconds db ? ;seconds
gis_hundredths db ? ;hundredths
gis_timezone dw ? ;minutes from UTC
gis_cusecTimerInterval dw ? ;timer interval (units = 0.0001 seconds)
gis_day db ? ;day
gis_month db ? ;month
gis_year dw ? ;year
gis_weekday db ? ;day of week
gis_uchMajorVersion db ? ;major version number
gis_uchMinorVersion db ? ;minor version number
gis_chRevisionLetter db ? ;revision letter
gis_sgCurrent db ? ;current foreground session
gis_sgMax db ? ;maximum number of sessions
gis_cHugeShift db ? ;shift count for huge elements
gis_fProtectModeOnly db ? ;protect mode only indicator
gis_pidForeground dw ? ;pid of last process in foreground session
gis_fDynamicSched db ? ;dynamic variation flag
gis_csecMaxWait db ? ;max wait in seconds
gis_cmsecMinSlice dw ? ;minimum timeslice (milliseconds)
gis_cmsecMaxSlice dw ? ;maximum timeslice (milliseconds)
gis_bootdrive dw ? ;drive from which the system was booted
gis_amecRAS db 32 dup (?) ;system trace major code flag bits
gis_csgWindowableVioMax db ? ;maximum number of VIO windowable sessions
gis_csgPMMax db ? ;maximum number of pres. services sessions
GINFOSEG ends
LINFOSEG struc
lis_pidCurrent dw ? ;current process id
lis_pidParent dw ? ;process id of parent
lis_prtyCurrent dw ? ;priority of current thread
lis_tidCurrent dw ? ;thread ID of current thread
lis_sgCurrent dw ? ;session
lis_rfProcStatus db ? ;process status
lis_dummy1 db ? ;
lis_fForeground dw ? ;current process has keyboard focus
lis_typeProcess db ? ;process type
lis_dummy2 db ? ;
lis_selEnvironment dw ? ;environment selector
lis_offCmdLine dw ? ;command line offset
lis_cbDataSegment dw ? ;length of data segment
lis_cbStack dw ? ;stack size
lis_cbHeap dw ? ;heap size
lis_hmod dw ? ;module handle of the application
lis_selDS dw ? ;data segment handle of the application
LINFOSEG ends
EXTRN DosGetInfoSeg:FAR
INCL_DOSINFOSEG EQU 1
PUSH@ WORD GlobalSeg ;Global segment selector (returned)
PUSH@ WORD LocalSeg ;Local segment selector (returned)
CALL DosGetInfoSeg
Returns WORD
[Back: DosGetHugeShift]
[Next: DosGetMachineMode]