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 Not supported for the host session type.
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_FAILURE 6 Host session page settings are not fully applied. This could be because invalid data was given for some or all fields in the PAGEINFO structure.

Examine pErrorInfo for details about settings that are not applied.

PCS_SYSTEM_ERROR 9 A system error occurred.