Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The SendAlternativesmethod enables an input method (IM) to send information to an input method editor (IME).
Syntax
HRESULT SendAlternatives ( LMDATA * plmd ); |
Parameters
- plmd
-
[in] Pointer to a Windows Embedded CE LMDATAstructure that contains information that is to be sent from the IM to the IME. The plmdbuffer must be allocated using LocalAlloc. When the call is complete, this routine uses LocalFreeto free the buffer.
Return Value
This method supports the standard return values E_FAIL, E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
- S_OK
-
The information was successfully sent to the IME.
Remarks
An alternatives list is a list of choices provided to the IME for integration into the candidate list. This candidate list then can be presented to the end-user to enable the end-user to make the best choice.
When the alternatives are sent to the software-based input panel, they are packaged up and the software-based input panel sends the structure in a WM_SYSCOPYDATA message to the active control with the wParamset to WMSCD_CHAR_RANKED_ALTS. If the active control does not handle the message, the message is forwarded to the IME for processing.
If an application or IME returns FALSE in response to a WM_SYSCOPYDATA message, this method resends the first candidate character.
Requirements
Header | sip.h |
Library | uuid.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2000 and later |