| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Sun Jan 13, 2008 12:57 pm Post subject: Installed Hardware |
|
|
Is there any simple way of getting hardware installed ?
Eg. Im looking to create a list of:
The grahpics card - (Make/Model)
The Sound Card - (Make/Model)
Possible the Motherboard - (Make/Model)
Hard Disk - (Make/Model/size)
and other hardware?
Is there stored in the reg?, and if so anyone know where. I know there was once a dll called: systeminfo.dll by www.eyrisdev.com but its not supported in VDS5 or 6, anyone any suggestions
Regards
Nathan |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sun Jan 13, 2008 4:54 pm Post subject: |
|
|
Hi Rubes,
DragonSphere has a couple examples using his Gadget.dll that work quite well...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon Jan 14, 2008 12:57 am Post subject: |
|
|
Rubes,
I use WMI commands with GadgetX and can get info on almost every piece of hardware including MB and BIOS.
BTW: Windows itself has sysinfo.dll which is what you access when selecting 'System Information' under Start>Programs>Assessories>System Tools
If you have GadgetX I would recommend using that. |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Tue Jan 15, 2008 12:34 pm Post subject: |
|
|
Hi Aslan,
Does this combination of WMI commands with GadgetX "know" to get a physical serial number of hdd? Or do you know any way to get it in VDS (e.g. a dll)? Thank you.
Jerry |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jan 16, 2008 1:59 am Post subject: |
|
|
Yes JerryDee
Look at using Win32_PhysicalMedia to get the serial# but I think you will need to get the 'DeviceID' first from Win32_DiskDrive.
Again best advice when it comes to WMI scripts with GadgetX is for you to get Script-o-matic 2 from M$ and play with it for a while to see what info you can get then convert the parts you need to GadgetX.
DragonSphere has some excellent WMI examples on his site.
Also, I think there is a way with API but I don't have my references with me right now. I think it's with kernel32 |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Jan 16, 2008 8:11 am Post subject: |
|
|
| JerryDee wrote: | | get a physical serial number of hdd? Or do you know any way to get it in VDS (e.g. a dll)? |
What's wrong with:
%%Serial = @VOLINFO(<drive>,Z)
Though while digging up some old code I found that I once used the following, for some reason..
%%Serial = @VOLINFO(<drive>,Z)
if @both(@greater(1,%%Serial),@unequal(0,%%Serial))
%%Serial = @fadd(%%Serial,4294967296)
end _________________ cheers
Dave |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Wed Jan 16, 2008 1:02 pm Post subject: |
|
|
Thanks, guys!
Aslan: I'll look at this "Script-o-matic" thank you
(but something with APIs would be pretty nice! )
Dave: I use @VOLINFO currently, but when an operating system collapses, it will set up there a completely new value. The physical serial number (I believe) stays unchanged. |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jan 16, 2008 3:29 pm Post subject: |
|
|
Dave,
The physical serial is hardcoded in the HD circuitboard.
In fact when you install Windows, the physical serial number of your system drive among other things is part of the activation calculation. |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Sun Mar 16, 2008 6:08 pm Post subject: |
|
|
Hi guys!
OK, I familiarized myself with WMI.
It's a pretty powerful tool. I created a little vds-program to get a (physical) disk serial number. In XP operating system this program runs very well.
When I launch it in Vista, in VDS-enviroment it runs well too, but when I launch it as an exe file it announces Application failed ...
Are there any different rules for creating integrated executables in Vista, or is it some Vista-prevention again? _________________ Jerry
(VDS 4,5,6 Pro | V-Setup 3) |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon Mar 17, 2008 2:44 am Post subject: |
|
|
Are you running the executable with admin rights?
ie. right-click the exe and select "Run as Administrator" |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Mon Mar 17, 2008 1:03 pm Post subject: |
|
|
to Aslan
Yes, I am. I get the same message whether with admin rights or without them  _________________ Jerry
(VDS 4,5,6 Pro | V-Setup 3) |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Mon Mar 17, 2008 3:53 pm Post subject: |
|
|
| Try adding a windows XP theme manifest before compiling? I don't see why the common controls dll would effect it but there very well might be some function in the dll that is required. |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Mon Mar 17, 2008 7:36 pm Post subject: |
|
|
to Prakash
You inspired me!
Before, I tried to compile an executable always WITH app manifest (all levels) but now I compiled it for the first time WITHOUT it - and the program is running !!!!
Thank you guys  _________________ Jerry
(VDS 4,5,6 Pro | V-Setup 3) |
|
| Back to top |
|
 |
|