How to determine user's language setting from LocalSystem

Posted by Louis on Stack Overflow See other posts from Stack Overflow or by Louis
Published on 2010-03-29T23:46:20Z Indexed on 2010/03/29 23:53 UTC
Read the original article Hit count: 344

Filed under:
|
|
|

I have a Windows system service that needs to communicate string information to an application running under the user's account. The strings will appear to the user so I want to make sure that the strings that the service passes to the application are in the same language as the user account. How can I tell what display language the currently logged in user has from the service code? If I can determine this, I can just load the correct resource file and be done. I don't have to support multiple user's logged in so the service will only communicate with one application instance at a time.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about service