From: "Ron" Newsgroups: comp.os.msdos.djgpp Subject: get hdd serial no & or bios serial number ?? Lines: 30 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Sun, 3 Sep 2000 21:09:53 +0100 NNTP-Posting-Host: 212.250.111.171 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: news6-win.server.ntlworld.com 968012207 212.250.111.171 (Sun, 03 Sep 2000 21:16:47 BST) NNTP-Posting-Date: Sun, 03 Sep 2000 21:16:47 BST Organization: ntl News Service Path: news.mv.net!newspeer.phoen-x.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail Xref: news.mv.net comp.os.msdos.djgpp:103143 Hi I have a program which I wish not to be copied. I've decided that if when the program installs I can get the serial number of the bios or the serial number of the HDD and save it in the program. The install process would then cripple itself and the scenario would be that each time the installed program runs it compares its stored value with the actual value. Thus if someone copies to another pc the comparison will fail and stop the application running. I have searched my reference books and cannot find any 'C' routines that can give me a hint. I've found some stuff that finds the c: or d: drive but not the hdd serial number. The stuff I've found looks like an assembler routine but I'm out of my depth. I need to create a function that returns the bios serial number and or the hdd serial number any help or ideas will be appreciated. regards Ron