By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

Hi, my first question here

P: 1
Hi to all ,
i need a c or c++ program that can be used to retrieve hard disk serial number, BIOS serial number or MAC address in order to identify a client machine.

I have tried very hard but not got any useful data.
Thanx in advance,
NiravShah
Feb 17 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
Hi to all ,
i need a c or c++ program that can be used to retrieve hard disk serial number, BIOS serial number or MAC address in order to identify a client machine.

I have tried very hard but not got any useful data.
Thanx in advance,
NiravShah
When you say client machine are you talking about a remote client being accessed from a server.
If not you can execute programs to run commands using the system function, e.g. to call ipconfig to get MAC addresses etc (ifconfig on UNIX machines)
Expand|Select|Wrap|Line Numbers
  1.     system("ipconfig/all > x");                                         /* call system */
  2.  
you can then open the file x and read the information you require. There may be commands to determine the other information you require.
Feb 17 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.