Ignore:
Timestamp:
Apr 7, 2004, 1:17:37 AM (21 years ago)
Author:
bird
Message:

#356: Info segments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/os2emx.h

    • Property cvs2svn:cvs-rev changed from 1.13 to 1.14
    r1339 r1340  
    1320613206
    1320713207
     13208/* -------------------------- Info Segments ------------------------------- */
     13209
     13210#if defined(INCL_DOSINFOSEG)
     13211
     13212#pragma pack(1)
     13213typedef struct _GINFOSEG
     13214{
     13215    ULONG       time;
     13216    ULONG       msecs;
     13217    UCHAR       hour;
     13218    UCHAR       minutes;
     13219    UCHAR       seconds;
     13220    UCHAR       hundredths;
     13221    USHORT      timezone;
     13222    USHORT      cusecTimerInterval;
     13223    UCHAR       day;
     13224    UCHAR       month;
     13225    USHORT      year;
     13226    UCHAR       weekday;
     13227    UCHAR       uchMajorVersion;
     13228    UCHAR       uchMinorVersion;
     13229    UCHAR       chRevisionLetter;
     13230    UCHAR       sgCurrent;
     13231    UCHAR       sgMax;
     13232    UCHAR       cHugeShift;
     13233    UCHAR       fProtectModeOnly;
     13234    USHORT      pidForeground;
     13235    UCHAR       fDynamicSched;
     13236    UCHAR       csecMaxWait;
     13237    USHORT      cmsecMinSlice;
     13238    USHORT      cmsecMaxSlice;
     13239    USHORT      bootdrive;
     13240    UCHAR       amecRAS[32];
     13241    UCHAR       csgWindowableVioMax;
     13242    UCHAR       csgPMMax;
     13243    USHORT      SIS_Syslog;
     13244    USHORT      SIS_MMIOBase;
     13245    USHORT      SIS_MMIOAddr;
     13246    UCHAR       SIS_MaxVDMs;
     13247    UCHAR       SIS_Reserved;
     13248} GINFOSEG;
     13249typedef GINFOSEG *PGINFOSEG;
     13250
     13251typedef struct _LINFOSEG
     13252{
     13253    PID         pidCurrent;
     13254    PID         pidParent;
     13255    USHORT      prtyCurrent;
     13256    TID         tidCurrent;
     13257    USHORT      sgCurrent;
     13258    UCHAR       rfProcStatus;
     13259    UCHAR       dummy1;
     13260    BOOL        fForeground;
     13261    UCHAR       typeProcess;
     13262    UCHAR       dummy2;
     13263    SEL         selEnvironment;
     13264    USHORT      offCmdLine;
     13265    USHORT      cbDataSegment;
     13266    USHORT      cbStack;
     13267    USHORT      cbHeap;
     13268    HMODULE     hmod;
     13269    SEL         selDS;
     13270} LINFOSEG;
     13271typedef LINFOSEG *PLINFOSEG;
     13272#pragma pack()
     13273
     13274#ifndef PT_FULLSCREEN
     13275#define PT_FULLSCREEN           0
     13276#define PT_REALMODE             1
     13277#define PT_WINDOWABLEVIO        2
     13278#define PT_PM                   3
     13279#define PT_DETACHED             4
     13280#define PS_EXITLIST             1
     13281#endif /* !defined PT_FULLSCREEN */
     13282
     13283/* Take address, these are abs symbols. */
     13284extern void _System DosGlobalInfo(void);
     13285extern void _System DosLocalInfo(void);
     13286#define GETGINFOSEG()       ((PGINFOSEG)(void*)(((unsigned)&DosGlobalInfo & 0xfff8) << 13))
     13287#define GETLINFOSEG()       ((PLINFOSEG)(void*)(((unsigned)&DosLocalInfo & 0xfff8)  << 13))
     13288
     13289#endif /* INCL_DOSINFOSEG */
     13290
     13291
    1320813292/* ------------------------------ THE END --------------------------------- */
    1320913293
Note: See TracChangeset for help on using the changeset viewer.