Query computer type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hapnendad
    New Member
    • Jun 2007
    • 7

    #1

    Query computer type

    Can anyone tell me if there is a way using vba directly or via an API function to determine if a computer is a laptop?

    Thanks in advance for your help.

    J
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by hapnendad
    Can anyone tell me if there is a way using vba directly or via an API function to determine if a computer is a laptop?
    I doubt there's even any way for Windows to tell that. The line between different "classes" of PC is largely just a matter of perception.

    I could be wrong, of course.

    Comment

    • 9815402440
      New Member
      • Oct 2007
      • 180

      #3
      hi

      i dont know how to do it by code. but you can know it as follows

      1. right click on my computer and open properties
      2. select hardware tab
      3. Click on Hardware Profiles
      4. Click on Profile(1)'s Properties

      if you can find api way to do this, then best of luck

      regards
      manpreet singh dhillon hoshiarpur

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by 9815402440
        ... 4. Click on Profile(1)'s Properties
        if you can find api way to do this, then best of luck
        What, you mean the "This is a portable computer" checkbox? Yes, I imagine that info could be quite handy.

        So, it seems as though a bit of searching for topics along the lines of "API access to hardware profiles" might be fruitful.

        Comment

        Working...