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> capactivetest()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapActiveTest()
------------------------------------------------------------------------------
 Purpose:
 Verify that capture is active.

 Syntax:
 bResult = CapActiveTest( iLPTNum )

 Parameters:
 iLPTNum The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function:
 CapActiveTst()

 Description:
 CapActiveTest() returns TRUE if the LPT device specified by iLPTNum is
 currently being captured.

 Returns FALSE if not, or if an error occurs.

 Example:
 // To test whether LPT2: is currently being captured:
 if ( CapActiveTest( 2 ) )
    dwQueueNo = CapQueueGet( 2 )
    if ( dwQueueNo != NOVERRLONG )
       ? "LPT2: is currently being captured to "
       ?? QueNameGet( dwQueueNo )
    endif
 endif

 Notes:
 If FALSE is returned, check NWErrorGet().

See Also: CapQueueGet() / CapQueueSet() CapStart() CapEnd()

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