# ImmGetContext

```csharp
[DllImport("coredll.dll", SetLastError = true)]
public static extern IntPtr ImmGetContext(
   IntPtr hwnd
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/imm/nf-imm-immgetcontext)
