When a specified IM is not found or the specified IM doesn't support the specified Frame Code Page, this function returns FALSE.
If pIMName is NULL, the IM currently attached to the specified window is detached.