Freigeben über


IMsoComponentManager::QueryService Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns an implementation of the specified service.

HRESULT QueryService(
   REFGUID guidService,
   REFIID iid,
   void **ppvObj
);

Parameters

  • guidService [in]
    The unique identifier of the service to retrieve.

  • iid [in]
    The unique identifier of the interface on the service to retrieve.

  • ppvObj [out]
    A pointer to the specified interface of the requested service. If the interface or service is not found, ppvObj is NULL.

Return Value

One of the values in the following table.

Value

Description

S_OK

The service was successfully created or retrieved. The caller is responsible for calling ((IUnknown *)*ppvObj)->Release();.

E_OUTOFMEMORY

There is insufficient memory to create the service.

E_UNEXPECTED

An unknown error occurred.

E_NOINTERFACE

The service exists, but the interface requested does not exist on that service.

See Also

Reference

IMsoComponentManager Interface