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> quesrvget() / quesrvset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QueSrvGet() / QueSrvSet()
------------------------------------------------------------------------------
 Purpose:
 Enable or disable servers servicing the queue.

 Syntax:
 bResult = QueSrvGet( dwQueueID )
 bResult = QueSrvSet( dwQueueID, bService )

 Parameters:
 dwQueueID The print queue ID number.
 bService  Specifies whether to allow newservers to service the print
           queue - TRUE to enable new servers and FALSE to disable new
           servers.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 QueSrvGet() returns TRUE if new servers are allowed to service print
 jobs on queue dwQueueID. Returns FALSE if not, or if an error occurs.

 QueSrvSet() sets whether to allow new servers to service the specified
 queue dwQueueID based on the value of bService.

 Example:
 // To determine whether new servers can service print jobs in
 // print queue PRINTQ_1:
 dwCurrQ = QueIDGet ( "PRINTQ_1" )
 if ( dwCurrQ != NOVERRLONG )
    bNewServer = QueSrvGet( dwCurrQ )
    if ( NWErrorGet() = 0 )
       if (bNewServer)
          ? "New servers may"
       else
          ? "New servers may not"
       endif
       ?? " service print jobs in queue PRINTQ_1"
    endif
 endif

 Notes:
 The print queue ID number is obtained using the QueIDGet()
 function.

 These functions require that the requesting user has queue operator rights.
 If FALSE is returned, check NWErrorGet().

See Also: QueIDGet()

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