Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Write a program to control application on Windows
Forum Update on Monday, May 27th 2025

Write a program to control application on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 6 Posters 512 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gold
    wrote on last edited by
    #1

    Hi all, i'm newbit and i want to write a program to control application on Windows.
    For example :
    I have application GameFastF installed on Windows.
    GameFastF only run from 18h-20h pm.
    Other time it will been disabled, blocked cannot run.
    Which function or command to block this?
    Thank you!

    JonBJ Pl45m4P 2 Replies Last reply
    0
    • G gold

      Hi all, i'm newbit and i want to write a program to control application on Windows.
      For example :
      I have application GameFastF installed on Windows.
      GameFastF only run from 18h-20h pm.
      Other time it will been disabled, blocked cannot run.
      Which function or command to block this?
      Thank you!

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @gold said in Write a program to control application on Windows:

      Other time it will been disabled, blocked cannot run.
      Which function or command to block this?

      Hello and welcome.

      We have no idea what the answer to this might be. Above all, what connection does this have to Qt anything?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gold
        wrote on last edited by
        #3

        I want to write a program Qt run on Windows.
        Example : a program QT name : ManagerTimerApp
        When run ManagerTimerApp i set dialog to choose this file
        "C:\Program Files (x86)\Game\GameFastF .exe"
        GameFastF will cannot run.
        So i don't know api function Qt to block GameFastF .
        Could you please help me?

        mrjjM 1 Reply Last reply
        0
        • G gold

          I want to write a program Qt run on Windows.
          Example : a program QT name : ManagerTimerApp
          When run ManagerTimerApp i set dialog to choose this file
          "C:\Program Files (x86)\Game\GameFastF .exe"
          GameFastF will cannot run.
          So i don't know api function Qt to block GameFastF .
          Could you please help me?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @gold
          Hi
          There is nothing in Qt to block another exe from starting,

          For that you need to write a low level driver like a virus scanner and block it there.

          It is possible to block apps via the registry
          https://www.wikihow.com/Block-an-Application-or-.EXE-from-Running-in-Windows

          However, when you lock or unlock this way, the OS has to be restarted.

          I think the same applies to AppLocker
          https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/applocker/applocker-overview

          BUt I don't know for sure.

          1 Reply Last reply
          1
          • G gold

            Hi all, i'm newbit and i want to write a program to control application on Windows.
            For example :
            I have application GameFastF installed on Windows.
            GameFastF only run from 18h-20h pm.
            Other time it will been disabled, blocked cannot run.
            Which function or command to block this?
            Thank you!

            Pl45m4P Online
            Pl45m4P Online
            Pl45m4
            wrote on last edited by
            #5

            @gold

            Isn't there something like that shipped with Windows?
            Child restrictions or how it's called? You can block websites and programs there


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            1
            • C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #6

              Running the application GameFastF.exe is something done by the CreateProcessW API call (or similar) on Windows, and equivalents on other platforms. Qt provides QProcess to give you a cross-platform way to start another process.

              It is not clear whether your are saying that the GameFastF.exe program does not start when you use QProcess to launch it, or whether you you want your Qt-based program to somehow stop the GameFastF.exe from running no matter how it is started.

              In the first case, you would have to show your code and the QProcess::error(), exitStatus(), and anything else that relates to the problem.

              In the second case; whether the operating system will allow a specific executable to run is outside the control of Qt. If you want to blacklist certain executables then AppLocker or Windows Defender Application Control (WDAC) may be places to look.

              1 Reply Last reply
              3
              • G Offline
                G Offline
                gold
                wrote on last edited by
                #7

                Thank you all, i found solution.

                Pablo J. RoginaP 1 Reply Last reply
                0
                • G gold

                  Thank you all, i found solution.

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @gold said in Write a program to control application on Windows:

                  i found solution.

                  Two things please:

                  1. Could it be possible you share the solution you found?
                  2. After sharing, don't forget to mark this post as solved!

                  Thanks.

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved