ClearBox Server™ v1.2 Developer's Guide


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);


[in] Specifies whether extension should initialize (VARIANT_TRUE) or should shutdown (VARIANT_FALSE).
[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.


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.

Created by chm2web html help conversion utility.