Share via


IInputPersonalizationDataSink interface

The interface between the content provider and the input personalization component.

Members

The IInputPersonalizationDataSink interface inherits from the IUnknown interface. IInputPersonalizationDataSink also has these types of members:

  • Methods

Methods

The IInputPersonalizationDataSink interface has these methods.

Method Description
AdviseStatus

Advise the component about the content provider's status.

Cleanup

Perform cleanup of the component.

GetMaxWordBreakerTokenSize

Retrieves the maximum token size for the word sinks that will be used by the word breakers to sink words in this component. The content provider guarantees that no words with larger than the returned size (in chars) will be pushed to the word sinks.

OnDataChange

Informs component about a data change. The IInputPersonalizationWordSink will receive the tokens from the content provider.

Reserved1

Reserved for future use.

Reserved2

Reserved for future use.

Reserved3

Reserved for future use.

Reserved4

Reserved for future use.

SetDataSite

Sets the IInputPersonalizationDataSite which allows the component to register for notifications.

Shutdown

Perform shutdown of the component.

 

Remarks

This interface is not declared in a public header. Applications must define it themselves. The following Interface Definition Language (IDL) fragment describes this interface, including its IID.

[
    object,
    uuid(c7310559-ac80-11d1-8df3-00c04fb6ef4f),
    helpstring("Input Personalization Data Sink interface"),
    pointer_default(ref)
]
interface IInputPersonalizationDataSink: IUnknown
{
    HRESULT Cleanup();

    HRESULT Shutdown();

    HRESULT Reserved1([in] DWORD dwReserved);

    HRESULT SetDataSite([in] IInputPersonalizationDataSite *pDataSite,
                        [out] DWORD *pgrfNotifyFlags);

    HRESULT GetMaxWordBreakerTokenSize([out] DWORD *pdwMaxWordBreakerTokenSize);

    HRESULT AdviseStatus([in] DWORD eANSStatus,
                         [in] HRESULT hrReason, 
                         DWORD dwReserved);

    HRESULT OnDataChange([in] DWORD eChAdvise, 
                         [in] IInputPersonalizationDataResource *pResource,
                         [out] IInputPersonalizationWordSink **ppFilterSink);

    HRESULT Reserved2([in] DWORD dwReserved,
                       [in] IUnknown *pUnknownReserved1,
                       [in] IUnknown *pUnknownReserved2,
                       [out] IUnknown **ppUnknownReserved1);

    HRESULT Reserved3([in] BOOL fReserved);

    HRESULT Reserved4([in] DWORD dwReserved);
};