This function switches the currently attached IM to a specified IM for a specified application.
#include <os2.h> HWND hwnd; UniChar *pIMName; BOOL rc; rc = WinIMSelectIM(hwnd, pIMName);