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> capqueget() / capqueset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapQueGet() / CapQueSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the capture queue.

 Syntax:
 dwQueID = CapQueGet( iLPTNum)
 dwQueID = CapQueSet( 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).

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

 CapQueSet() 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 = CapQueGet( 1 )
 if ( dwQueueNo != NOVERRLONG )
    ? "LPT1: is currently being captured to "
    ?? QueNmeGet( dwQueueNo )
 endif
 // To redirect output from LPT1: to PRINTQ_2:
 dwQueueNo = QueIDGet( "PRINTQ_2" )
 if ( dwQueueNo != NOVERRLONG )
    CapQueSet( 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() CapActiveTst()

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