OBJNOTIFY
This structure is used to notify the ActiveSync service provider that an object in the Windows CE file system has changed or been deleted.
typedef struct tagObjNotify{
UINT cbStruct;
OBJTYPENAME szObjType [ MAX_OBJTYPE_NAME ];
UINT uFlags;
UINT uPartnerBit;
CEOID oidObject;
CEOIDINFO oidInfo;
UINT cOidChg;
UINT cOidDel;
UINT *poid
} OBJNOTIFY, *POBJNOTIFY;
Members
cbStruct
[in] Size of the structure, in bytes.szObjType
[in] Null-terminated string that contains the name of the object type.uFlags
[in] Unsigned integer that contains one of the following values:Value Description ONF_FILE The object is a file. ONF_DIRECTORY The object is a directory. ONF_DATABASE The object is a database. ONF_RECORD The object is a record. ONF_CHANGED Set if the file system object is changed. ONF_DELETED Set if the file system object is deleted. ONF_CLEAR_CHANGE Client should clear the change bit for the object whose object identifier is pointed at by poid. ONF_CALL_BACK [out] Client asks server to call ObjectNotify two seconds later. ONF_CALLING_BACK Set if this call is a result of ONF_CALL_BACK being set earlier. uPartnerBit
[in] Specifies either 1 if the desktop currently connected is partner #1 or 2 if the desktop is partner #2.oidObject
[in] Object identifier of the file system object, representing a file, a database, or a database record.oidInfo
[in] Stores information about the object if the object has not been deleted.cOidChg
[out] When ONF_CHANGED is set, this is the number of oids that should be replicated. Set to 0 if no object should be replicated because of this change.When both ONF_CHANGED and ONF_DELETED are not set, this is the number of oids in the first part of the list for objects that are changed.
cOidDel
[out] When ONF_DELETED is set, this is the number of deleted oids that should be replicated. Set to 0 if no object should be replicated because of this delete.When both ONF_CHANGED and ONF_DELETED are not set, this is the number of object identifiers in the later part of the list for objects that are not changed.
poid
[out] Pointer to an array of object identifiers that should be marked as needed for replication. The first cOidChg elements are for the changed objects, the last cOidDel elements are for the deleted objects. Memory pointed to by this pointer is owned by the ActiveSync service provider. It will not be freed by replication.
Remarks
This structure is passed to the ObjectNotify function to inform the provider that an event that changes or deletes an object in the Windows CE file system has occurred. The provider should return, by means of this structure, how many replication objects have changed or been deleted because of this change or deletion to a file system object.
When ONF_CHANGED is set, cOidChg is the number of object ids in the list that should be synchronized (cOidDel is not used).
When ONF_DELETED is set, cOidDel is the number of deleted object ids in the list that should be synchronized (cOidChg is not used).
Note Earlier versions of Windows CE assigned OIDs to objects in other file systems, such as the FAT file system. These OIDs were guaranteed to be unique within a volume, but not across multiple volumes. Effective with version 3.0, only objects in the object store have valid, unique OIDs and the object store is the only volume that can return an object identifier.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 2.0 and later | Cesync.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.