Jump to content

RESULTCODES: Difference between revisions

From EDM2
Ak120 (talk | contribs)
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== RESULTCODES ==
Result from application termination.
Result from application termination.


=== Type ===
=== Type ===
  [[OS2 API:DataType:ULONG|ULONG]]  codeTerminate
  [[ULONG]]  codeTerminate
  [[OS2 API:DataType:ULONG|ULONG]] codeResult
  ULONG  codeResult


==== C Declaration Method ====
==== C Declaration Method ====
Line 10: Line 9:


=== Fields ===
=== Fields ===
;codeTerminate:Termination code or process identifier.
:For asynchronous requests, this field contains the process identifier of the child process. For synchronous requests, this field contains the termination code furnished by the system describing why the child process ended. The values of the termination code are shown in the following list:
::0 TC_EXIT - Normal exit.
::1 TC_HARDERROR - Hard-error halt
::2 TC_TRAP - Trap operation for a 16-bit child process
::3 TC_KILLPROCESS - Unintercepted DosKillProcess
::4 TC_EXCEPTION - Exception operation for a 32-bit child process
;codeResult:Exit code.
:Result code specified by the terminating synchronous process on its last call to DosExit.


codeTerminate  Termination code or process identifier.
==PRESULTCODES==
                For asynchronous requests, this field contains the process
Pointer to RESULTCODES
                identifier of the child process. For synchronous requests, this
                field contains the termination code furnished by the system
                describing why the child process ended. The values of the
                termination code are shown in the following list:
                0  TC_EXIT        Normal exit.
                1  TC_HARDERROR    Hard-error halt
                2  TC_TRAP        Trap operation for a 16-bit child process
                3  TC_KILLPROCESS  Unintercepted DosKillProcess
                4  TC_EXCEPTION    Exception operation for a 32-bit child
                                  process


  codeResult    Exit code.
[[Category:Data type]]
                Result code specified by the terminating synchronous process on
                its last call to DosExit.
 
[[Category:The OS/2 API Project]]

Latest revision as of 18:51, 7 November 2017

Result from application termination.

Type

ULONG  codeTerminate
ULONG  codeResult

C Declaration Method

typedef struct

Fields

codeTerminate
Termination code or process identifier.
For asynchronous requests, this field contains the process identifier of the child process. For synchronous requests, this field contains the termination code furnished by the system describing why the child process ended. The values of the termination code are shown in the following list:
0 TC_EXIT - Normal exit.
1 TC_HARDERROR - Hard-error halt
2 TC_TRAP - Trap operation for a 16-bit child process
3 TC_KILLPROCESS - Unintercepted DosKillProcess
4 TC_EXCEPTION - Exception operation for a 32-bit child process
codeResult
Exit code.
Result code specified by the terminating synchronous process on its last call to DosExit.

PRESULTCODES

Pointer to RESULTCODES