473,586 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 (GetVolumeInfor mation 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 2159
Eddie <on*******@tenb it.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 (GetVolumeInfor mation 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.program mer.win32.

--
/-- Joona Palaste (pa*****@cc.hel sinki.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*******@tenb it.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 (GetVolumeInfor mation 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**********@b ellsouth.net> writes:
"Eddie" <on*******@tenb it.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 (GetVolumeInfor mation 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**********@b ellsouth.net> writes:
"Eddie" <on*******@tenb it.pl> wrote in message
news:ci****** ****@nemesis.ne ws.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 (GetVolumeInfor mation 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
6052
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 screen if so desired. I was thinking on using asterisk (asterisk.org) for this with appropriate 2FXO/2FXS card but I do not know if this is just...
10
6776
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 "<pyshell#28>", line 1, in ? socket.gethostbyaddr('1.2') herror: (11004, 'host not found') <=== what I want when I catch
4
1670
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 window.open('/path/pic.jpg','popUp','toolbar=no, location=no etc.') now...all pics don't have the same width and height so i don't wanna fix manualy width...
2
40071
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
1118
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 debug mode, display the line of code that the error occoured on, as well as the previous and next 3 lines. I would realy like to put this info in...
5
1424
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 layout text. Anyway, when printing the text is completely out of place, I wonder if it's due to incorrrect Dpi settings? (or something else?) I...
14
7953
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
1538
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 e INNER JOIN emp_details m ON e.spid = m.emp_id AND e.emp_id='" + e_id + "'",conn); dr=cmd.ExecuteReader(); if(dr.Read()) {...
5
1427
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, ram is 248 MB, CPU is 2.66GHz, windows is XP Sp2 . But my PC is slow, and I could not play any games in computer, when I play any tipe of game my pc get...
7
2619
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 fine when I use thunderbird to send mail to it and used to work fine under windows however... It doesn't work under Ubuntu. Looking at my php.ini...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.