Platform SDK: International Features

ImmDestroyContext

The ImmDestroyContext function releases the input context and frees any memory associated with it.

BOOL ImmDestroyContext(
  HIMC hIMC  
);

Parameters

hIMC
[in] Handle to the input context to free.

Return Values

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero.

Remarks

Any application that creates an input context by using the ImmCreateContext function must call this function to free the context before it terminates. However, before calling ImmDestroyContext you must remove the input context from any association it has with windows in the thread by using the ImmAssociateContext function.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Imm.h.
  Library: Use Imm32.lib.

See Also

Input Method Editor Overview, Input Method Editor Functions, ImmAssociateContext, ImmCreateContext