InitObjType

The InitObjType function allows ActiveSync service provider on the device to either initialize data and return a pointer to the IReplObjHandler interface at loading, or free allocated resources at termination.

Syntax

BOOL InitObjType (LPWSTR lpszObjType,IReplObjHandler *ppObjHandler,UINT uPartnerBit);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Versions: 2.0 and later

Parameters

lpszObjType
Name of the object type. NULL if InitObjType is called during termination, in which case ActiveSync service provider should free allocated resources.
ppObjHandler
Output parameter. This is a pointer to the IReplObjHandler interface.
uPartnerBit
Input parameter. It is 1 if the desktop currently connected is partner #1, and it is 2 if the currently connected desktop is partner #2.

Return Value

TRUE if completed successfully, otherwise it is FALSE.