다음을 통해 공유


ISpResourceManager (Windows Embedded CE 6.0)

1/6/2010

This interface provides access to resources shared by different speech components in the same process. An instance of the SpResourceManager class (CLSID_SpResourceManager) is a COM singleton. That is, the same resource manager is shared by all clients in a single process that create the object. This situation allows for a common point of control for sharing other COM objects.

This interface inherits from IServiceProvider. The IServiceProvider interface supports a single method, QueryService, that provides access to objects in the resource manager.

When to Implement

Applications and engines do not need to implement this interface.

The following class identifiers (CLSIDs) can be used with this interface. A complete CLSID listing for all interfaces is in the Class IDs section.

  • CLSID_SpResourceManager

Methods

The following table lists methods for the ISpResourceManager interface.

Methods Description

GetObject

Gets a service object from the current service list, or creates one if it does not exist.

SetObject

Adds a service object to the current service list.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

SAPI Interfaces