It should work for WinNT, Win2K and WinXP. I'm not sure if Win9x have this variable though.
>Thank you very much for this precision, this is crucial.
>
>I will modify the program to use the
>
GETENV("SystemRoot")+"\System32\CONFIG.NT"
>and add plenty of tests to get a much more precise message to the user if something goes wrong.
>
>Thanks a lot.
>
--sb--