PINITOBJPROC
- PINITOBJPROC is a type-defined reference to the Windows CE InitObjType function, which allows an ActiveSync service provider on the device to either initialize data and pass a reference to the IReplObjHandler interface at loading, or free allocated resources at termination..
Syntax
typedef BOOL (*PINITOBJPROC)(
LPWSTR lpszObjType,
IReplObjHandler ** ppObjHandler,
UINT uPartnerBit
);
Parameters
- lpszObjType
[in] Reference to a null-terminated string that contains the name of the object type. - ppObjHandler
[out] Reference to the IReplObjHandler interface. - uPartnerBit
[in] Specifies the desktop that is currently connected. See Remarks for the possible values.
Return Values
Returns TRUE if the initialization or release operation was successful; otherwise, FALSE.
Remarks
lpszObjType is NULL when the InitObjType function allows an ActiveSync service provider to free allocated resources at termination.
The following table lists the possible values for uPartnerBit.
Value | Description |
---|---|
1 | The desktop currently connected is partner number one. |
2 | The currently connected desktop is partner number two. |
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cesync.h
Library: None
See Also
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.