ISendMessage Interface

Inherited from

IDispatch

IUnknown

Applies to Objects

SendMesage

This interface is exposed from the SendMessage object and is the default interface for that object. The interface is useful for sending messages to specific users, computers, all users connected to a computer or all users and computers in a domain.

Method

Description

SendMessageToComputer

Sends a message to the specified computer.

SendMessageToDomain

Sends a message to all users and computers in the specified domain.

 

SendMessageToUser

Sends a message to the specified user.

SendMessageToUsersConnectedToComputer

Sends message to all users connected to the specified computer.

Example

Dim SendMsg As ISendMessage
'Get the ISendMessage interface.
'DirectScript.SendMessage.1 is the ProgId of the Send Message component.
Set SendMsg = CreateObject ("DirectScript.SendMessage.1")