Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> capqueueget() / capqueueset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapQueueGet() / CapQueueSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the capture queue.

 Syntax:
 dwQueID = CapQueueGet( iLPTNum)
 dwQueID = CapQueueSet( iLPTNum, dwNewQue )

 Parameters:
 iLPTNum  The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 dwNewQue The new print queue ID number.

 Returns:
 A numeric value (unsigned long int).

 The CA-Clipper names for these functions are:
 CapQueGet() / CapQueSet()

 Description:
 CapQueueGet() returns the bindery object ID number of the print queue
 to which the specified LPT device iLPTNum is currently being captured.

 CapQueueSet() sets up capturing to the queue ID specified by dwNewQue on
 the specified LPT device iLPTNum and returns the previous queue ID.
 Both functions return NOVERRLONG if an error occurs. When a new print queue
 is set, the change only takes effect after CapStart() is called.

 Example:
 // To return the print queue to which LPT1: is being captured:
 dwQueueNo = CapQueueGet( 1 )
 if ( dwQueueNo != NOVERRLONG )
    ? "LPT1: is currently being captured to "
    ?? QueNameGet( dwQueueNo )
 endif
 // To redirect output from LPT1: to PRINTQ_2:
 dwQueueNo = QueIDGet( "PRINTQ_2" )
 if ( dwQueueNo != NOVERRLONG )
    CapQueueSet( 1, dwQueueNo )
    if( NWErrorGet() = 0 )
       ? "Output from LPT1: is now redirected to PRINTQ_2"
    endif
 endif

 Notes:
 The queue ID number of a named queue is returned by the QueIDGet()
 function.

See Also: QueIDGet() CapActiveTest()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson