Compartir a través de


ISpResourceManager::SetObject (Windows CE 5.0)

Send Feedback

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.

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 Values

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

OS Versions: Windows CE .NET 4.1 and later.
Header: sapi.h, sapi.idl.
Link Library: Sapilib.lib.

See Also

ISpResourceManager | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.