Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:docs:fapi:doserrclass [2021/09/17 11:05] – prokushev | en:docs:fapi:doserrclass [2021/11/04 13:55] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{page> | {{page> | ||
+ | |||
+ | ====== DosErrClass ====== | ||
+ | |||
This call helps OS/2 applications respond to error codes (return codes) received from OS/2. | This call helps OS/2 applications respond to error codes (return codes) received from OS/2. | ||
- | ====== Syntax | + | ===== Syntax ===== |
<code c> | <code c> | ||
DosErrClass (Code, Class, Action, Locus) | DosErrClass (Code, Class, Action, Locus) | ||
</ | </ | ||
- | ====== Parameters | + | ===== Parameters ===== |
* Code ([[USHORT]]) - input : Error code returned by an OS/2 function. | * Code ([[USHORT]]) - input : Error code returned by an OS/2 function. | ||
Line 15: | Line 18: | ||
* Locus ([[PUSHORT]]) - output : Address of the origin of an error. | * Locus ([[PUSHORT]]) - output : Address of the origin of an error. | ||
- | ====== Return Code ====== | + | ===== Return Code ===== |
rc ([[USHORT]]) - return: | rc ([[USHORT]]) - return: | ||
Line 21: | Line 24: | ||
* 0 NO_ERROR | * 0 NO_ERROR | ||
- | ====== Remarks | + | ===== Remarks ===== |
The input is a return code returned from another function call, and the output is a classification of the return and recommended action. Depending on the application, | The input is a return code returned from another function call, and the output is a classification of the return and recommended action. Depending on the application, | ||
Line 60: | Line 63: | ||
|5|MEM|Memory| | |5|MEM|Memory| | ||
- | ===== Family API Considerations | + | ==== Family API Considerations ==== |
Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following considerations apply to DosErrClass when coding for the DOS mode: | Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following considerations apply to DosErrClass when coding for the DOS mode: | ||
Line 66: | Line 69: | ||
When DosErrClass is called by a family application, | When DosErrClass is called by a family application, | ||
- | ====== Bindings | + | ===== Bindings ===== |
- | ===== C ===== | + | ==== C ==== |
<code c> | <code c> | ||
Line 83: | Line 86: | ||
</ | </ | ||
- | ===== MASM ===== | + | ==== MASM ==== |
<code asm> | <code asm> |