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> nfyobjsrvget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NfyObjSrvGet()
------------------------------------------------------------------------------
 Purpose:
 Get file server on which a notify object exists.

 Syntax:
 lpszServer = NfyObjSrvGet()

 Parameters:
 None.

 Returns:
 A character string of length 48.

 Description:
 NfyObjSrvGet() works in conjunction with PrnNfyObjLst() to
 return the file server on which the latest object returned by
 PrnNfyObjLst() exists.

 PrnNfyObjLst() 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. out of paper.

 NfyObjSrvGet() should only be called after a successful call to
 PrnNfyObjLst().

 Example:
 // To log in to print server PRINTERS, list all objects that
 // will be notified if printer 0 has a problem and display which file server
 // they are on:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    lpszName = PrnNfyObjLst( 0, TRUE )
    do while !empty( lpszName )
       ? "Object ",lpszName," on file server ", NfyObjSrvGet()
       ?? " will be notified of a problem with printer 0"
       lpszName = PrnNfyObjLst( 0, FALSE )
    enddo
 endif

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

See Also: PrnNfyObjLst() PSWSLogin() NfyObjNxtIntGet() NfyObjTypGet() NfyObjFstIntGet()

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