Hi Piotr,
On 21/12/18 9:41 pm, Piotr Caban wrote:
buf->dstflag = (GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_DAYLIGHT ? 1 : 0);
- time /= TICKSPERSEC * 60;
 - if(time != cache_timestamp)
 - {
 cache_dstflag = GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_DAYLIGHT ? 1 : 0;cache_timestamp = time;- }
 - buf->dstflag = cache_dstflag;
 
You could use the function kernel32.GetDaylightFlag, which wouldn't require the caching.
Alistair.