Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Installs an advise sink.
HRESULT AdviseSingleSink(
[in] TfClientId tid,
[in] REFIID riid,
[in] IUnknown *punk
);
[in] tid
Contains a TfClientId value that identifies the client.
[in] riid
Identifies the type of advise sink to install.
This parameter can be one of the following values when the ITfSourceSingle object is obtained from an ITfThreadMgr object.
This parameter can be one of the following values when the ITfSourceSingle object is obtained from an ITfContext object.
Value | Meaning |
---|---|
|
Installs a ITfCleanupContextDurationSink advise sink. |
|
Registers the client as a function provider. The punk parameter is an ITfFunctionProvider interface pointer. |
[in] punk
Pointer to the advise sink IUnknown pointer.
This method can return one of these values.
Value | Description |
---|---|
|
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. |
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | msctf.h |
DLL | Msctf.dll |
Redistributable | TSF 1.0 on Windows 2000 Professional |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today