Packages
 In this topic

*Methods

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.com   Previous This
Package
Next

 


Interface IServiceProvider

public interface IServiceProvider extends IUnknown
{
  // Fields
  public static final _Guid iid;

  // Methods
  public void QueryService(_Guid guidService, _Guid riid,
        Object[] ppvObject);
}

This interface provides a method that locates a service specified by a GUID and returns the interface pointer for a requested interface on the service. An object that provides services could implement the IServiceProvider interface as a general way to supply its clients with pointers to the interfaces on the service.

Sometimes, the QueryService method returns an interface pointer from an object other than the site object. This happens when a service is provided through a separate control or through some other object that the client communicates with.

This interface wraps the Component Object Model (COM) IServiceProvider interface.

IUnknown
  |
  +--IServiceProvider

Methods

QueryService

public void QueryService(_Guid guidService, _Guid riid, Object[] ppvObject);

Retrieves the interface pointer for a requested interface on a service.

Return Value:

No return value.

ParameterDescription
guidService The GUID for the service.
riid The identifier of the requested interface.
ppvObject The returned interface.

Fields

iid
The interface identifier.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.