Changeset 1341 for branches


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

o #356: Info segments stuff.
o Added the SPBCDATA struct.
o Added BS_NOTEBOOKBUTTON.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GCC_3-2-2_BETA4_BRANCH/src/emx/include/os2emx.h

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.10.2.1
    r1340 r1341  
    11721172#define OBJ_GIVEABLE            0x0200
    11731173#define OBJ_ANY                 0x0400
    1174 #define OBJ_SELMAPALL           0x0800     
     1174#define OBJ_SELMAPALL           0x0800
    11751175#define PAG_DEFAULT             0x0400
    11761176#define PAG_SHARED              0x2000
     
    11781178#define PAG_BASE                0x00010000
    11791179
    1180 #define SEL_CODE                0x0001     
    1181 #define SEL_USE32               0x0002     
    1182 
    1183 #define PAG_NPOUT               0x0000     
    1184 #define PAG_PRESENT             0x0001     
    1185 #define PAG_NPIN                0x0002     
    1186 #define PAG_PRESMASK            0x0003     
    1187 #define PAG_INVALID             0x0000     
    1188 #define PAG_RESIDENT            0x0010     
    1189 #define PAG_SWAPPABLE           0x0020     
    1190 #define PAG_DISCARDABLE         0x0030     
    1191 #define PAG_TYPEMASK            0x0030     
     1180#define SEL_CODE                0x0001
     1181#define SEL_USE32               0x0002
     1182
     1183#define PAG_NPOUT               0x0000
     1184#define PAG_PRESENT             0x0001
     1185#define PAG_NPIN                0x0002
     1186#define PAG_PRESMASK            0x0003
     1187#define PAG_INVALID             0x0000
     1188#define PAG_RESIDENT            0x0010
     1189#define PAG_SWAPPABLE           0x0020
     1190#define PAG_DISCARDABLE         0x0030
     1191#define PAG_TYPEMASK            0x0030
    11921192
    11931193#define DOSSUB_INIT             0x0001
     
    57885788#define FCF_HIDEBUTTON                  0x01000000
    57895789#define FCF_HIDEMAX                     0x01000020
     5790#define FCF_CLOSEBUTTON                 0x04000000
    57905791#define FCF_AUTOICON                    0x40000000
    57915792#if defined (INCL_NLS)
     
    61626163#define BN_PAINT                        3
    61636164
    6164 #define BS_PUSHBUTTON                   0
    6165 #define BS_CHECKBOX                     1
    6166 #define BS_AUTOCHECKBOX                 2
    6167 #define BS_RADIOBUTTON                  3
    6168 #define BS_AUTORADIOBUTTON              4
    6169 #define BS_3STATE                       5
    6170 #define BS_AUTO3STATE                   6
    6171 #define BS_USERBUTTON                   7
    6172 
     6165#define BS_PUSHBUTTON                   0x0000
     6166#define BS_CHECKBOX                     0x0001
     6167#define BS_AUTOCHECKBOX                 0x0002
     6168#define BS_RADIOBUTTON                  0x0003
     6169#define BS_AUTORADIOBUTTON              0x0004
     6170#define BS_3STATE                       0x0005
     6171#define BS_AUTO3STATE                   0x0006
     6172#define BS_USERBUTTON                   0x0007
     6173#define BS_NOTEBOOKBUTTON               0x0008
    61736174#define BS_PRIMARYSTYLES                0x000f
     6175
    61746176#define BS_TEXT                         0x0010
    61756177#define BS_MINIICON                     0x0020
     
    1038310385#define SPBQ_DONOTUPDATE                3
    1038410386
     10387typedef struct _SPBCDATA
     10388{
     10389    ULONG   cbSize;
     10390    ULONG   ulTextLimit;
     10391    LONG    lLowerLimit;
     10392    LONG    lUpperLimit;
     10393    ULONG   idMasterSpb;
     10394    PVOID   pHWXCtlData;
     10395} SPBCDATA;
     10396typedef SPBCDATA *PSPBCDATA;
     10397
    1038510398#endif /* INCL_WINSTDSPIN */
    1038610399
     
    1319313206
    1319413207
     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
    1319513292/* ------------------------------ THE END --------------------------------- */
    1319613293
Note: See TracChangeset for help on using the changeset viewer.