ITfCompartment::SetValue method (msctf.h)
Sets the data for a compartment.
HRESULT SetValue( [in] TfClientId tid, [in] const VARIANT *pvarValue );
Contains a TfClientId value that identifies the client.
Pointer to a VARIANT structure that contains the data to be set. Only VT_I4, VT_UNKNOWN and VT_BSTR data types are allowed.
This method can return one of these values.
||The method was successful.|
||An unspecified error occurred.|
||pvarValue is invalid.|
||The compartment was cleared by a call to ITfCompartmentMgr::ClearCompartment, this method was called during a ITfCompartmentEventSink::OnChange notification or only the owner can clear this compartment.|
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Redistributable||TSF 1.0 on Windows 2000 Professional|