Hi, all.
I am trying to set timezone programmatically.
First, I get the timezoneinformation through POOM,
IPOutlookApp::GetTimezoneInformationFromIndex. By this way, I can get the
"TIME_ZONE_INFORMATION" structure filled with timezone info.
Next, "SetTimeZoneInformaton()" API is used for setting timezone.
But, It is seem that some timezone info missed. If set the timezone
GMT+8 Taipei(index : 220) and excute ppc clock on today screen,
we can see the GMT+8 Beijing(index : 210).
my code like this,
...
hr = CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER,
IID_IPOutlookApp, (LPVOID*)&g_polApp);
if(FAILED(hr)) return FALSE;
hr = g_polApp->Logon(NULL);
if(FAILED(hr)) return FALSE;
g_polApp->GetTimeZoneInformationFromIndex(220, &tzinfo);
g_polApp->SysFreeString(pwszVersion);
SetTimeZoneInformation(&tzinfo);
g_polApp->Logoff();
g_polApp->Release();
How can I set the all timezoneinformation right?
thanks.