Parcourir la source

* DosGetInfoBloBlocks updated

Tomas Hajny il y a 25 ans
Parent
commit
4909e55df6
1 fichiers modifiés avec 16 ajouts et 3 suppressions
  1. 16 3
      rtl/os2/doscalls.pas

+ 16 - 3
rtl/os2/doscalls.pas

@@ -196,8 +196,10 @@ const   deThread=0;         {Terminate thread only.}
 procedure DosExit(Action,Result:longint); cdecl;
 procedure DosExit(Action,Result:longint); cdecl;
 
 
 type    PThreadInfoBlock=^TThreadInfoBlock;
 type    PThreadInfoBlock=^TThreadInfoBlock;
+        PPThreadInfoBlock=^PThreadInfoBlock;
         PSysThreadIB=^TSysThreadIB;
         PSysThreadIB=^TSysThreadIB;
         PProcessInfoBlock=^TProcessInfoBlock;
         PProcessInfoBlock=^TProcessInfoBlock;
+        PPProcessInfoBlock=^PProcessInfoBlock;
 
 
         TThreadInfoBlock=record
         TThreadInfoBlock=record
             Exh_Chain,              {Head of exeption handler chain.}
             Exh_Chain,              {Head of exeption handler chain.}
@@ -212,7 +214,7 @@ type    PThreadInfoBlock=^TThreadInfoBlock;
         TSysThreadIB=record
         TSysThreadIB=record
             TID,                    {Thread ID.}
             TID,                    {Thread ID.}
             Priority,               {Low byte of low word: thread priority.
             Priority,               {Low byte of low word: thread priority.
-                                     High byte of high word: thread class
+                                     High byte of low word: thread class
                                         1 = Idle
                                         1 = Idle
                                         2 = Regular
                                         2 = Regular
                                         3 = Time critical
                                         3 = Time critical
@@ -245,10 +247,15 @@ type    PThreadInfoBlock=^TThreadInfoBlock;
 {OS/2 keeps information about the current process and the current thread
 {OS/2 keeps information about the current process and the current thread
  is the datastructures Tprocessinfoblock and Tthreadinfoblock. All data
  is the datastructures Tprocessinfoblock and Tthreadinfoblock. All data
  can both be read and be changed. Use DosGetInfoBlocks to get their
  can both be read and be changed. Use DosGetInfoBlocks to get their
- address. The service cannot fail, so it is defined as procedure.}
+ address. The service cannot fail, so it is defined as procedure.
+ The second version of the call might be useful if you only want address
+ of one of those datastructures, since you can supply nil for the other
+ parameter then.}
 
 
 procedure DosGetInfoBlocks(var ATIB:PThreadInfoBlock;
 procedure DosGetInfoBlocks(var ATIB:PThreadInfoBlock;
                            var APIB:PProcessInfoBlock); cdecl;
                            var APIB:PProcessInfoBlock); cdecl;
+procedure DosGetInfoBlocks(PATIB:PPThreadInfoBlock;
+                           PAPIB:PPProcessInfoBlock); cdecl;
 
 
 {Wait a number of microseconds. Cannot fail, so it is defined as procedure.}
 {Wait a number of microseconds. Cannot fail, so it is defined as procedure.}
 procedure DosSleep(MSec:longint); cdecl;
 procedure DosSleep(MSec:longint); cdecl;
@@ -2544,6 +2551,9 @@ external 'DOSCALLS' index 233;
 procedure DosGetInfoBlocks(var ATIB:PThreadInfoBlock;
 procedure DosGetInfoBlocks(var ATIB:PThreadInfoBlock;
                            var APIB:PProcessInfoBlock); cdecl;
                            var APIB:PProcessInfoBlock); cdecl;
 
 
+procedure DosGetInfoBlocks(PATIB:PPThreadInfoBlock;
+                           PAPIB:PPProcessInfoBlock); cdecl;
+
 external 'DOSCALLS' index 312;
 external 'DOSCALLS' index 312;
 
 
 procedure DosSleep (MSec:longint); cdecl;
 procedure DosSleep (MSec:longint); cdecl;
@@ -3943,7 +3953,10 @@ external 'DOSCALLS' index 582;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.11  2000-01-09 20:51:03  hajny
+  Revision 1.12  2000-04-01 10:46:07  hajny
+    * DosGetInfoBloBlocks updated
+
+  Revision 1.11  2000/01/09 20:51:03  hajny
     * FPK changed to FPC
     * FPK changed to FPC
 
 
   Revision 1.10  2000/01/07 16:41:46  daniel
   Revision 1.10  2000/01/07 16:41:46  daniel