◄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 ♦