forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Installed Hardware

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Sun Jan 13, 2008 12:57 pm    Post subject: Installed Hardware Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sun Jan 13, 2008 4:54 pm    Post subject: Reply with quote

Hi Rubes,

DragonSphere has a couple examples using his Gadget.dll that work quite well...

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Jan 14, 2008 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Tue Jan 15, 2008 3:15 am    Post subject: Reply with quote

I almost forgot, a good resource for WMI scripting is Scriptomatic from Microsoft.

www.microsoft.com/downloads/details.aspx?familyid=09dfc342-648b-4119-b7eb-783b0f7d1178
Back to top
View user's profile Send private message Send e-mail
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Tue Jan 15, 2008 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jan 16, 2008 1:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Wed Jan 16, 2008 8:11 am    Post subject: Reply with quote

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
View user's profile Send private message
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Wed Jan 16, 2008 1:02 pm    Post subject: Reply with quote

Thanks, guys!

Aslan: I'll look at this "Script-o-matic" thank you
(but something with APIs would be pretty nice! Smile )

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
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jan 16, 2008 3:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Sun Mar 16, 2008 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Mar 17, 2008 2:44 am    Post subject: Reply with quote

Are you running the executable with admin rights?

ie. right-click the exe and select "Run as Administrator"
Back to top
View user's profile Send private message Send e-mail
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Mon Mar 17, 2008 1:03 pm    Post subject: Reply with quote

to Aslan

Yes, I am. I get the same message whether with admin rights or without them Sad

_________________
Jerry
(VDS 4,5,6 Pro | V-Setup 3)
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Mar 17, 2008 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Mon Mar 17, 2008 7:36 pm    Post subject: Reply with quote

to Prakash

You inspired me! Very Happy

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 Very Happy

_________________
Jerry
(VDS 4,5,6 Pro | V-Setup 3)
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group