Microsoft Chat Server SDK Reference

AddServerEvent Method

This method allows extensions to register themselves with the event manager for chat server event notifications.

Syntax

retVal = IChatRegistrar.AddServerEvent(EventName) 

Parameters

EventName
A comma-separated list of case-insensitive names matching IChatServerCallBack methods, or an empty string representing a binding to all server event notifications.
retVal
Return value. Zero for success, or error code to indicate failure.

Remarks

The AddServerEvent method is normally called during IChatExtensionCallBack::Init.

EventName can contain one or more event names. Case is not significant. For example, "onnewuser,ONNEWCHANNEL" will create bindings to the IChatServerCallBack::OnNewUser and IChatServerCallback::OnNewChannel methods of the extension.

Passing an empty string for EventName creates a binding for all server events.

The return code is zero if all bindings were successful. If any binding is unsuccessful, then none of the bindings take effect.


© 1998 Microsoft Corporation. All rights reserved.