Return Codes for the EHNAPPC API
Functions in the client Windows® API use the following return code constants defined in E32APPC.H.
| Return Code | Hex Value | Description |
|---|---|---|
| EHNAPPC_OK | 0 | Command completed successfully |
| ENHAPPC_DEALLOCNORMAL | 1 | Deallocation normal. |
| ENHAPPC_PROGRAMMERNOTRUNCATION | 2 | Program error; no truncation. |
| ENHAPPC_PROGRAMMERTRUNCATION | 3 | Program error; truncation. |
| ENHAPPC_PROGRAMMERPURGING | 4 | Program error; purging. |
| ENHAPPC_RESOURCEFAILURETRY | 5 | Resource failure retry. |
| ENHAPPC_RESOURCEFAILURENORETRY | 6 | Resource failure no retry. |
| ENHAPPC_UNSUCCESSFUL | 7 | Unsuccessful. |
| ENHAPPC_APPCBUSY | 8 | APPC busy. |
| ENHAPPC_PARMCHKINVALIDVERB | 14 | Parameter check; incorrect verb. |
| ENHAPPC_PARMCHKINVALIDCONVERID | 15 | Parameter check; incorrect conversation ID. |
| ENHAPPC_PARMCHKBUFFERCROSSEG | 16 | Parameter check; buffer crossed segment. |
| ENHAPPC_PARMCHKTPNAMELENGTH | 17 | Parameter check; transaction program name length. |
| ENHAPPC_PARMCHKINVCONVERTYPE | 18 | Parameter check; incorrect conversation type. |
| ENHAPPC_PARMCHKBADSYNCLVLALLOC | 19 | Parameter check; bad synchronization level allocate. |
| ENHAPPC_PARMCHKBADRETURNCNTRL | 1A | Parameter check; bad return control. |
| ENHAPPC_ ENHAPPC_PARMCHKPIPTOOLONG | 1B | Parameter check: PIP data too long. |
| ENHAPPC_PARMCHKBADPARTNERNAME | 1C | Parameter check; bad partner name. |
| ENHAPPC_PARMCHKCONFNOTALLOWED | 1D | Parameter check; confirm not allowed. |
| ENHAPPC_PARMCHKBADDEALLOCTYPE | 1E | Parameter check; bad deallocation type. |
| ENHAPPC_PARMCHKPREPTORCVTYPE | 1F | Parameter check; prepare to receive type. |
| ENHAPPC_PARMCHKBADFILLTYPE | 20 | Parameter check; bad fill type. |
| ENHAPPC_PARMCHKRECMAXLEN | 21 | Parameter check; receive maximum length. |
| ENHAPPC_PARMCHKUNKNOWNSECTYPE | 22 | Parameter check; reserved field not zero. |
| ENHAPPC_PARMCHKRESFLDNOTZERO | 23 | Parameter check; reserved field not zero. |
| ENHAPPC_STATECHKNOTINCONFSTAT | 28 | State check; not in confirmed state. |
| ENHAPPC_STATECHKNOTINRECEIVE | 29 | State check; not in receive. |
| ENAHAPPC_STATECHKREQSNDBADSTATN | 2A | State check; request to send bad state. |
| ENHAPPC_STATECHKSNDINBADSTATE | 2B | State check; send in bad state. |
| ENHAPPC_STATECHKSNDERRBADSTAT | 2C | State check; send error bad state. |
| ENHAPPC_ALLOCERRNORETRY | 32 | Allocation error; no retry. |
| ENHAPPC_ALLOCERRRETRY | 33 | Allocation error; retry. |
| ENHAPPC_ALLOCERROGMNOTAVAILNR | 34 | Allocation error; program not available no retry. |
| ENHAPPC_ALLOCERRTPNNOTRECOG | 35 | Allocation error; transaction program name not recognized. |
| ENHAPPC_ALLOCERRPGMNOTAVAILR | 36 | Allocation error; program no available retry. |
| ENHAPPC_ALLOCERRSECNOTVALID | 37 | Allocation error; security not valid. |
| ENHAPPC_ALLOCERRCONVTYP | 38 | Allocation error; conversation type mismatch. |
| ENHAPPC_ALLOCERRPIPNOTALLOWED | 39 | Allocation error; PIP data not allowed. |
| ENHAPPC_ALLOCERRPIPNOTCORRECT | 3A | Allocation error; PIP data not correct. |
| ENHAPPC_ALLOCERRSYNCHLEVEL | 3B | Allocation error; synchronization level not supported. |
| ENHAPPC_DEALLOCABENDPROGRAM | 46 | Deallocation abend program. |
| ENHAPPC_INSUFFICIENTMEMORY | 47 | Insufficient memory. |
| ENHAPPC_MEMORYALLOCERROR | 47 | Memory allocation error. |
| ENHAPPC_MEMORYALLCERROR | 48 | Memory allocation error. |
| ENHAPPC_TOOMANYCONVERSATIONS | 4A | Too many conversations. |
| ENHAPPC_CONVTABLEFULL | 4B | Conversion table full. |
| ENHAPPC_CLIENTNOTINSTALLED | 4C | Client not installed |
| ENHAPPC_CLIENTWRONGLEVEL | 4C | Client at wrong level. |
| ENHAPPC_PCSWINNOTLOADED | 4D | PSWIN not loaded. |
| ENHAPPC_PCSWINOUTOFMEMORY | 4E | PCSWIN out of memory. |
| ENHAPPC_INVALIDUSERIDLEN | 4F | Incorrect user ID length. |
| ENHAPPC_INVALIDPASSWORDLEN | 50 | Incorrect password length. |
| ENHAPPC_INVALIDUNAME | 51 | Incorrect LU length. |
| ENHAPPC_UNDEFINED | 63 | Undefined. |