The ImmDestroyContext function releases the input context and frees any memory associated with it.
BOOL ImmDestroyContext(
HIMC hIMC
);
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Any application that creates an input context by using the ImmCreateContext function must call this function to free the context before it terminates.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in imm.h.
Import Library: Use imm32.lib.
Input Method Editor Overview, Input Method Editor Functions, ImmCreateContext