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> nfyobjectfirstintervalget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NfyObjectFirstIntervalGet()
------------------------------------------------------------------------------
 Purpose:
 Get notify object first interval.

 Syntax:
 dwInterval = NfyObjectFirstIntervalGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned long int).

 The CA-Clipper name for this function is:
 NfyObjFstIntGet()

 Description:
 NfyObjectFirstIntervalGet() works in conjunction with PrnNotifyObjectList()
 to return the first notify interval of the latest object returned by
 PrnNotifyObjectList(). PrnNotifyObjectList() is used to obtain a list of
 objects that will be notified by a network message if a printer on the
 currently logged into print server requires attention, e.g. paper jam.

 NfyObjectFirstIntervalGet() returns the amount of time in seconds before
 the object is first notified of the problem, and must be called after
 PrnNotifyObjectList().

 Example:
 // To log in to print server PRINTERS, list all objects that
 // will be notified if printer 0 has a problem and display the first and
 // subsequent notify periods:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    lpszName = PrnNotifyObjectList( 0, TRUE )
    do while !empty( lpszName )
       ? "Object ",lpszName," will be notified of a problem "
       ?? "after ", NfyObjectFirstIntervalGet(),;
        " seconds, and subsequently "
       ?? "every ", NfyObjectNextIntervalGet(),;
        " seconds until problem resolved"
       lpszName = PrnNotifyObjectList( 0, FALSE )
    enddo
 endif

 Notes:
 It is only possible to be logged in to one print server at a time.

See Also: PrnNotifyObjectList() PSWSLogin() NfyObjectServerGet() NfyObjectTypeGet() NfyObjectNextIntervalGet()

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