Thank you both for your responses. I have a couple follow up questions for each of you, I'll list them below including my current implementation in case anyone else is curious.
Phil,
I managed to get the CLR Bridge to work; is it safe to assume that this technique will contine to work on any target machine as long as it has .Net 2.0 or greater installed? I don't want to assume that it will work only to have it betray me at the last minute when I run it in TestExecute.
CLR BRidge Code (working):
-----------------------------------------
function GetLanguageCode()
{
var keyPath = "HKEY_CURRENT_USER\\Control Panel\\International";
var value = "Locale";
var default = 0x00000409;
return dotNET.Microsoft_Win32.Registry.GetValue(keyPath, value, default).OleValue;
}
==================================
==================================
Helen,
I couldn't actually get the WMI method to work for me. Maybe you can see what I'm doing wrong. I managed to ge it to return a value, but the value always comes back as '2', instead of "0x00000409". Additionally, is it also safe to assume that the WMI service will be intstalled and running on any Window machine with .Net installed?
CLR BRidge Code (broken):
----------------------------------------
function GetLanguageCode()
{
var HKEY_CURRENT_USER = 0x80000001;
var keyPath = "Control Panel\International";
var value = "Locale";
var reg = GetObject("WinMgmts:{impersonationLevel=impersonate}!/root/default:StdRegProv");
return reg.GetStringValue(HKEY_CURRENT_USER, keyPath, value);
}