473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Geting info

I will be happy if someone will help me with this:

- how to get mainboard serial number
- how to get bioos serial number, bios name
- how to get hard drive serial number (GetVolumeInformation doesn't fit
here, because this gets partition serial number, given everytime after
formating it)

Are there some other unique thing in PC?

I don't want to get it from registry, it shopuld be (ASM, C or WinAPI)

I searched a littrle but with no interesting results
Nov 14 '05 #1
4 2144
Eddie <on*******@tenbit.pl> scribbled the following:
I will be happy if someone will help me with this: - how to get mainboard serial number
- how to get bioos serial number, bios name
- how to get hard drive serial number (GetVolumeInformation doesn't fit
here, because this gets partition serial number, given everytime after
formating it) Are there some other unique thing in PC? I don't want to get it from registry, it shopuld be (ASM, C or WinAPI) I searched a littrle but with no interesting results


This couldn't have much less to do with the C programming language. I
think you want to ask in comp.os.ms-windows.programmer.win32.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"'It can be easily shown that' means 'I saw a proof of this once (which I didn't
understand) which I can no longer remember'."
- A maths teacher
Nov 14 '05 #2
j

"Eddie" <on*******@tenbit.pl> wrote in message
news:ci**********@nemesis.news.tpi.pl...
I will be happy if someone will help me with this:

- how to get mainboard serial number
- how to get bioos serial number, bios name
- how to get hard drive serial number (GetVolumeInformation doesn't fit
here, because this gets partition serial number, given everytime after
formating it)

Are there some other unique thing in PC?

I don't want to get it from registry, it shopuld be (ASM, C or WinAPI)

I searched a littrle but with no interesting results


Well, this is possible using standard C but improbable.

You can use what follows and hope for the best.
int main(void)
{
int x = 10;

printf("Conjure up mainboard serial number %u\n", ++x + ++x);

return 0;
}
Nov 14 '05 #3
"j" <ja**********@bellsouth.net> writes:
"Eddie" <on*******@tenbit.pl> wrote in message
news:ci**********@nemesis.news.tpi.pl...
I will be happy if someone will help me with this:

- how to get mainboard serial number
- how to get bioos serial number, bios name
- how to get hard drive serial number (GetVolumeInformation doesn't fit
here, because this gets partition serial number, given everytime after
formating it)

Are there some other unique thing in PC?

I don't want to get it from registry, it shopuld be (ASM, C or WinAPI)

I searched a littrle but with no interesting results


Well, this is possible using standard C but improbable.

You can use what follows and hope for the best.
int main(void)
{
int x = 10;

printf("Conjure up mainboard serial number %u\n", ++x + ++x);

return 0;
}


I tried this program and it didn't work. Then I realized the
problem. This must be code for a big endian machine - the
expression for the value to be printed should be changed to

x++ + x++

to get it to work on a little endian machine.
Nov 14 '05 #4
Tim Rentsch wrote:
"j" <ja**********@bellsouth.net> writes:
"Eddie" <on*******@tenbit.pl> wrote in message
news:ci**********@nemesis.news.tpi.pl...

I will be happy if someone will help me with this:

- how to get mainboard serial number
- how to get bioos serial number, bios name
- how to get hard drive serial number (GetVolumeInformation doesn't fit
here, because this gets partition serial number, given everytime after
formating it)

Are there some other unique thing in PC?

I don't want to get it from registry, it shopuld be (ASM, C or WinAPI)

I searched a littrle but with no interesting results

Well, this is possible using standard C but improbable.

You can use what follows and hope for the best.
int main(void)
{
int x = 10;

printf("Conjure up mainboard serial number %u\n", ++x + ++x);

return 0;
}


I tried this program and it didn't work. Then I realized the
problem. This must be code for a big endian machine - the
expression for the value to be printed should be changed to

x++ + x++

to get it to work on a little endian machine.

;P
Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: ivan_oj28 | last post by:
Hi, I am developing an application where I need to read the caller id from an incoming call. The only info (for now) I need is the caller id info, so that I can display the propper caller info on...
10
by: Frank | last post by:
Using Python 2.2.2, I want to catch all exceptions from "socket.gethostbyaddr(ip)" From IDLE, I can generate: >>> socket.gethostbyaddr('1.2') Traceback (most recent call last): File...
4
by: riki | last post by:
hi, i've asked this question before and didn't get an answer...maybe i didn't explain it well so i'll try again... -------------------------------------- main.html i'm calling popUp like...
2
by: alex | last post by:
Hi, I'd like to get the name of the class & method I'm using. For example : class myclass{ function myfunction() { echo "class name : " . get_class($this) ; echo "method name : " . ?????? ;...
2
by: Gary van der Merwe | last post by:
I have a web application which has a custom error handler which displays frendly message to user and emails me the details. The standard Asp.NET error handler page will, if the project is in...
5
by: Lloyd Dupont | last post by:
I'm trying to print some of my document. The problem is, the rendering of the document is not done through GDI+ at all but through plain old GDI, and I need it like that as I am using Uniscribe to...
14
by: Satheesh Babu B | last post by:
hai.. am having a checkboxlist..now how do i get the value of the checkbox that is checked in checkboxlist using javascript? Thanks in advance.... Regards,
2
by: rksadhi | last post by:
/*Geting error ---object reference not set to an instance---at bold line----plz reply asap thanks in advance*/ cmd = new OleDbCommand ("SELECT e.emp_id,e.email, m.email AS Email FROM emp_details...
5
monirul arfin
by: monirul arfin | last post by:
Now I have another problem my pc is geting slow , But I am everyday perform disc defregment, disc checking, remove temp ( *.tmp, %temp% ) . And in my computer all drives have above 60% free space,...
7
by: r0g | last post by:
I'd like PHP to send mail to a local mailserver running at localhost:25 like I used to on windows. This mailserver is a dummy server which just writes the mail to disk for unit testing and works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.