954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

reading motherboard model using vb code

Hello
How i can read the motherboad model using code in vb?
I write a program in ms access and i want to read/confirm the motherbord model on startup.
Thanks in advance

ChristosK
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Look into something called WMI. It might be able to help you.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 
Look into something called WMI. It might be able to help you.


Hello
I think you try to study API function becuse that is the only way to get such OK

atplerry
Junior Poster in Training
58 posts since Jul 2007
Reputation Points: 10
Solved Threads: 3
 

as james said you should to using wmi (Windows Management Instrumentation) .
i have a simple prog to read motherboard model but i m do with vb.net. if you want, i'll post it for you.

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

Hello Jx_Man please if you have pls could you send it to me and how can i get useful resourse on wmi.

atplerry
Junior Poster in Training
58 posts since Jul 2007
Reputation Points: 10
Solved Threads: 3
 

Are you interested in just ID or MB type? I mean do you want protect code or something else?

VIeditorlover
Junior Poster
137 posts since Dec 2007
Reputation Points: 10
Solved Threads: 9
 

Hello Jx_Man
I woould like to see your program so please post it.
Thanks a lot.

ChristosK
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 
Are you interested in just ID or MB type? I mean do you want protect code or something else?

That's right VIeditorlover
I want the program to run only on a specific pc, so I thought that it would be ok if I could read the board's model on startup. Is trere any other way to do this?
Thanks

ChristosK
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Hi ChristosK...
Sorry i must to convert this program into vb.net cause it build in c# before. sorry if this program not perfect. u can develop this program to read other hardware info. look into link which i given to you yesterday, that link will help u much.

Daniweb.zip


OK. Hope This helps.

Attachments Daniweb.zip (72KB)
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

hi VIeditorlover...
are you have other program to read mb info?? i would like to know too. :)

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

im looking for the one that reads the motherboard model, but i have come across this thread.. maybe this could be a little help to you guys...
Click me

cometburn
Junior Poster
122 posts since Feb 2008
Reputation Points: 12
Solved Threads: 19
 

oh... same logic like my prog... ChristosK, you can rewrite a program in vb6 like my prog. see the posted link by cometburn, its like my prog.
great finding cometburn.:)

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

Thanks Jx_Man! =)

cometburn
Junior Poster
122 posts since Feb 2008
Reputation Points: 12
Solved Threads: 19
 

Yes, you can try this trick (originally invented by authors of certain wide spreaded messenger program) - in 32bit version of The System is allowed backward compatibility to 16bit programs. These programs may read physical memory under 1MB range (!) so you can read all ROM BIOS. The only thing what you need is write short 16bexe/com app which reads 64kB block from B800:0000 and save it to disk (piece of cake isn't it?) and compute CRC file saved.

VIeditorlover
Junior Poster
137 posts since Dec 2007
Reputation Points: 10
Solved Threads: 9
 
Yes, you can try this trick (originally invented by authors of certain wide spreaded messenger program) - in 32bit version of The System is allowed backward compatibility to 16bit programs. These programs may read physical memory under 1MB range (!) so you can read all ROM BIOS. The only thing what you need is write short 16bexe/com app which reads 64kB block from B800:0000 and save it to disk (piece of cake isn't it?) and compute CRC file saved.


looks great, can you provide an example please?

Estella
Junior Poster in Training
99 posts since Jan 2008
Reputation Points: 64
Solved Threads: 7
 

create file "c:\test.com":

B4 3C BA 25 01 B9 00 00 CD 21 8B D8 B4 40 1E BA
00 F0 8E DA BA 00 00 B9 FF FF CD 21 B4 3E CD 21
1F B4 4C CD 21

and append desired file name + 00 e.g. for
C:\U it is:

43 3A 5C 55 00

VIeditorlover
Junior Poster
137 posts since Dec 2007
Reputation Points: 10
Solved Threads: 9
 
im looking for the one that reads the motherboard model, but i have come across this thread.. maybe this could be a little help to you guys... Click me

Bull's eye cometburn
your link solved my problem

If you change the
sAns = sAns & obj.SerialNumber

with this
sAns = sAns & obj.product

then you have the board's model..


Thanks a lot
Thank you all guys for your interest

ChristosK
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Glad to help!

cometburn
Junior Poster
122 posts since Feb 2008
Reputation Points: 12
Solved Threads: 19
 

u can use a same logic to read other hardware info.

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

Hi ChristosK...
Sorry i must to convert this program into vb.net cause it build in c# before. sorry if this program not perfect. u can develop this program to read other hardware info. look into link which i given to you yesterday, that link will help u much.

Daniweb.zip

OK. Hope This help


This Was very use full for me!!!

Thanks very much

GGSoft
Newbie Poster
1 post since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You