Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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 IReplObjHandlerinterface 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 InitObjTypeis called during termination, in which case the ActiveSync service provider should free allocated resources.
- ppObjHandler
-
[out] Pointer to a pointer to the IReplObjHandlerinterface.
- 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 |