Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mr Cucumber

Shareware time limiter in Win32 API

This topic is 5465 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A lot of software has like a 30 day demo limit. After those 30 days the program wont work. How does that work? Do they save something in the registry because the limit stays after you have removed the program?

Share this post


Link to post
Share on other sites
Advertisement
Yes, most of them have an internal date/time calculator and when time expires they put a key into the registry that each trial setup checks for. If the key is existant, setup aborts. Quite simple.

Share this post


Link to post
Share on other sites
if you only wanted them to be able to run it a certain amount of times then you would need to update it every time it was run, otherwise you could just compare dates with the origional registery key

Share this post


Link to post
Share on other sites
I would probably put the date of the first time its run in the both the registry and another file (preferably in the system or system32 folder).



-If you see this image I may or may not be online
My website

Share this post


Link to post
Share on other sites
I hate apps that pollute my system directories or registry. Besides, I give such a scheme 30 seconds of security (or however long it takes to fire up RegMon and FileMon).
A better scheme would be to store this info in your data or in the .exe, and encrypt/hash it. You need to protect yourself against someone copying in a previous date.

Share this post


Link to post
Share on other sites
Go check out Armadillo - http://www.siliconrealms.com/armadillo.shtml
It will be worth your time/money to get it.

Share this post


Link to post
Share on other sites
It still works well against the casual users who just ''forget'' to register. Nothing will stop a determined cracker, but it might get more honest people to register where even annoyances like an ever present, 30-second nagware dialog fail.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!