Microsoft Chat Server SDK Reference

IChatUserCallBack::OnPrivateText

This notification allows private user-to-user messages to be examined.

Syntax

C/C++:
HRESULT OnPrivateText(
   IChatUser *UserFrom,
   IChatUser *UserTo,
   IRC_COMMAND_TYPE Type,
   BSTR *Message,
   VARIANT_BOOL PostUpdate,
   long *Cancel);
Visual Basic:
Function IChatUserCallBack_OnPrivateText( _
   ByVal UserFrom As CHATSVCLib.IChatUser, _
   ByVal UserTo As CHATSVCLib.IChatUser, _
   ByVal Type As CHATSVCLib.IRC_COMMAND_TYPE, _
   ByRef Message As String, _
   ByVal PostUpdate As Boolean) As Long

Parameters

UserFrom
Reference to the ChatUser object representing the user who sent the message.
UserTo
Reference to the ChatUser object representing the user who receives the message.
Type
Indicates the type of command as defined by the IRC_COMMAND_TYPE enumeration.
Message
The text of the user-to-user message. The extension can modify Message during the pre-update notification.
PostUpdate
False if this is a pre-update notification. True if the message was sent.
Cancel
Return value. Set to non-zero during the pre-update notification to cancel the operation.

© 1998 Microsoft Corporation. All rights reserved.