ClearBox Server™ v1.2 Developer's Guide

ICommonExtenderEx::InitializeEx

Called once when server initialize or uninitialize the extension. It is the first and the last method called from the server extension.

HRESULT InitializeEx(
	[in] VARIANT_BOOL start,
	[in] IServer * pServer);

Parameters

start
[in] Specifies whether extension should initialize (VARIANT_TRUE) or should shutdown (VARIANT_FALSE).
pServer
[in] Pointer to the IServer interface implemented by the ClearBox Server. Server extension should keep this interface pointer for later use.
It is valid only when start is VARIANT_TRUE, NULL is passed otherwise.

Return Values

If extension returns error code and start=VARIANT_TRUE, server fails to start.

Thread Safety

This method is called in context of MAIN thread. (See Server Threads Model for details.) No synchronization is needed as for this method.

Remarks

Extension may use this method to allocate and initialize required resources and free them at shutdown.

It it not necessary to call AddRef and Realease on the pServer pointer as it is static object managed by the server.

See Also

ICommonExtender, IServer


© 2001-2003 XPerience Technologies. www.xperiencetech.com

Created by chm2web html help conversion utility.