[DllImport("imm32.dll", CharSet=CharSet.Unicode)]
static extern int ImmGetCompositionString(IntPtr hIMC, uint dwIndex, char[] lpBuf, uint dwBufLen);
Declare Function ImmGetCompositionString Lib "imm32.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
[DllImport("imm32.dll", CharSet=CharSet.Unicode)]
private static extern int ImmGetCompositionString(IntPtr hIMC, uint dwIndex, char[] lpBuf, uint dwBufLen);
//within some method
int bufferLength = ImmGetCompositionString(hImc, GCS_RESULTSTR, null, 0);
if (bufferLength > 0)
{
char[] buffer = new char[bufferLength];
ImmGetCompositionString(hImc, GCS_RESULTSTR, buffer, (uint)bufferLength);
}