Hi, first post, please be kind
I use GetEnvironment to find out the OSType on the user's pc. Depending on what comes back, I set a path to the .ini I use for my app. The .ini is kept in the Windows folder.
We haven't run into any problems for years until now. For WinXP, the OSType comes back "WindowsNT!", for which I will set my path to "C:\WINNT"... which is wrong since XP's windows folder is actually "C:\Windows".
Has anyone seen this before and/or know of a workaround to determine between WinNT and WinXP for this matter?
Thanks.
I use GetEnvironment to find out the OSType on the user's pc. Depending on what comes back, I set a path to the .ini I use for my app. The .ini is kept in the Windows folder.
We haven't run into any problems for years until now. For WinXP, the OSType comes back "WindowsNT!", for which I will set my path to "C:\WINNT"... which is wrong since XP's windows folder is actually "C:\Windows".
Has anyone seen this before and/or know of a workaround to determine between WinNT and WinXP for this matter?
Thanks.