Okay. This is the closest I can get in windows. Now it will show the countries as displayed in timezone settings for windows. I have just added two properties to be displayed in the code.
Will display: b Amsterdam, Berlin, Bern, Rome, Stockholm, vienna[/b] for my timezone, same as windows
[code]
// This example will get the computer system running Windows timezone
//http://library.wmifun.net/cimv2/win32_timezone.html
//http://msdn.microsoft.com/en-us/library/aa394498(v=vs.85).aspx
Dim locator, objWMIService, objs, objProperty As OLEOBJECT
Dim nobjs as Integer
// Connect to WMI
locator = new oleObject(“WbemScripting.SWbemlocator”, true)
Dim wmiServiceParams(2) as variant
wmiServiceParams(1) = “.”
wmiServiceParams(2) = “root\cimv2”
objWMIService= locator.invoke(“ConnectServer”, wmiServiceParams)
// Run the WMI query
objs = objWMIService.ExecQuery (“SELECT * FROM Win32_TimeZone”)
nobjs = objs.count - 1
For i as integer = 0 to nobjs
Dim stringData As String
objProperty = objs.ItemIndex(i)
// ItemIndex() is not supported in Windows XP only from Windows Vista and upwards
stringData = "DaylightName: " + objProperty.Value("DaylightName") + EndOfLine
stringData = stringData + "TimeZone: " + objProperty.Value("StandardName") + EndOfLine
stringData = stringData + "Description: " + objProperty.Value("Description") + EndOfLine
stringData = stringData + "Caption: " + objProperty.Value("Caption") + EndOfLine
msgbox stringData
Next
locator = Nil
exception err as oleexception
msgbox err.message[/code]