■ ImmGetContext API 함수를 선언하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
using System; using System.Runtime.InteropServices; #region IMM 컨텍스트 구하기 - ImmGetContext(windowHandle) /// <summary> /// IMM 컨텍스트 구하기 /// </summary> /// <param name="windowHandle">윈도우 핸들</param> /// <returns>IMC 컨텍스트 핸들</returns> [DllImport("imm32")] private static extern IntPtr ImmGetContext(IntPtr windowHandle); #endregion |