/* ** -- HEADER PROLOG -- ***********************************************
 
  Ultimedia System Facilities/400  COPYRIGHT (C) IBM Corporation 1993
           LICENSED MATERIAL-PROGRAM PROPERTY OF IBM
                                                      *** Keyword *** '%n'
  'FZZMCRC.H'
 
  Author: Neil Morehouse
                                                      *** Keyword *** '%l'
  Checked Out By:      '***_NOBODY_***'
 
  DESCRIPTION:  CPM API Header File
  -----------
 
 ** -- HEADER PROLOG END -- ******************************************* */
 
/* The Cooperative Process Mangement (CPM) base return code number is */
/*      FZZM_PWS_CP_BASE = 0x400 = 1024                               */
 
 
/* ------------------- Return Codes ------------------- */
 
/* An internal error has occurred */
   #define FZZMRC_CP_INTERNAL_ERROR         (FZZMRC_PWS_CP_BASE + 0x0002)  /* 1026 0x0402 */
/* An error occurred that may be corrected with time */
   #define FZZMRC_CP_RETRY_ERROR            (FZZMRC_PWS_CP_BASE + 0x0004)  /* 1028 0x0404 */
/* An error occurred starting (OS/2 fzzmcmo.exe or Windows fzzmcmw.exe) */
   #define FZZMRC_CP_ERR_STARTING_CPMGR     (FZZMRC_PWS_CP_BASE + 0x0005)  /* 1029 0x0405 */
/* An internal structure not found */
   #define FZZMRC_CP_NOT_FOUND              (FZZMRC_PWS_CP_BASE + 0x0006)  /* 1030 0x0406 */
/* User trying to connect with a specified AS/400 while another system is active */
   #define FZZMRC_CP_ERR_ANOTHER_SYS_ACTIVE (FZZMRC_PWS_CP_BASE + 0x0007)  /* 1031 0x0407 */
/* Communication is not active with requested system */
   #define FZZMRC_CP_SYS_NOT_ACTIVE         (FZZMRC_PWS_CP_BASE + 0x0008)  /* 1032 0x0408 */
/* Error accessing Client Access/400 */
   #define FZZMRC_CP_CA400_ERROR            (FZZMRC_PWS_CP_BASE + 0x000A)  /* 1034 0x040A */
/* A communications error occurred*/
   #define FZZMRC_CP_COMM_ERROR             (FZZMRC_PWS_CP_BASE + 0x000B)  /* 1035 0x040B */
/* An invalid parameter was passed on API call */
   #define FZZMRC_CP_INVPARM                (FZZMRC_PWS_CP_BASE + 0x000C)  /* 1036 0x040C */
/* The reserved field must be set to NULL */
   #define FZZMRC_CP_INVPARM_RESERVE        (FZZMRC_PWS_CP_BASE + 0x000D)  /* 1037 0x040D */
/* An invalid FZZMCONV struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_CONVID         (FZZMRC_PWS_CP_BASE + 0x000E)  /* 1038 0x040E */
/* RtvInfo return pointer is invalid */
   #define FZZMRC_CP_INVPARM_RTVINFORTN     (FZZMRC_PWS_CP_BASE + 0x000F)  /* 1039 0x040F */
/* An invalid location parameter was passed on API call */
   #define FZZMRC_CP_INVPARM_LOCATION       (FZZMRC_PWS_CP_BASE + 0x0010)  /* 1040 0x0410 */
/* An invalid FZZMRID struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_RID            (FZZMRC_PWS_CP_BASE + 0x0012)  /* 1042 0x0412 */
/* An invalid FZZMPROCSYNC struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_PROCSYNC       (FZZMRC_PWS_CP_BASE + 0x0013)  /* 1043 0x0413 */
/* An invalid FZZMPROCSYNCRTN struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_PROCSYNCRTN    (FZZMRC_PWS_CP_BASE + 0x0014)  /* 1044 0x0414 */
/* An invalid FZZMPROCASYNC struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_PROCASYNC      (FZZMRC_PWS_CP_BASE + 0x0015)  /* 1045 0x0415 */
/* An invalid FZZMRETURNDATA struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_RETURNDATA     (FZZMRC_PWS_CP_BASE + 0x0016)  /* 1046 0x0416 */
/* An invalid FZZMRTVDATA struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_RTVDATA        (FZZMRC_PWS_CP_BASE + 0x0017)  /* 1047 0x0417 */
/* An invalid FZZMRTVDATARTN struct or pointer was passed on API call */
   #define FZZMRC_CP_INVPARM_RTVDATARTN     (FZZMRC_PWS_CP_BASE + 0x0018)  /* 1048 0x0418 */
/* An invalid Window handle (hwnd) was passed on API call */
   #define FZZMRC_CP_INVPARM_HWND           (FZZMRC_PWS_CP_BASE + 0x0019)  /* 1049 0x0419 */
/* An invalid program ID was passed on API call */
   #define FZZMRC_CP_INVPARM_PGMID          (FZZMRC_PWS_CP_BASE + 0x001A)  /* 1050 0x041A */
/* An invalid message ID was passed on API call */
   #define FZZMRC_CP_INVPARM_MSGID          (FZZMRC_PWS_CP_BASE + 0x001B)  /* 1051 0x041B */
/* An invalid Async ID Name was passed on API call */
   #define FZZMRC_CP_INVPARM_ASYNCIDNAME    (FZZMRC_PWS_CP_BASE + 0x001C)  /* 1052 0x041C */
/* An invalid Rtv Info ID was passed on API call */
   #define FZZMRC_CP_INVPARM_RTVINFOID      (FZZMRC_PWS_CP_BASE + 0x001D)  /* 1053 0x041D */
/* Drive not assigned to root folder on target system */
   #define FZZMRC_CP_DRIVE_NOT_DEFINED      (FZZMRC_PWS_CP_BASE + 0x001E)  /* 1054 0x041E */
/* CPM must be started prior to calling the API */
   #define FZZMRC_CP_CPMGR_NOT_RUNNING      (FZZMRC_PWS_CP_BASE + 0x0020)  /* 1056 0x0420 */
/* Communications not currently active with target system */
   #define FZZMRC_CP_CONV_NOT_ACTIVE        (FZZMRC_PWS_CP_BASE + 0x0021)  /* 1057 0x0421 */
/* Communications not currently active as determined using the Request ID (FZZMRID) */
   #define FZZMRC_CP_REQUEST_ID_NOT_ACTIVE  (FZZMRC_PWS_CP_BASE + 0x0022)  /* 1058 0x0422 */
/* A time out occurred */
   #define FZZMRC_CP_TIMEOUT                (FZZMRC_PWS_CP_BASE + 0x0023)  /* 1059 0x0423 */
/* Invalid format field in Self Defining Data Stream */
   #define FZZMRC_CP_INVALID_SDDS_FORMAT    (FZZMRC_PWS_CP_BASE + 0x0025)  /* 1061 0x0425 */
/* Invalid data version value passed on API */
   #define FZZMRC_CP_INVALID_DATA_VERSION   (FZZMRC_PWS_CP_BASE + 0x0026)  /* 1062 0x0426 */
/* Data conversion error occurred */
   #define FZZMRC_CP_DATA_CONVERSION_ERROR  (FZZMRC_PWS_CP_BASE + 0x0027)  /* 1063 0x0427 */
/* PWS system resource not available */
   #define FZZMRC_CP_RESOURCE_ERROR         (FZZMRC_PWS_CP_BASE + 0x0028)  /* 1064 0x0428 */
/* Request router has already been registered with this program ID */
   #define FZZMRC_CP_ROUTER_ALREADY_REG     (FZZMRC_PWS_CP_BASE + 0x0029)  /* 1065 0x0429 */
/* Request router specified by program ID is not registered */
   #define FZZMRC_CP_ROUTER_NOT_REG         (FZZMRC_PWS_CP_BASE + 0x002A)  /* 1066 0x042A */
/* Information message indicating no data was found */
   #define FZZMRC_CP_INFO_NO_DATA           (FZZMRC_PWS_CP_BASE + 0x002B)  /* 1067 0x042B */
/* Async ID Name already registered (returned to AS/400 application) */
   #define FZZMRC_CP_NAME_ALREADY_REG       (FZZMRC_PWS_CP_BASE + 0x002D)  /* 1069 0x042D */
/* CA/400 is not connected with the system requested to communicate with */
   #define FZZMRC_CP_SYS_NOT_CONNECTED_CA400 (FZZMRC_PWS_CP_BASE + 0x002F) /* 1071 0x042F */
/* Client Access/400 must be configured and running prior to starting CPM */
   #define FZZMRC_CP_CA400_NOT_RUNNING       (FZZMRC_PWS_CP_BASE + 0x0030) /* 1072 0x0430 */
/* No timer available (Windows only return code) */
   #define FZZMRC_CP_TIMER_NOT_AVAILABLE    (FZZMRC_PWS_CP_BASE + 0x0031)  /* 1073 0x0431 */
/* Error accessing PWS capablities file */
   #define FZZMRC_CP_ERROR_ACCESS_CAP_FILE  (FZZMRC_PWS_CP_BASE + 0x0032)  /* 1074 0x0432 */
/* Error accessing Client Access/400 Data queue due to a shortage of conventional memory */
   #define FZZMRC_CP_CA400_MEMORY_ERROR     (FZZMRC_PWS_CP_BASE + 0x0033)  /* 1075 0x0433 */
/* No default system was defined within CPM's interface or within Client Access/400 */
   #define FZZMRC_CP_NO_DEF_SYS_CONFIGURED  (FZZMRC_PWS_CP_BASE + 0x0034)  /* 1076 0x0434 */
/* Unable to obtain an AS/400 RRP to process a request from the PWS */
   #define FZZMRC_CP_RRP_NOT_AVAILABLE      (FZZMRC_PWS_CP_BASE + 0x0035)  /* 1077 0x0435 */
 
 
/* return codes which are returned from the Host side of USF to PWS applications */
/* A resource required by the process on the host in not available */
   #define FZZMRC_CP_HOST_RESOURCE_ERROR     (FZZMRC_AS400_CP_BASE+0x0003)   /* 33795 0x8403 */
/* A host internal error has occurred */
   #define FZZMRC_CP_HOST_INTERNAL_ERROR     (FZZMRC_AS400_CP_BASE+0x0004)   /* 33796 0x8404 */
/* A failure occurred while attempting to create a user space */
   #define FZZMRC_CP_CREATE_USR_SPACE_ERROR  (FZZMRC_AS400_CP_BASE+0x000B)   /* 33803 0x840B */
/* An error occurred while trying to receive a data block */
   #define FZZMRC_CP_DATA_BLOCK_ERROR        (FZZMRC_AS400_CP_BASE+0x0011)   /* 33809 0x8411 */
/* The 3rd party application was not found specified to handle the request on the host */
/*  was not found */
   #define FZZMRC_CP_3RD_PARTY_APP_NOT_FOUND (FZZMRC_AS400_CP_BASE+0x0012)   /* 33810 0x8412 */
/* A data block was received out of order */
   #define FZZMRC_CP_DATA_BLOCK_ORDER_ERROR  (FZZMRC_AS400_CP_BASE+0x0013)   /* 33811 0x8413 */
