Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Forbid execution ?

Forbid execution ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    The TaZ
    wrote on last edited by
    #1

    Does anyone know how to write a service to forbid execution of a specified application (ie maybe ???) Thanks for all. Lionel

    R D 2 Replies Last reply
    0
    • T The TaZ

      Does anyone know how to write a service to forbid execution of a specified application (ie maybe ???) Thanks for all. Lionel

      R Offline
      R Offline
      RicoH
      wrote on last edited by
      #2

      I don't think it is possible to forbid an application from executing. Allthough I know that in XP there is something ( group policies I think ) where you can block certain applications. What you could do if you want to block an application is use a system-wide hook in a dll and check when a window is created. From that window you can easily get the executable's name and end the process if you don't want it to run... Don't think you are, know you are...

      1 Reply Last reply
      0
      • T The TaZ

        Does anyone know how to write a service to forbid execution of a specified application (ie maybe ???) Thanks for all. Lionel

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        If the application in question is on an NT-type box, you can alter the security/permissions of it so that only certain users/groups can execute it. When your service tries to execute the application, it will error out accordingly.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups