Getting bios date and time

Hi guys, I have a problem that i am trying to figure out. I was wondering if there was a way to get the actual bios time and date. What i am trying to do is write some code in my program to make a serial key valid for a certain amount of days. I just figured that if i just got the time directly from windows, that someone could just go and change their date and time to make the key always valid. I suppose it might be slighly more complex to change the bios data and time. Any suggestions? Thanks.

[506 byte] By [hindudea] at [2007-10-2 5:44:27]
# 1

> Hi guys, I have a problem that i am trying to figure

> out. I was wondering if there was a way to get the

> actual bios time and date. What i am trying to do is

> write some code in my program to make a serial key

> valid for a certain amount of days. I just figured

> that if i just got the time directly from windows,

> that someone could just go and change their date and

> time to make the key always valid. I suppose it might

> be slighly more complex to change the bios data and

> time. Any suggestions? Thanks.

No, it wouldn't make it harder, since the windows time and date is the same as the bios time and date.

Kaj

kajbja at 2007-7-16 1:54:27 > top of Java-index,Java Essentials,Java Programming...
# 2
What would be the best way to only make a serial code valid for a certain amount of time then, without people being able to fool the program? Or would there be a better way to accomplish this, by not making time and date dependant?
hindudea at 2007-7-16 1:54:27 > top of Java-index,Java Essentials,Java Programming...
# 3

People will always be able to crack the application. You only have to decide how hard you want it to be to crack it.

Many applications do only have a few checks. They hide the installation date some where, and they do always make sure that the current time/date when the application starts is higher than the last known time/date.

Kaj

kajbja at 2007-7-16 1:54:27 > top of Java-index,Java Essentials,Java Programming...
# 4
Interesting, I will have to look into that. Thanks alot for the help!
hindudea at 2007-7-16 1:54:27 > top of Java-index,Java Essentials,Java Programming...
# 5
See [url= http://scholar.google.com/scholar?as_q=Software+Protection+and+its+Annihilation&as_occt=title]Software Protection and its Annihilation[/url]
_bensmytha at 2007-7-16 1:54:27 > top of Java-index,Java Essentials,Java Programming...
# 6

> People will always be able to crack the application.

> You only have to decide how hard you want it to be

> e to crack it.

>

> Many applications do only have a few checks. They

> hide the installation date some where, and they do

> always make sure that the current time/date when the

> application starts is higher than the last known

> time/date.

>

> Kaj

Would you know where I could find more information about how to implement something like what you had mentioned?

hindudea at 2007-7-16 1:54:27 > top of Java-index,Java Essentials,Java Programming...