msos2.hlp (Table of Contents; Topic list)
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.
LINFOSEG (1.2)
Changes                                             Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSINFOSEG
 
typedef struct _LINFOSEG {    /* lis */
    PID     pidCurrent;
    PID     pidParent;
    USHORT  prtyCurrent;
    TID     tidCurrent;
    USHORT  sgCurrent;
    UCHAR   rfProcStatus;
    UCHAR   dummy1;
    BOOL    fForeground;
    UCHAR   typeProcess;
    UCHAR   dummy2;
    SEL     selEnvironment;
    USHORT  offCmdLine;
    USHORT  cbDataSegment;
    USHORT  cbStack;
    USHORT  cbHeap;
    HMODULE hmod;
    SEL     selDS;
} LINFOSEG;
 
The LINFOSEG structure contains information local to the current process.
 
Field           Description
────────────────────────────────────────────────────────────────────────────
 
pidCurrent      Specifies the identifier of the current process.
 
pidParent       Specifies the identifier of the parent process.
 
prtyCurrent     Specifies the priority of the current thread.
 
tidCurrent      Specifies the identifier of the current thread.
 
sgCurrent       Specifies the current screen group.
 
rfProcStatus    Specifies the process status. A value of PS_EXITLIST
                indicates the process is in an exit-list routine.
 
dummy1          Reserved.
 
fForeground     Specifies that the current process is in foreground.
 
typeProcess     Specifies the process type. It can be one of the following
                values:
 
                Value             Meaning
                ────────────────────────────────────────────────────────────
                PT_DETACHED       Process is running as a detached process.
 
                PT_FULLSCREEN     Process is running in a full-screen
                                  protected-mode session.
 
                PT_PM             Process is running in the Presentation
                                  Manager screen group.
 
                PT_REALMODE       Process is running in DOS-compatibility
                                  mode.
 
                PT_WINDOWABLEVIO  Process is running in a VIO-window
                                  session.
 
dummy2          Reserved.
 
selEnvironment  Specifies the selector to the application's copy of the
                environment.
 
offCmdLine      Specifies the offset to the environment where the command
                line that is used to run the current application is copied.
 
cbDataSegment   Specifies the size of the default data segment.
 
cbStack         Specifies the size of the stack.
 
cbHeap          Specifies the size of the heap.
 
hmod            Identifies the program.
 
selDS           Specifies the default data segment.
 
Comments
 
The following fields are contained in registers at start-up:
 
Field           Register
────────────────────────────────────────────────────────────────────────────
SelEnvironment  ax
 
offCmdLine      bx
 
cbDataSegment   cx
 
cbStack         dx
 
cbHeap          si
 
hmod            di
 
selDS           ds
 
See Also
 
DosGetInfoSeg, GINFOSEG