ImmDestroyContext function

Releases the input context and frees associated memory.

Syntax


BOOL ImmDestroyContext(
  _In_ HIMC hIMC
);

Parameters

hIMC [in]

Handle to the input context to free.

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Version

East Asian language support installed.

Header

Imm.h (include Windows.h)

Library

Imm32.lib

DLL

Imm32.dll

See also

Input Method Manager
Input Method Manager Functions
ImmAssociateContext
ImmCreateContext

 

 

Show: