to protect the shareware program
how do i detect that system time/date has been changed or reset
i want to stop my shareware program if i detect that the clock been
reset. how do i do that?

Record the time whenever the program closes. If the time when it opens is earlier than the previous closing time, it's been reset.

Or you could connect to one of your servers on the Internet and have it tell you what time it is, ignoring the user's clock completely.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.