InitObjType (Compact 7)

3/12/2014

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 currently connected desktop computer is partner #1, or 2 if the currently connected desktop computer is partner #2.

Return Value

Returns TRUE if the initialization was successful, otherwise FALSE.

Requirements

Header

cesync.h

Library

coredll.lib

See Also

Reference

ActiveSync Functions