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. General Programming
  3. Hardware & Devices
  4. how to find the Difference between laptop and desktop pc

how to find the Difference between laptop and desktop pc

Scheduled Pinned Locked Moved Hardware & Devices
jsonhelptutorialquestion
6 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
    Sonani Prakash
    wrote on last edited by
    #1

    Hi How to find whether my application is running on laptop machine or desktop machine ? any win api would help ? or any other thing needs to be looked up.

    sonani prakash

    D O 2 Replies Last reply
    0
    • S Sonani Prakash

      Hi How to find whether my application is running on laptop machine or desktop machine ? any win api would help ? or any other thing needs to be looked up.

      sonani prakash

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      There isn't any API to do this. There really isn't any method of reliably determining this. Why should your application care?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • S Sonani Prakash

        Hi How to find whether my application is running on laptop machine or desktop machine ? any win api would help ? or any other thing needs to be looked up.

        sonani prakash

        O Offline
        O Offline
        originSH
        wrote on last edited by
        #3

        The only reason I could think you'd want this is for power saving if on a laptop. In which case you want to check the power settings of the machine rather than find out if the machine is a laptop.

        S 1 Reply Last reply
        0
        • O originSH

          The only reason I could think you'd want this is for power saving if on a laptop. In which case you want to check the power settings of the machine rather than find out if the machine is a laptop.

          S Offline
          S Offline
          Sonani Prakash
          wrote on last edited by
          #4

          Thanks, Only way I am thinking is have to search for battery if it's present then it's laptop otherwise it's desktop...

          sonani prakash

          D 1 Reply Last reply
          0
          • S Sonani Prakash

            Thanks, Only way I am thinking is have to search for battery if it's present then it's laptop otherwise it's desktop...

            sonani prakash

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #5

            Do UPS systems use the same API for battery reporting as laptops? IF so this would only be able to definitively identify some systems as desktops.

            -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

            O 1 Reply Last reply
            0
            • D Dan Neely

              Do UPS systems use the same API for battery reporting as laptops? IF so this would only be able to definitively identify some systems as desktops.

              -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

              O Offline
              O Offline
              originSH
              wrote on last edited by
              #6

              dan neely wrote:

              Do UPS systems use the same API for battery reporting as laptops?

              I thought the same thing but then remebered that UPS is shown on a different tab to batteries and have a few different properties.

              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