Return Code

Return Code Value Meaning
PCS_SUCCESSFUL 0 The function ended successfully.
PCS_INVALID_ID 1 An incorrect session ID was specified.
PCS_DIALOG_IN_USE 3 Failed because the host session Page Setup or Printer Setup dialog was in use.
PCS_PRINTING 4 The printer settings could not be changed because the host session was printing. The application must retry later
PCS_FAILURE 6 Some printer settings could not be retrieved successfully. pErrorInfo contains detailed error information on which settings could not be retrieved.
PCS_SYSTEM_ERROR 9 A system error occurred.