Return Code

Return Code Value Meaning
PCS_SUCCESSFUL 0 Function ended successfully.
PCS_INVALID_ID 1 Incorrect session ID was specified.
PCS_INVALID_SESS_TYPE 2 The nFlags parameter has one or more options that are not valid for the host session type. No settings were restored.
PCS_DIALOG_IN_USE 3 Failed because the host session Page Setup or Printer Setup dialog was in use.
PCS_PRINTING 4 Page settings cannot be changed because host session was printing.
PCS_PDT_MODE 5 Page settings cannot be changed because host session is in PDT mode.
PCS_SYSTEM_ERROR 9 A system error occurred.