ICcObjectContainer::FindObject (Windows CE 5.0)
This method returns the datastore object that matches the name or ID that is passed in.
HRESULT FindObject( BSTRin_bstrNameOrID,ICcObject**out_ppiObject);
Parameters
in_bstrNameOrID
[in] The ID to find.out_ppiObject
[out, retval] Pointer to the ICcObject interface object that matches the name.If no match exists, this value is NULL.
Return Values
The following table shows the return values for this method.
Value | Parameter |
---|---|
S_OK | Indicates the call was successful. |
S_FALSE | Indicates the object was not found. |
E_INVALIDARG | Indicates the name parameter was NULL. |
E_FAIL | Provides a default return for other errors. |
E_OUTOFMEMORY | Indicates the method could not allocate the bstr parameter in_bstrNameOrID. |
Requirements
OS Version: Windows 2000, Windows XP Home, Windows XP Pro, Windows Server 2003, and Windows Server 2003 Service Pack 1.
Header: CcDatastore.h.
Link Library: none.
See Also
Send Feedback on this topic to the authors