Freigeben über


IReplStore::GetFolderInfo (Windows CE 5.0)

Send Feedback

This method creates a new HREPLFLD of a folder for the specified object type name and returns a pointer to the IReplObjHandler interface that is used to serialize and deserialize all items in this folder.

HRESULT GetFolderInfo(LPSTR lpszName,HREPLFLD* phFolder,IUnknown** ppObjHandler);

Parameters

  • lpszName
    [in] Long pointer to the null-terminated string that contains the name of the object type as taken from the registry.
  • phFolder
    [out] Pointer to the handle to the folder.
  • ppObjHandler
    [out] Pointer to a pointer to the IReplObjHandler interface.

Return Values

Returns NOERROR if the method completed successfully, otherwise returns HRESULT_FROM_WIN32.

Remarks

GetFolderInfo is the only method in IReplStore that creates or modifies a HREPLFLD structure for the folder. The ActiveSync manager calls this method to get a folder handle for the specified object type. Object types are configured into the registry, where object type name and other relevant information about an object type are stored. Note that the handle pointed to by phFolder may or may not be NULL when called. If phFolder points to a handle that has a NULL value, the ActiveSync service provider should create a new handle for the specified folder. If phFolder points to a pointer that has a value, the ActiveSync service provider should modify the data indicated by this handle.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Cesync.h.
Link Library: Coredll.lib.

See Also

IReplObjHandler | IReplStore | HREPLFLD

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.