Microsoft Chat Server SDK Reference

IChatServerCallBack::OnCloseUser

This method allows an extension to be notified when a user session is ending.

Syntax

C/C++:
HRESULT OnCloseUser(IChatUser *User);
Visual Basic:
Sub IChatServerCallBack_OnCloseUser( _
   ByVal User As CHATSVCLib.IChatUser)

Parameters

User
Reference to ChatUser object representing the user session.

Remarks

This method can be called in response to the user leaving voluntarily or being forcibly removed from the server. Any callback registrations are automatically removed when the user object is destroyed.

There is no way to cancel this event. The notification is sent after the user has been removed.


© 1998 Microsoft Corporation. All rights reserved.