Microsoft Chat Server SDK Reference

IChatUserCallBack::OnAddAccess

This method is called whenever a security access entry is created for the user.

Syntax

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

Parameters

User
Reference to the ChatUser object representing the user.
Entry
Reference to ChatAccessEntry object that is being added.
PostUpdate
False if this is a pre-update notification. True if the entry 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 property changes, the OnUserPropertyChanged method is not called. Extensions that are interested in the OnAddAccess event should register for this notification explicitly.


© 1998 Microsoft Corporation. All rights reserved.