1.用ImmInstallIME函数,下面是msdn的描述:
The ImmInstallIME function installs an IME into the system.HKL ImmInstallIME(
  LPCTSTR lpszIMEFileName,   
  LPCTSTR lpszLayoutText  
);
 
Parameters
lpszIMEFileName 
Pointer to a null-terminated string that specifies the full path of the IME. 
lpszLayoutText 
Pointer to a null-terminated string that specifies the name of the IME. This name also specifies the layout text of the IME. 
Return Values
The return value is the handle to the keyboard layout for the IME.Res
This function is intended to be used by IME setup programs only.2.*.ime均为输入法文件
3.WM_IME_SELECT
具体还是请查阅MSDN有关IME的function和message。
Wish it can help you.