KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q30804: MASM 5.10 OS2.DOC: OS/2 Call Summary - Process Control

Article: Q30804
Product(s): See article
Version(s): 5.10   | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_masm
Last Modified: 26-MAY-1988

The following information is from the Microsoft Macro Assembler
Version 5.10 OS2.DOC file.

OS/2 Call Summary
Processes control constant - INCL_DOSPROCESS

   @DosCreateThread - Creates an asynchronous thread
   Parameters - PgmAddress:D, ThreadID:PW, NewThreadStack:PB

   @DosResumeThread - Restarts a suspended thread
   Parameters - ThreadID:W

   @DosSuspendThread - Suspends a thread
   Parameters - ThreadID:W

   @DosCWait - Makes thread wait for child process to terminate
   Parameters - ActionCode:W, WaitOption:W, ReturnCodes:PS, ProcessIDWord:PD,
                ProcessID:W
   Structure - RESULTCODES

   @DosSleep - Suspends current thread for specified interval
   Parameters - Interval:D

   @DosEnterCritSec - Disables other threads
   Parameters - none

   @DosExitCritSec - Reenables other threads
   Parameters - none

   @DosExitList - Maintains list of routines to be executed when thread ends
   Parameters - FnCode:W, RtnAddress:PW

   @DosExecPgm - Requests execution of a child program
   Parameters - ObjNameBuf:PB, ObjNameBufL:W, AsyncTraceFlags:W,
                ArgPointer:PZ, EnvPointer:PZ, ReturnCodes:PD, PgmPointer,PZ

   @DosGetPid - Gets process identification
   Parameters - Pid:PS
   Structure - PIDINFO

   @DosGetPrty - Returns the priority of a thread
   Parameters - Scope:W, Priority:PW, ID:W

   @DosSetPrty - Sets the priority of a child process or thread
   Parameters - Scope:W, PriorityClass:W, PriorityDelta:W, ID:W

   @DosKillProcess - Terminates a process and returns its termination code
   Parameters - ActionCode:W, ProcessID:W

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.