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

 Syntax:
 bResult = CapActiveTst( iLPTNum )

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

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 CapActiveTst() 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 ( CapActiveTst( 2 ) )
    dwQueueNo = CapQueGet( 2 )
    if ( dwQueueNo != NOVERRLONG )
       ? "LPT2: is currently being captured to "
       ?? QueNmeGet( dwQueueNo )
    endif
 endif

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

See Also: CapQueGet() / CapQueSet() CapStart() CapEnd()

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