Microsoft Chat Server SDK Reference

IChatChannelCallBack::OnAddAccess

This method is called whenever a security access entry is added to the associated channel.

Syntax

C/C++:
HRESULT OnAddAccess(
   IChatChannel *Channel,
   IChatAccessEntry *Entry,
   VARIANT_BOOL PostUpdate,
   long *Cancel);
Visual Basic:
Function IChatChannelCallBack_OnAddAccess( _
   ByVal Channel As CHATSVCLib.IChatChannel, _
   ByVal Entry As CHATSVCLib.IChatAccessEntry, _
   ByVal PostUpdate As Boolean) As Long

Parameters

Channel
Reference to ChatChannel object to which the access entry is added.
Entry
Reference to new ChatAccessEntry object.
PostUpdate
False if this is a pre-update notification. True if the channel access mode has been added.
Cancel
Return value. Set to non-zero during the pre-update notification to cancel the operation.

Remarks

OnAddAccess notifications occur only when new access entries are added using the IRC/IRCX protocol. Changes made by extensions through the object model do not trigger callbacks.

When this channel property changes, the OnChannelPropertyChanged method is not called. Extensions interested in the OnAddAccess event must register for explicit notification.


© 1998 Microsoft Corporation. All rights reserved.