The IServiceProvider Interface of the com.ms.com package provides a method that locates a service specified by a GUID and returns the interface pointer for a requested interface on the service.
public interface IServiceProvider extends IUnknown { // Fields public static final _Guid iid; // Methods public void QueryService(_Guid guidService, _Guid riid, Object[] ppvObject); }
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