action (ULONG) - input

      The processes to be flagged for ending.

      The values of this field are shown in the following list:

    • DKP_PROCESSTREE
      A process and all its descendant processes. The process must be either the current process, or it must have been directly created by the current process using DosExecPgm with a value of 2 (EXEC_ASYNCRESULT) for execFlag.

      After the indicated process ends, its descendants are flagged for ending. The indicated process need not still be executing. If it has ended, its descendants are still flagged for ending.

    • DKP_PROCESS
      Any process. Only the indicated process is flagged for ending.

    pid (PID) - input

      Process ID of the process or root process of the process tree to be flagged for ending.

    ulrc (APIRET) - returns

      Return Code.

      DosKillProcess returns one of the following values:

    • NO_ERROR 13
        ERROR_INVALID_DATA
      217
        ERROR_ZOMBIE_PROCESS
      303
        ERROR_INVALID_PROCID
      305
        ERROR_NOT_DESCENDANT
      For a full list of error codes, see Errors.


    [Back] [Next]