0

In Win32, there is a ImmAssociateContextEx function that accepts a HWND as the first parameter.

Somebody just told me that you can't use a HWND in a UWP app.

So what's the way we can properly call ImmAssociateContextEx() (or equivalent) from a UWP app?

bobobobo
  • 64,917
  • 62
  • 258
  • 363
  • 1
    Looks like UWP has it's own Internationalization framework https://learn.microsoft.com/en-us/windows/uwp/design/globalizing/globalizing-portal If UWP is not listed in the __Requirements__ section (of your 1st link) then the API function is not available for that platform. – Richard Critten Jun 24 '21 at 14:49
  • @RichardCritten Requirements says "Windows" under Target Platform -- certainly UWP is Windows..? – bobobobo Jun 24 '21 at 15:00
  • _"...Windows XP __[desktop apps only]__,..."_ It will not say this if available for use in a UWP app. – Richard Critten Jun 24 '21 at 15:02
  • Then is there a UWP function that offers equivalent functionality? – bobobobo Jun 24 '21 at 17:42
  • As the link mentioned, UWP does not support APIs that accept HWND. Therefore, you can’t use ImmAssociateContextEx method in uwp app. Besides, I have to say that there is also no any equivalent api could handle the HWND in uwp app. Could you please tell me what your expected behavior is? What function do you want to achieve? – dear_vv Jun 25 '21 at 06:35

0 Answers0