ICcObjectContainer::DeleteObject (Windows Embedded CE 6.0)
1/5/2010
This method deletes an object with the specified name or ID.
In Windows Embedded CE 6.0, CoreCon HLAPI has been deprecated.
Syntax
HRESULT DeleteObject(
BSTR in_bstrNameOrID
);
Parameters
- in_bstrNameOrID
[in] ID of the object.
Return Value
The following table shows the return values for this method.
Value | Description |
---|---|
S_OK |
Indicates the object matching the name or ID was deleted from this container. |
S_FALSE |
Indicates the object was not found. |
E_INVALIDARG |
Indicates the name parameter must be non-NULL. |
E_REF |
Indicates there is an active reference to this object. |
E_FAIL |
Provides a return value for other failures. |
E_OUTOFMEMORY |
Indicates that the method could not allocate the bstr parameter in_bstrNameOrID. |
E_DATASTORE_PROTECTED |
Returns when unable to delete a protected entry. |
Requirements
Header | ccdatastore.h |
Windows | Windows 2000, Windows Server 2003, Windows Server 2003 Service Pack 1, Windows XP Home, Windows XP Pro |