Program to block Windows application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • meerubus

    Program to block Windows application

    Hi,
    Could someone advise how to go about writing a (simple?) C++ program to
    block a windows exe file from running? For example, my child likes to
    run halo.exe & the pgm can run even in a non-administrator account.
    Can I write a C++ program to block it from running? In addition, if
    the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
    still work?

    Thanks a million.
    meerubus

  • Jonathan Mcdougall

    #2
    Re: Program to block Windows application

    meerubus wrote:[color=blue]
    > Hi,
    > Could someone advise how to go about writing a (simple?) C++ program to
    > block a windows exe file from running? For example, my child likes to
    > run halo.exe & the pgm can run even in a non-administrator account.[/color]

    What's wrong with that?
    [color=blue]
    > Can I write a C++ program to block it from running? In addition, if
    > the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
    > still work?[/color]

    Dunno, perhaps if you asked at the right place you would get some
    answers.




    Jonathan

    Comment

    • benben

      #3
      Re: Program to block Windows application

      meerubus wrote:[color=blue]
      > Hi,
      > Could someone advise how to go about writing a (simple?) C++ program to
      > block a windows exe file from running? For example, my child likes to
      > run halo.exe & the pgm can run even in a non-administrator account.
      > Can I write a C++ program to block it from running? In addition, if
      > the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
      > still work?
      >
      > Thanks a million.
      > meerubus
      >[/color]

      This is OFF-TOPIC but may I hint you to look at group policy.

      Ben

      Comment

      • Jack Klein

        #4
        Re: Program to block Windows application

        On 28 Apr 2006 18:24:32 -0700, "meerubus" <meerubus@hotma il.com> wrote
        in comp.lang.c++:
        [color=blue]
        > Hi,
        > Could someone advise how to go about writing a (simple?) C++ program to
        > block a windows exe file from running? For example, my child likes to
        > run halo.exe & the pgm can run even in a non-administrator account.
        > Can I write a C++ program to block it from running? In addition, if
        > the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
        > still work?
        >
        > Thanks a million.
        > meerubus[/color]

        Two possibilities:

        1. Uninstall the program.

        2. Reformat and install Linux.

        --
        Jack Klein
        Home: http://JK-Technology.Com
        FAQs for
        comp.lang.c http://c-faq.com/
        comp.lang.c++ http://www.parashift.com/c++-faq-lite/
        alt.comp.lang.l earn.c-c++

        Comment

        • John Carson

          #5
          Re: Program to block Windows application

          "meerubus" <meerubus@hotma il.com> wrote in message
          news:1146273872 .539360.35210@i 39g2000cwa.goog legroups.com[color=blue]
          > Hi,
          > Could someone advise how to go about writing a (simple?) C++ program
          > to block a windows exe file from running? For example, my child
          > likes to run halo.exe & the pgm can run even in a non-administrator
          > account. Can I write a C++ program to block it from running? In
          > addition, if the pgm filename is changed (eg. halo.exe to xxx.exe),
          > can the block still work?
          >
          > Thanks a million.
          > meerubus[/color]


          This is severely off-topic since:

          1. It probably doesn't require programming.

          2. It is Windows specific, whereas this group deals with standard C++ and
          not with the details of particular operating systems.

          Ask in a group concerned with your particular operating system from a user
          point of view, e.g.,

          microsoft.publi c.win2000.gener al
          or
          microsoft.publi c.windowsxp.gen eral


          --
          John Carson


          Comment

          • al pacino

            #6
            Re: Program to block Windows application

            :-D

            Comment

            • GB

              #7
              Re: Program to block Windows application

              meerubus wrote:[color=blue]
              > Hi,
              > Could someone advise how to go about writing a (simple?) C++ program to
              > block a windows exe file from running? For example, my child likes to
              > run halo.exe & the pgm can run even in a non-administrator account.
              > Can I write a C++ program to block it from running? In addition, if
              > the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
              > still work?
              >
              > Thanks a million.
              > meerubus
              >[/color]

              This is not the sort of thing you need to use C++ for. You just need to
              set the permissions on the exe file appropriately (deny execute
              permission on the file to the account your child uses). For details, ask
              in a Windows group.

              Gregg

              Comment

              • Tomás

                #8
                Re: Program to block Windows application

                meerubus posted:
                [color=blue]
                > Hi,
                > Could someone advise how to go about writing a (simple?) C++ program to
                > block a windows exe file from running? For example, my child likes to
                > run halo.exe & the pgm can run even in a non-administrator account.
                > Can I write a C++ program to block it from running? In addition, if
                > the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
                > still work?
                >
                > Thanks a million.
                > meerubus[/color]


                A lot of Windows programs check if they're already running by checking if a
                certain mutex has already been created. Find out the name of the mutex,
                create that mutex, and when the executable file is run, it will think it's
                already running and just shut down.


                -Tomás

                Comment

                • Martin Jørgensen

                  #9
                  Re: Program to block Windows application

                  meerubus wrote:[color=blue]
                  > Hi,
                  > Could someone advise how to go about writing a (simple?) C++ program to
                  > block a windows exe file from running? For example, my child likes to
                  > run halo.exe & the pgm can run even in a non-administrator account.[/color]

                  You just rename the executable. If he's clever he'll know how to either
                  fix this (he knows the correct file-name or he'll google for it) or
                  he'll reinstall the program.



                  Best regards / Med venlig hilsen
                  Martin Jørgensen

                  --
                  ---------------------------------------------------------------------------
                  Home of Martin Jørgensen - http://www.martinjoergensen.dk

                  Comment

                  • Default User

                    #10
                    Re: Program to block Windows application

                    al pacino wrote:
                    [color=blue]
                    > :-D[/color]

                    This is not IM. Please review the information below.



                    Brian

                    --
                    Please quote enough of the previous message for context. To do so from
                    Google, click "show options" and use the Reply shown in the expanded
                    header.

                    Comment

                    Working...