An application sends the IMC_GETSENTENCEMODE message to an IME window to obtain current sentence mode.
msg = (UINT) WM_IME_CONTROL;
wParam = (WPARAM) IMC_GETSENTENCEMODE;
lParam = 0;
Returns a combination of the values given in the “IME Sentence Modes” table in Input Method Editor Constants.