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]

> 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
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?
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
> 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?