Hi Vlad
>Seems this approach is much simpler than use of Windows API function.
Yes, it is simpler. But IMO, API functions are a little safer. I'd prefer API over environment variables, but this might just be a personal opinion.
>Would it work with localized versions of Windows?
It does.
Regards,
Armin