I want to get the CultureInfo used by another user (that is not logged on). I thought I could use impersonation as described in this question, but CultureInfo seems to ignore the impersonation.
If I do WindowsIdentity.GetCurrent().Name)
I get the name of the non-logged-on user, but if I do CultureInfo.CurrentCulture
I get the culture of the user starting the application instead!
How can I get the CultureInfo for another user?
I previously looked at GetUserDefaultLocaleName in the Windows APIs, but I'm not familiar enough with InterOp so I could never get it working, and I couldn't find any online examples on how to use it from C#. So I don't know if that method will actually work or if it will experience the same issue.