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> prnnfyobjdel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrnNfyObjDel()
------------------------------------------------------------------------------
 Purpose:
 Delete an object from the notify list of a printer on the print server.

 Syntax:
 bResult = PrnNfyObjDel( wPtrNum, lpszServer, lpszName, wObjType )

 Parameters:
 wPtrNum    The printer number.
 lpszServer The file server that the object exists on.
 lpszName   The object's name.
 wObjType   The object's type.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 PrnNfyObjDel() deletes an object, e.g. a user or group from the
 notify list of a specific printer.

 To call this function it is first necessary to login to the print server
 using the PSWSLogin() function.

 wPtrNum is the printer number on the print server, lpszServer is the file
 server name on which the object to be deleted, exists, lpszName is the
 object name itself, wObjType is the object type for parameter lpszName.
 PrnNfyObjDel() returns TRUE if successful, or FALSE if an error
 occurs.

 Example:
 // To log in to print server PRINTERS and delete user KATIE on
 // server BLINK from the notify list of printer 0:
 if( PSWSLogin ( "PRINTERS" ) = 2 )
    if( PrnNfyObjDel( 0, "BLINK", "KATIE", OT_USER )
       ? "User KATIE on server BLINK will no longer be notified"
       ??"if printer 0 on print server PRINTERS "
       ??"requires attention."
    endif
 endif

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

 This function requires that the calling user has print server operator
 status.

See Also: PrnNfyObjAdd() PrnNfyPrdChg() PSWSLogin() PrnNfyObjLst()

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