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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detect if computer is a latop or desktop

Status
Not open for further replies.

WiseNewbie

Programmer
Jan 9, 2004
45
AU
hi,

is there a method of detecting whether the computer is a notebook or a desktop? Maybe an API function to do this?

Thanks,

Emily
 
How about this

In the HW_PROFILE_INFO structure, there are a pair of flags.
If it is a laptop, then the DOCKINFO_DOCKED and DOCKINFO_UNDOCKED flags cannot both be set at the same time (which they seem to be for a desktop system).

A long shot would be the SYSTEM_INFO
Using the wProcessorArchitecture, wProcessorLevel, and wProcessorRevision fields, and information from say here
It may be possible to determine that the processor inside the machine is classed by Intel as a 'mobile' processor.
As for what happens if you're using AMD processors for example, I don't know.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top