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> psuserdelete()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSUserDelete()
------------------------------------------------------------------------------
 Purpose:
 Delete a print server user.

 Syntax:
 bResult = PSUserDelete( lpszUser, lpszPrintServer )

 Parameters:
 lpszUser        The name of the user.
 lpszPrintServer The name of print server.

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 PSUserDelete() deletes the user lpszUser from the authorised user list
 of print server lpszPrintServer.

 Returns TRUE if successful, or FALSE if an error occurs.

 Example:
 // To delete user DAVE from the authorised user list of print server
 // PRINTERS:
 if ( PSUserDelete( "DAVE", "PRINTERS" ) )
    ? "User DAVE is no longer an authorised user of "
    ?? "print server PRINTERS"
 endif

 Notes:
 PSUserDelete() deletes the object ID of a user from the PS_USERS
 set property value of the print server on the associated file server.

 This function requires Supervisor equivalence.

See Also: PSOperatorAdd() PSUserAdd() PSOperatorList() SetPropertyIDDelete() PSOperatorDelete()

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