SendMessageToUsersConnectedToComputer
(
ComputerName As String,
Message As String,
[SourceComputerName As String]
);
Parameters
[in] String ComputerName
Name of the computer to whose connected users the message is to be
sent.
[in] String Message
Message string to be sent to the users.
[in] String SourceComputerName
Name of the computer where the send call is to be executed. This
parameter is optional. If this parameter is not specified, the call
is executed on the current computer.
Description
Sends the given message to all the users connected to the specified
computer.
Example
Dim SendMsg As ISendMessage
'Get the ISendMessage interface.
Set SendMsg = CreateObject
("DirectScript.SendMessage.1")
'Send message to all the users connected to SUN computer.
SendMsg.SendMessageToUsersConnectedToComputer "\\SUN", "This is
test message", "\\MOON"
See Also