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> castoff</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CASTOFF
------------------------------------------------------------------------------
 Purpose:
 Emulates the Novell NetWare CASTOFF.EXE utility.

 Syntax:
 CASTOFF [ALL]

 Parameters:
 ALL is an optional flag to cast off all messages.

 Returns:
 None.
 NWErrorGet() returns non-zero if an error occurs.

 Description:
 CASTOFF is used to stop a workstation from receiving messages.
 When called on its own, messages from other users are ignored but console
 messages are allowed through. Used with the ALL flag, CASTOFF stops both
 user and console messages.

 Example:
 // To stop other users sending messages to your workstation:

 #include "novlib.ch"
 CASTOFF
 if ( NWErrorGet() = 0 )
    ? "Receipt of user messages has been disabled"
 endif

 // To stop both users and the console from sending messages to your
 // workstation:
 #include "novlib.ch"
 CASTOFF ALL
 if ( NWErrorGet() = 0 )
    ? "Receipt of user and console messages has been"
    ?? " disabled"
 endif

 Notes:
 This command will only work with CA-Clipper 5.x. For more
 information see CASTOFF.EXE in the NetWare reference manuals.

See Also: WSMessageModeGet() / WSMessageModeSet() WSMessageGet() CASTON

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