Platform SDK: International Features |
The ImmGetCompositionString function retrieves information about the composition string.
LONG ImmGetCompositionString( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen );
Returns the number of bytes copied to the destination buffer or, if dwBufLen is zero, the buffer size, in bytes, needed to receive all of the requested information, not including the null terminating character. The return value is always the size in bytes, even if the requested data is a Unicode string. On an error, the function returns one of the following negative error values.
Value | Meaning |
---|---|
IMM_ERROR_NODATA | Composition data is not ready in the input context. |
IMM_ERROR_GENERAL | General error detected by IME. |
An application calls this function in response to the WM_IME_COMPOSITION or WM_IME_STARTCOMPOSITION message. The IMM removes the information when an application calls the ImmReleaseContext function.
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Imm.h.
Library: Use Imm32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
Input Method Editor Overview, Input Method Editor Functions, ImmReleaseContext, WM_IME_COMPOSITION, WM_IME_STARTCOMPOSITION