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#
  4. does Any on have a Idea

does Any on have a Idea

Scheduled Pinned Locked Moved C#
tutorialquestion
10 Posts 9 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.
  • M Offline
    M Offline
    mnssr
    wrote on last edited by
    #1

    Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

    W L P A C 9 Replies Last reply
    0
    • M mnssr

      Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      This is almost like your previous questions. You cannot do this and for very good reasons. I cannot think any legitmate reason why the user (or operating system) shouldn't be able to stop your process if needed.

      The need to optimize rises from a bad design.My articles[^]

      1 Reply Last reply
      0
      • M mnssr

        Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You already asked this question five times and have been given lots of answers, stop it now.

        1 Reply Last reply
        0
        • M mnssr

          Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Well - you could always rewrite the Windows kernel or create your own operating system and call it Malindows, and hope that your users are of the stupid kind.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          My blog | My articles | MoXAML PowerToys

          1 Reply Last reply
          0
          • M mnssr

            Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

            A Offline
            A Offline
            Anthony Mushrow
            wrote on last edited by
            #5

            Actually yes, I do have an idea to do what you want. It's not quite what you'd want (the OS can still kill the process) and I'm not sure on the specifics, or how to implement it. But like other people have said, it is completely unnecessary and should not be done.

            My current favourite word is: Delicious!

            -SK Genius

            Game Programming articles start -here[^]-

            1 Reply Last reply
            0
            • M mnssr

              Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              mnssr wrote:

              if he wish to close the application there is only option to close from whithin application

              Okay - it sounds like you might be trying to create a legitimate application. Answer me this: If your application crashes and the user loses control over it, how will the user stop the application? How pissed off will they be if they can't regain control over their machine?

              * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


              Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

              1 Reply Last reply
              0
              • M mnssr

                Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

                J Offline
                J Offline
                Joe Woodbury
                wrote on last edited by
                #7

                Ever heard of actually reading the damn documentation on .NET? Do us all a favor and stop programming right now. Do anything else that doesn't require actually using your damn brain.

                Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                1 Reply Last reply
                0
                • M mnssr

                  Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  mnssr wrote:

                  does Any on have a Idea

                  Looking around here, I have to wonder. I'm pretty sure that you don't.

                  Christian Graus Driven to the arms of OSX by Vista.

                  1 Reply Last reply
                  0
                  • M mnssr

                    Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

                    C Offline
                    C Offline
                    CooperWu
                    wrote on last edited by
                    #9

                    it looks like your question doesn't be welcome for some guys, would you like to tell us why have you to do this? to fobidden user to stop your program. i wrote a program have this feature, three ways to implement this. 1) update your program access right as system core programs. 2) inject your program into some system program. 3) create a protection program. if user close main program, protention program will start mail program. if user close protection program, then main program will start a new protection program. hoping this help.

                    Glad to discuss with you and best wishes.

                    1 Reply Last reply
                    0
                    • M mnssr

                      Hello All, I am working On an Windows application which require to exit only from within it self and Not from any other External source.. it means user can not stop or kill the application Process by Task Manager. and if he wish to close the application there is only option to close from whithin application. does Any one have a Idea how to so this??

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      "Any external source"? What if I cut the power-cord? Why is it so important to have this functionality?

                      I are troll :)

                      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