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. Disable the ability to switch to other Windows programs

Disable the ability to switch to other Windows programs

Scheduled Pinned Locked Moved C / C++ / MFC
8 Posts 4 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.
  • S Offline
    S Offline
    Sujan Christo
    wrote on last edited by
    #1

    Hi All, I just want to disable the ability to switch to other Windows programs, when my programing is running(just like as the login prompt). I thought of using "SetSysModalWindow" but it now it comes under the Obsolete command set. Is there any other method by which we can achieve the same. Thanx in advance Sujan :-D

    B 1 Reply Last reply
    0
    • S Sujan Christo

      Hi All, I just want to disable the ability to switch to other Windows programs, when my programing is running(just like as the login prompt). I thought of using "SetSysModalWindow" but it now it comes under the Obsolete command set. Is there any other method by which we can achieve the same. Thanx in advance Sujan :-D

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      Two parts required: 1. Install low level keyboard hook and intercept keystrokes that allow you to switch between program, like ALT+TAB for example. 2. Modify the system policy so that the task manager is not invoked.

      N S 2 Replies Last reply
      0
      • B Blake Miller

        Two parts required: 1. Install low level keyboard hook and intercept keystrokes that allow you to switch between program, like ALT+TAB for example. 2. Modify the system policy so that the task manager is not invoked.

        N Offline
        N Offline
        Neville Franks
        wrote on last edited by
        #3

        Part three: Wait for your users to complain like hell, and rightly so.:mad: Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com

        B 1 Reply Last reply
        0
        • N Neville Franks

          Part three: Wait for your users to complain like hell, and rightly so.:mad: Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com

          B Offline
          B Offline
          Blake Miller
          wrote on last edited by
          #4

          In the case of our application, we do it for security reasons. Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status...

          N N 2 Replies Last reply
          0
          • B Blake Miller

            In the case of our application, we do it for security reasons. Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status...

            N Offline
            N Offline
            Neville Franks
            wrote on last edited by
            #5

            Blake Miller wrote: In the case of our application, we do it for security reasons. Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status... That's fine, but I have to wonder whether the original posters app truly has these constraints. There seems to be more and more posts about folks wanting to add global hooks and muck with other applications and that worries me. Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com

            S 1 Reply Last reply
            0
            • B Blake Miller

              Two parts required: 1. Install low level keyboard hook and intercept keystrokes that allow you to switch between program, like ALT+TAB for example. 2. Modify the system policy so that the task manager is not invoked.

              S Offline
              S Offline
              Sujan Christo
              wrote on last edited by
              #6

              Hi Blake, Thanx for your reply. Now i am implementing it only. I was just curious to know whether there is something like SetSysModalWindow. I got another new concept "GINA". i am reading it also. Any way Thanx a lot Sujan

              1 Reply Last reply
              0
              • N Neville Franks

                Blake Miller wrote: In the case of our application, we do it for security reasons. Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status... That's fine, but I have to wonder whether the original posters app truly has these constraints. There seems to be more and more posts about folks wanting to add global hooks and muck with other applications and that worries me. Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com

                S Offline
                S Offline
                Sujan Christo
                wrote on last edited by
                #7

                Hi Neville, Our need was also something like blake's. we just want to user to use only our application when our program is running. Thanx Sujan

                1 Reply Last reply
                0
                • B Blake Miller

                  In the case of our application, we do it for security reasons. Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status...

                  N Offline
                  N Offline
                  normanS
                  wrote on last edited by
                  #8

                  Blake Miller wrote: Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status... Use Windows in a critical application? Shudder.

                  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