Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. How to detect different Windows versions...

How to detect different Windows versions...

Scheduled Pinned Locked Moved System Admin
tutorialquestion
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve T
    wrote on last edited by
    #1

    ...in a Kernel mode driver? If possible I need to be able to detect and diferentiate between Win ME, Win XP, Win 2K and Win 98 (first AND second edition) Steve T.

    J A 2 Replies Last reply
    0
    • S Steve T

      ...in a Kernel mode driver? If possible I need to be able to detect and diferentiate between Win ME, Win XP, Win 2K and Win 98 (first AND second edition) Steve T.

      J Offline
      J Offline
      Jon Sagara
      wrote on last edited by
      #2

      Can you use ::GetVersionEx(...), or is it different for kernel mode? Jon Sagara What about :bob:? "Teve Torbes, I've only got one thing to say to you: Tuck Off!" -- Dob Bole

      N 1 Reply Last reply
      0
      • S Steve T

        ...in a Kernel mode driver? If possible I need to be able to detect and diferentiate between Win ME, Win XP, Win 2K and Win 98 (first AND second edition) Steve T.

        A Offline
        A Offline
        Agus Kurniawan
        wrote on last edited by
        #3

        Check it : http://www.codeproject.com/useritems/osdetect.asp

        S 1 Reply Last reply
        0
        • J Jon Sagara

          Can you use ::GetVersionEx(...), or is it different for kernel mode? Jon Sagara What about :bob:? "Teve Torbes, I've only got one thing to say to you: Tuck Off!" -- Dob Bole

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          It mus be different for kernel mode, else he would not have asked. I mean a guy writing kernel mode code would prolly have heard of GetVersionEx anyway. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

          J 1 Reply Last reply
          0
          • N Nish Nishant

            It mus be different for kernel mode, else he would not have asked. I mean a guy writing kernel mode code would prolly have heard of GetVersionEx anyway. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

            J Offline
            J Offline
            Jon Sagara
            wrote on last edited by
            #5

            As long as we're speculating, I'll go the opposite route - I say this is his first foray into the world of driver development. ;P Jon Sagara What about :bob:? "Teve Torbes, I've only got one thing to say to you: Tuck Off!" -- Dob Bole

            N 1 Reply Last reply
            0
            • J Jon Sagara

              As long as we're speculating, I'll go the opposite route - I say this is his first foray into the world of driver development. ;P Jon Sagara What about :bob:? "Teve Torbes, I've only got one thing to say to you: Tuck Off!" -- Dob Bole

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Are you suggesting that he is taking the plunge too early? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

              J 1 Reply Last reply
              0
              • N Nish Nishant

                Are you suggesting that he is taking the plunge too early? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

                J Offline
                J Offline
                Jon Sagara
                wrote on last edited by
                #7

                No, Nish, I was just poking a little fun. :) Jon Sagara What about :bob:? "Teve Torbes, I've only got one thing to say to you: Tuck Off!" -- Dob Bole

                N 1 Reply Last reply
                0
                • J Jon Sagara

                  No, Nish, I was just poking a little fun. :) Jon Sagara What about :bob:? "Teve Torbes, I've only got one thing to say to you: Tuck Off!" -- Dob Bole

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  Okay! I thought you were making some calculated guesses as to the original poster's programming skill level and the direction he was taking :-) Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

                  1 Reply Last reply
                  0
                  • A Agus Kurniawan

                    Check it : http://www.codeproject.com/useritems/osdetect.asp

                    S Offline
                    S Offline
                    Steve T
                    wrote on last edited by
                    #9

                    Thanks Agus (and everyone) GetVersionEx() is not the one for kernel mode - but poking around in the ddk I found IoIsWdmVersionAvailable()to serve my purpose. though it doesn't help with Win98 / Win98SE distinction. (not very intuitive - but then nothing much is in kernel mode ;) Steve T.

                    J 1 Reply Last reply
                    0
                    • S Steve T

                      Thanks Agus (and everyone) GetVersionEx() is not the one for kernel mode - but poking around in the ddk I found IoIsWdmVersionAvailable()to serve my purpose. though it doesn't help with Win98 / Win98SE distinction. (not very intuitive - but then nothing much is in kernel mode ;) Steve T.

                      J Offline
                      J Offline
                      Jon Sagara
                      wrote on last edited by
                      #10

                      Steve T wrote: GetVersionEx() is not the one for kernel mode Just out of curiosity, why doesn't it work? Jon Sagara What about :bob:?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups