What is the newest way to set language id when run exe on Win11?

Viewed 90

Right now, I use SetThreadUILanguages() to set a thread's language to always get the timezone in English by GetTimeZoneInformation().

Unfortunately, sometimes it will still return Time Zone Information in the system default language.

I think SetThreadUILanguages() might be too old for Windows 11, so I try to use SetThreadPreferredUILanguages(), but I'm not sure how to use this function.

Microsoft seems not to give a sample for this.

0 Answers
Related