Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Operating System

Status
Not open for further replies.

subhavs

Programmer
Nov 27, 2000
54
0
0
US
Hello ...

Is there a way that I can determine which operating system the application is running on from within the app itself ?

Thanks in advance for the help,

- Subha :) Nothing is impossible, even the word impossible says I'm possible.
 
You can use the GetVersionEX API:

Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByVal lpVersionInformation As OSVERSIONINFO) As Long

Gettoblaster
 
Thanks GettoBlaster.

I also found out just now that there is a SYSINFO control that can be used. This was much simpler than using the API calls.

- Subha Nothing is impossible, even the word impossible says I'm possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top