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

 Syntax:
 bResult = PrnNotifyObjectDelete( 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).

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

 Description:
 PrnNotifyObjectDelete() 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.
 PrnNotifyObjectDelete() 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( PrnNotifyObjectDelete( 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: PrnNotifyObjectAdd() PrnNotifyPeriodChange() PSWSLogin() PrnNotifyObjectList()

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