ImmDestroyContext function (imm.h)

Releases the input context and frees associated memory.

Syntax

BOOL ImmDestroyContext(
       HIMC unnamedParam1
);

Parameters

unnamedParam1

Return value

Returns a nonzero value if successful, or 0 otherwise.

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, the application must remove the input context from any association with windows in the thread by using the ImmAssociateContext function.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only],East Asian language support installed.
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imm.h (include Immdev.h, Windows.h)
Library Imm32.lib
DLL Imm32.dll

See also

ImmAssociateContext

ImmCreateContext

Input Method Manager

Input Method Manager Functions