Which Win32 API reports the Format preference in the Region and Language control panel?
Posted
by Integer Poet
on Stack Overflow
See other posts from Stack Overflow
or by Integer Poet
Published on 2010-06-17T05:13:47Z
Indexed on
2010/06/17
5:43 UTC
Read the original article
Hit count: 336
Windows 7 and Windows Vista have a Region and Language control panel which contains a Formats tab which contains a popup menu titled Format. This menu allows the user to select from among many language-oriented sets of number, currency, time, and date formatting preferences regardless of the language of the base system. For example, I could decide I prefer the default currency symbol to be Japanese yen on a US English system.
The Windows Contacts application changes its behavior depending on these format preferences. For example, if I select Japanese formatting preferences, Windows Contacts displays and lets me edit phonetic names (AKA "ruby", "yomi", and "furigana") but not middle names. If I select US English formatting preferences, Windows Contacts displays and lets me edit middle names but not phonetic names.
I need to write code (native C calling Win32) which mirrors the behavior of the Windows Contacts application in this respect. Which API should I call?
© Stack Overflow or respective owner