IReplStore::IsValidObject

The IReplStore::IsValidObject method determines if the given handles are valid.

Syntax

HRESULT IsValidObject(
HREPLFLD
hFolder,
HREPLITEM
hItem,
UINT
uFlags
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

hFolder
Handle to a folder. This parameter can be NULL.
hItem
Handle to an item. This parameter can be NULL.
uFlags
Reserved. Must be 0.

Return Values

NOERROR
The given handles are all valid.
RERR_CORRUPT
The data in the given handle are corrupted.
RERR_OBJECT_DELETED
The object identified by the handle is no longer in the store.

Remarks

The IReplStore::IsValidObject method is used to determine if the given handles are valid. The ActiveSync service provider should check both hFolder and hItem to determine if either of them is not NULL.

See Also

IReplStore