HRESULT AdviseSink( [in] REFIID riid, [in] IUnknown *punk, [out] DWORD *pdwCookie );
Identifies the type of advise sink to install.
This parameter can be one of the following values when the ITfSource object is obtained from an ITfThreadMgr object.
This parameter can be one of the following values when the ITfSource object is obtained from an ITfContext object.
Installs an ITfActiveLanguageProfileNotifySink advise sink.
Installs an ITfDisplayAttributeNotifySink advise sink.
Installs an ITfKeyTraceEventSink advise sink.
Installs an ITfPreservedKeyNotifySink advise sink.
Installs an ITfThreadFocusSink advise sink.
Installs an ITfThreadMgrEventSink advise sink.
The advise sink IUnknown pointer.
Address of a DWORD value that receives an identifying cookie. This value is used to uninstall the advise sink in a subsequent call to ITfSource::UnadviseSink. Receives (DWORD)-1 if a failure occurs.
The method can return one of the following values.
The method was successful.
One or more parameters are invalid.
The advise sink cannot be installed.
The maximum number of advise sinks has been reached.
An unspecified error occurred.
A memory allocation failure occurred.
Send comments about this topic to Microsoft
Build date: 7/14/2009