Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I'm not sure if there is any way to detect clock manipulation in a standalone windows machine by which we can keep track of the application validity, e.g. the application should run only for 30days from from the date of activation.Is there any way to do it without connecting to internet?

Thanks for yr ideas and suggestions,, :)
Posted

Reliably? No, nothing that can't be circumvented pretty easily. Even if you write a file, or a registry entry to hold the date and time it was last used, a simple VM could be set up to get round that without any work to find the file or key. Plus, a lot of countries automatically change the time twice a year, and the PC follows that. So you have to detect that that was a "legal" change or risk alienating legitimate users.

I've said it before, and I'll say it again: most of the time it is not financially worth while to invest much time in this - you need to convert every would-be-pirate into a customer and your time to protect it was cost less than the total income from them. Or you lose money by protecting your software... And don't make it upset legitimate users, or you lose those sales as well, and that can get very expensive!
 
Share this answer
 
Comments
Rahul K Singh 23-Jan-13 6:06am    
5+
Hi,
Simplest way is write somewhere in any file on system and on start of application calculate the date time. this is this basic approach. You can add multiple checks on it.

RKS
 
Share this answer
 
Comments
URVISH_SUTHAR1 23-Jan-13 6:04am    
we can easily crack this, correct ?
Rahul K Singh 23-Jan-13 6:06am    
Yes you are right! Read first solution... OriginalGriff is totally correct...
URVISH_SUTHAR1 23-Jan-13 6:12am    
True, check my provided solution and give your input :)
It's Not Possible to Enclose Full Code for Your Issue, So I Suggest You to Save System Date and Time (in Registry, Config File, Database or in Any Other Files) When exiting Application.

So Now, When Opening Application You Just Check Current System Time with Last Run Time Using Simple IF Condition...
 
Share this answer
 
Comments
[no name] 10-Apr-13 4:52am    
Why So Many Capital-Lettered Words?
Ashok19r91d 21-Apr-13 6:21am    
It just like your Comment... lol... :-)
[no name] 17-May-13 13:02pm    
That Is Why I Did It And Is Also Why I Am Doing It Now, You Silly Goose
you can use below option except validation dates

-Give any single day transaction
-Put limitation like user can open your app for 100 times only
-Many more depend upon your app functionality etc...

Might this help :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900