InitObjType
A version of this page is also available for
4/8/2010
This device module function initializes an object type. It is called by an ActiveSync service provider to initialize data and pass a pointer to the IReplObjHandler interface at loading. It is also called to free allocated resources at termination.
Syntax
BOOL (*PINITOBJPROC)(
LPWSTR lpszObjType,
IReplObjHandler** ppObjHandler,
UINT uPartnerBit
);
Parameters
- lpszObjType
[in] Pointer to the object type. This value is NULL if InitObjType is called during termination, in which case the ActiveSync service provider should free allocated resources.
- ppObjHandler
[out] Pointer to a pointer to the IReplObjHandler interface.
- uPartnerBit
[in] A partner bit. This value is 1 if the desktop computer currently connected is partner #1. It is 2 if desktop computer currently connected is partner #2.
Return Value
Returns TRUE if the initialization was successful, and FALSE otherwise.
Requirements
Header | cesync.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |