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

 Syntax:
 dwType = NfyObjectTypeGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned long int)

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

 Description:
 NfyObjectTypeGet() works in conjunction with PrnNotifyObjectList() to
 return the object type 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. out of paper.

 NfyObjectTypeGet() should only be called after a successful call to
 PrnNotifyObjectList().

 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 = PrnNotifyObjectList( 0, TRUE )
    do while !empty( lpszName )
       ? "Object ",lpszName," of type ", NfyObjectTypeGet()
       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() NfyObjectNextIntervalGet() NfyObjectServerGet() NfyObjectFirstIntervalGet()

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