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> nfyobjtypget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NfyObjTypGet()
------------------------------------------------------------------------------
 Purpose:
 Get the object type of a notify object.

 Syntax:
 dwType = NfyObjTypGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned long int)

 Description:
 NfyObjTypGet() works in conjunction with PrnNfyObjLst() to
 return the object type of the latest object returned by
 PrnNfyObjLst().

 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.

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

 Example:
 // To log in to print server PRINTERS, list all objects and
 // their types that will be notified if printer 0 has a problem:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    lpszName = PrnNfyObjLst( 0, TRUE )
    do while !empty( lpszName )
       ? "Object ",lpszName," of type ", NfyObjTypGet()
       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() NfyObjSrvGet() NfyObjFstIntGet()

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