Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6721291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:18:43+00:00 2026-05-26T09:18:43+00:00

I am implementing a Trial Version of the software i have created, now i

  • 0

I am implementing a Trial Version of the software i have created, now i want to catch any change in the DateTime by the user.

I tried searching how to get bios system time but no luck in that so that is the only way to do it.

I think that i have to implement a hook in the windows to catch any change. How to do it, i have seen couple of codes which was very complicated for a junior programmer like me so if anybody could give a simplified example or at least explain how it’s done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:18:43+00:00Added an answer on May 26, 2026 at 9:18 am

    You don’t do it the way you want to do. It wouldn’t work.

    You check with an authoritative internet time server or something similar (or you put up a server of your with a web service that return the current time). If you don’t know how to do it, you simply check http://tycho.usno.navy.mil/cgi-bin/timer.pl

    I’ll add that you can read here Prevent time-based copy protection circumvention? if you don’t trust me.

    I’ll tell another strategy. I’m not sure it can work. It has many many problems (it runs on my machine, but I haven’t tested it anywhere). It’s slow (you should run it in its thread and if there is an error cause the thread to exit the program). I don’t know if it’s compatible. I don’t know if low level users can run it.
    It looks at the list of upgrades for Windows and takes the most recent one date. If the user doesn’t ever updates his windows, he will trick it.

    Add a reference to C:\Windows\System32\wuapi.dll. It will generate an “interop” dll and add a reference to it.

    using WUApiLib;
    
    UpdateSession uSession = new UpdateSession();
    IUpdateSearcher uSearcher = uSession.CreateUpdateSearcher();
    uSearcher.Online = false;
    try
    {
        ISearchResult sResult = uSearcher.Search("IsInstalled=1 OR IsInstalled=0");
        // This one!!!!
        var maxTime = sResult.Updates.OfType<IUpdate>().Max(p => p.LastDeploymentChangeTime);
    }
    catch (Exception ex)
    {
        Console.WriteLine("Something went wrong: " + ex.Message);
    } 
    

    Oh… I was supposing you where using C# 🙂 If you are using C++ you can convert the code. The next time you’ll learn to put the tag of the language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do you have any ideas of implementing a 'record count' limit for a trial
When implementing Quicksort, one of the things you have to do is to choose
When implementing iterator using yield return , is there any difference between returning IEnumerator
Is implementing a code generator a sort of model driven design/ model driven software
Now with at least 300+ variations of manually created forms I've created in the
Implementing swing applications, often you realize class of components that should have a coherent
Im implementing a ZoomButtonsController in my custom View and have been trying to figure
Implementing Equals() for reference types is harder than it seems. My current canonical implementation
Implementing a 'sandbox' environment in Python used to be done with the rexec module
Implementing the ScriptControlClass was extremely easy, unfortunately the side effects with the language implementation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.