Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Methods of binding a program to a machine

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
Hi,<br><br>I am trying to bind a computer program to a particular machine so that once the program is installed it will work on that machine only. Can anyone suggest some methods that I could use to do this in VC++. I was trying to gain access to the various serial numbers on the HDD, BIOS and motherboard in the computer however, I am still having trouble gaining that information. Can anyone suggest a way to bind the program to the machine?<br><br><br>Cory
 
If that was the purpose of your older post, goto vb-world.net I know this is for visual basic but look for an API tip about getting a drive's serial number, the command should be about the same, then you can look up the specifics for it under VC++ MSDN help. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
OK I am looking there now. Can you think of any other ways to do this though?
 
Well one of the easier ways is to create something in the registry from your program during first time install, and if that registry key changes, or doesnt exist, then it wont work. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
That is one of the features I am implementing however, it is far too easy to change a registry entry and then the program will work again. Can you suggest any other methods??<br><br><br>Cory
 
um, you could create a file with some simply encrypted it information, and diguise it as a *.dll or some other form of system file (Since most people's computer dont have show all files enabled), or you could try a method that I dont even know howto to do is Self-Modifying code, its seems to be a risky method, but using a combination either file/Registry + embeded information inside the exe itself that it created at time of instalation you could maximize it to the point where the program wont run on a computer without matching sets of informations. That kind of gives me an idea to make a post myself asking if there are any tutorials on Self-Modifying code. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top