ImmGetCompositionString (imm32)
Last changed: Susko3-109.60.106.100

.
Summary
TODO - a short description

C# Signature:

[DllImport("imm32.dll", CharSet=CharSet.Unicode)]

static extern int ImmGetCompositionString(IntPtr hIMC, uint dwIndex, char[] lpBuf, uint dwBufLen);

VB Signature:

Declare Function ImmGetCompositionString Lib "imm32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

    [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);
    }

Documentation