PTRobot API
Page 11 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.
//
PTROBOT_INTERNAL if an internal error occurred
//
PTROBOT_INVALID_ROBOT if the robot handle is invalid
//
PTROBOT_OVERFLOW if the number of robotic drives found is > the value
//
in
pdwDrives
//
PTROBOT_MULTDRIVES if the module cannot determine which drives are
//
robotically
controlled.
//
///////////////////////////
DWORD WINAPI
PTRobot_EnumDrivesWithList
(HANDLE hRobot, HANDLE
*
phDrives,
DWORD
*
pdwNumDrives, HANDLE
*
phRobotDrives, DWORD
*
pdwNumRobotDrives);
2.1.7
PTRobot_SetRoboticDrive
///////////////////////////
//
// PTRobot_SetRoboticDrive
//
// Description:
//
Function to set a drive's position within the duplicator when
//
the PTROBOT_MULTDRIVES error is returned from either of the
//
EnumDrives functions.
// Params:
//
hRobots
Handle to the Robot.
//
hDrive
Handle to the Drive
//
dwColIndex Index identifying the column that the drive is in.
//
(0 based where 0 is the left-most column)
//
dwRowIndex Index identifying the row that the drive is in.
//
(0 based where 0 is the top row)
// Notes:
// 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_INVALID_DRIVE if the drive handle is invalid
//
PTROBOT_INVALID_DRIVE_POSITION if column/row ids are invalid.
//
///////////////////////////
DWORD WINAPI
PTRobot_SetRoboticDrive
(HANDLE hRobot, HANDLE hDrive, DWORD dwColIndex,
DWORD
dwRowIndex);
2.1.8
PTRobot_SetOpenCloseFunction
///////////////////////////
//
// PTRobot_SetOpenCloseFunction
//
// Description:
//
Function to set a calling application provided drive open/close
//
function.
// Params: