RESULT is set to a positive value if the call to W$PALETTE is successful. Except for the WPALETTE-SUPPORTED and WPALETTE-NUM-COLORS operations, the success value is always 1. A zero or negative value indicates a problem. The following values are possible:
WPERR-UNSUPPORTED (value 0) | Either the requested operation cannot be performed on the host system, or you passed an invalid operation code. |
WPERR-BAD-ARG (value -1) | Either you did not pass WPALETTE-DATA when it was required, or WPALETTE-DATA contains some invalid data. |
WPERR-CANCELLED (value -2) | The user selected the cancel operation of the color selection box, or the user closed the selection box. |