Link to home
Start Free TrialLog in
Avatar of kazendirane
kazendirane

asked on

About Operating System through Visual Basic

How can Identify the Operating system especially Arabic Enabled?,
I Needs in my software to Identify programatically.
ASKER CERTIFIED SOLUTION
Avatar of Foyal
Foyal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KDivad
KDivad

>>'You will need to add another constant
'to detect Win98. I don't know that one.<<

Win98 also returns "VER_PLATFORM_WIN32_WINDOWS" for MyVer.dwPlatformId, so you'll have to find another way to distinguish them.
KDivad-

    I haven't messed with Win98... Can the platform be distinguished with the  version numbers? If so, this code could be easily fixed.

Thanks,
Foyal
I think so. Here's some version info for you to compare:

Your code:
4.1
Kernel32 (Windows' core) properties:
4.10.1998
Kernel32 on my Win95B machine:
4.00.1111

Looks like Win95 has a version of 4.0 and Win98 has a version of 4.1. I suspect that if you get the version info for Kernel32 then you can tell exactly which version of Windows you are running. Since it's THE core component of Windows, it will have to have a different version number for each version of Windows.

Hope this helps!
Thanks KDivad
No problem.
I wonder... if you didn't know the answer would it still be worth a "C" to get it???? Asshole.