Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6822117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:37:32+00:00 2026-05-26T21:37:32+00:00

Can anyone help me detect which version of Windows the user may be using?

  • 0

Can anyone help me detect which version of Windows the user may be using?

I have seen some examples to do this, but they are not updated for Vista/7 Operating Systems.

Additionally it would be useful to detect if the OS is running on x32 or x64 architecture.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:37:32+00:00Added an answer on May 26, 2026 at 9:37 pm

    On XE2 a new class was introduced to deal with this: TOSVersion.

    • Read TOSVersion.Architecture to check for 32 or 64 bit OS.
    • Read TOSVersion.Platform to check for Windows or Mac.
    • Read TOSVersion.Major and TOSVersion.Minor for version numbers.
    • Read TOSVersion.Name to obtain the basic product name, e.g. Windows 7.
    • Read TOSVersion.ToString to obtain the full product name with version, e.g. Windows 7 Service Pack 1 (Version 6.1, Build 7601, 64-bit Edition).

    For older versions of Delphi I recommend the following:

    In order to check for 2000, XP, Vista, 7 I suggest you read Win32MajorVersion and Win32MinorVersion.

    • major.minor = 5.0 => Windows 2000
    • major.minor = 5.1 => Windows XP
    • major.minor = 5.2 => Windows 2003 server or XP64
    • major.minor = 6.0 => Windows Vista/2008 server
    • major.minor = 6.1 => Windows 7/2008 server R2

    The same information is available on MSDN, but the above came from my head!

    If you are wanting very detailed product information then that takes a bit more work. Warren’s answer gives one good route to obtaining that information. If you are wanting to test capability then version numbers are fine.

    Use CheckWin32Version to check if the prevailing OS exceeds a certain version level. Although you should check that the function works correctly in your Delphi since the implementation of that function in Delphi 6 and earlier was incorrect.

    To find out what the native OS architecture is (32 or 64 bit), use the GetNativeSystemInfo function. This function is not available on older operating systems so you should load it explicitly with GetProcAddress. Test for wProcessorArchitecture=PROCESSOR_ARCHITECTURE_AMD64 to check for 64 bit OS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone help? I have been designing a site using Javascript but the rest
Can anyone help? I have been using the entity framework and its going well
can anyone help? I have a simple html file which i am filling via
Can anyone help with with the time complexity of this algorithm, and why it
Can anyone help? I have an issue with calling a asp.net webservice from jquery..
Can anyone help with this... vector<unsigned int> *vVec = new vector<unsigned int>; vVec .reserve(frankReservedSpace);
Can anyone help me to rewrite the below code which use a fade effect
Can anyone help me out, how to detect if MSXML parser is installed on
Can anyone help me with this CAML query? When I flip the Ascending attribute
Can anyone help me out, I need a cross platform way to detect if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.