ClearBox Server™ v1.2 Developer's Guide

ICommonExtender::Initialize

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

HRESULT Initialize(
	[in] VARIANT_BOOL start);

Parameters

start
[in] Specifies whether extension should initialize (VARIANT_TRUE) or should shutdown (VARIANT_FALSE).

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.

If server extension implements ICommonExtenderEx, this method is never called as ICommonExtenderEx::InitializeEx is called instead.

See Also

ICommonExtender, ICommonExtenderEx


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

Created by chm2web html help conversion utility.