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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

License Key generator!

Status
Not open for further replies.

johnvai

IS-IT--Management
Oct 4, 2003
127
LB
Dear Friends:

I was just wondering if I can introduce in my POS software a license manager program that checks for licenses per seat basis. On every application load, the license manager checks for the license on the station (if more than one station).
Is there any way to do it, or should I make a code for that that checks the Harddisk serial number and accordingly a key is generated, and consequently the serial generated is given to the customer? (if so can anyone give me a hint?)
 
You'd better put a record in a main (central) database with a special key, and check beforehand if not more than allowed licences have created these keys. If so, the user is out of luck. Removing the key on shutdown is mandatory ;-) The check and stored max values have to be encoded somehow, somewhere, but that can also be in the main database.
You still have a lot to do with this, but it's pretty much failsafe, AFAIK.

Schemes checking tha harddisk serial are bound to fail, as when new hardware has to be installed because of HW-failure, and you just left for a 3 month holiday... s-)

HTH
TonHu
 
Thanks man but i am really thinking of something professional.
Microsoft does the way that i told you.
 
if you just want to check how many apps are running on a network, you could you winsock and then count the number of listen ports across the whole network. Everytime your app runs, open a port, such as 23456, that no-one else is likely to be using, and then listen permanent to this port. Now each other instance runs a broadcast message to this port and counts the response returns. Easy, but takes a bit of coding.

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top