PTRobot API
Page 22 of 41
© 2005, Primera Technology, Inc. Primera is a registered trademark and Bravo is a trademark of Primera Technology, Inc. All other trademarks are the property of
their respective companies.
//
// Notes:
//
If this function is not called the default print settings will be used. This
//
function will change the system default print settings.
//
Starting with Version 1.2.0 the system default print settings will be
//
restored after calling PTRobot_PrintFile() or PTRobot_PrintFileWithMerge().
// Return:
//
PTROBOT_OK if Successful
//
PTROBOT_SEQUENCE if this command is called out of sequence
//
PTROBOT_INTERNAL if an internal error occurred
//
PTROBOT_INVALID_ROBOT if the robot handle is invalid
//
PTROBOT_NO_PRINTER if the robot doesn't have a printer
//
PTROBOT_INVALID_PRINTER_SETTINGS if the printer settings are invalid
//
///////////////////////////
DWORD WINAPI
PTRobot_SetPrinterSettings
(HANDLE hRobot, PTPrinterSettings
*
pPrinterSettings);
2.3.10
PTRobot_GetPrinterSettings
///////////////////////////
//
// PTRobot_GetPrinterSettings
//
// Description:
//
Function to get some printer driver settings
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
pPrinterSettings
points
to
a
PTPrinterSettings
structure.
//
// Notes:
//
If this function is not called the default print settings will be used.
// Return:
//
PTROBOT_OK if Successful
//
PTROBOT_SEQUENCE if this command is called out of sequence
//
PTROBOT_INTERNAL if an internal error occurred
//
PTROBOT_INVALID_ROBOT if the robot handle is invalid
//
PTROBOT_NO_PRINTER if the robot doesn't have a printer
//
///////////////////////////
DWORD WINAPI
PTRobot_GetPrinterSettings
(HANDLE hRobot, PTPrinterSettings
*
pPrinterSettings);
2.3.11
PTRobot_KillSystemError
///////////////////////////
//
// PTRobot_KillSystemError
//
// Description:
//
Function to kill a system error.
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
dwResetPrinter
DWORD to notify if the printer should be reset.