Microsoft Chat Server SDK Reference

IChatExtensionCallBack::Init

At server startup or after installation, extension initialization is performed by this method.

Syntax

C/C++:
HRESULT Init(
   IChatServer *Server,
   IChatRegistrar *Registrar,
   long *retVal);
Visual Basic:
Function IChatExtensionCallBack_Init( _
   ByVal Server As CHATSVCLib.IChatServer, _
   ByVal Registrar As CHATSVCLib.IChatRegistrar) As Long

Parameters

Server
Reference to global ChatServer object hosting the extension.
Registrar
Reference to IChatRegistrar object.
retVal
Return value. Zero for success, or error code to indicate failure.

Remarks

Init is called after installation completes and every time the chat service is started. It is the only time that an instance of IChatRegistrar is passed. During this call, it is expected that the extension will maintain a reference the IChatRegistrar object in a global variable. (Extension writers using C or C++ need to call AddRef and Release appropriately.)

A non-zero return value will prevent callbacks from being invoked for this extension (since it has not initialized properly).

See Also

OnInstall

Term


© 1998 Microsoft Corporation. All rights reserved.