ISpResourceManager::SetObject (Windows Embedded CE 6.0)
1/6/2010
This method adds a COM object to the current service list. If an object is already set for the specified service, this method replaces the current object with the new one. If pUnkObject is NULL, the current service object is removed.
Syntax
HRESULT SetObject(
REFGUID guidServiceId,
IUnknown* pUnkObject
);
Parameters
- guidServiceId
[in] Unique identifier of the service.
- pUnkObject
[in] Pointer to the IUnknown interface for the object that is setting the service. The method removes any existing service object if this parameter is NULL.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
E_INVALIDARG |
pUnkObject is bad or invalid. |
E_OUTOFMEMORY |
Exceeded available memory. |
FAILED(hr) |
Appropriate error message. |
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |