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. Exectable not running for normal user and then dissappearing ? Not doing any thing

Exectable not running for normal user and then dissappearing ? Not doing any thing

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
7 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.
  • K Offline
    K Offline
    Kushagra Tiwari
    wrote on last edited by
    #1

    Hello All, I have developed an Executable in MFC which runs different instances for different number of users. Every thing works fine untill I am running that executable with account which is part of 'Administrators' group. but when I try to start it from a normal user with limited rights and even after giving the folder rights to be accessed by 'everyone' , the executable comes into action for a second and dissapears , also it is not making any log for the time duration it comes into picture . Can some body suggest me what must be happening .As I am totally sytuck here and have no idea as to what is happening   :( Kushagra

    K R 3 Replies Last reply
    0
    • K Kushagra Tiwari

      Hello All, I have developed an Executable in MFC which runs different instances for different number of users. Every thing works fine untill I am running that executable with account which is part of 'Administrators' group. but when I try to start it from a normal user with limited rights and even after giving the folder rights to be accessed by 'everyone' , the executable comes into action for a second and dissapears , also it is not making any log for the time duration it comes into picture . Can some body suggest me what must be happening .As I am totally sytuck here and have no idea as to what is happening   :( Kushagra

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      the admin-exe process has higher rights than the user-exe process so it got killed of course some security issues... Vista or W7 ? :-O

      Press F1 for help or google it. Greetings from Germany

      K 1 Reply Last reply
      0
      • K KarstenK

        the admin-exe process has higher rights than the user-exe process so it got killed of course some security issues... Vista or W7 ? :-O

        Press F1 for help or google it. Greetings from Germany

        K Offline
        K Offline
        Kushagra Tiwari
        wrote on last edited by
        #3

        The thing is that this is not getting executed even for restricted users in Windows XP and Windows 2003 , I am not able to find our why . :(

        1 Reply Last reply
        0
        • K Kushagra Tiwari

          Hello All, I have developed an Executable in MFC which runs different instances for different number of users. Every thing works fine untill I am running that executable with account which is part of 'Administrators' group. but when I try to start it from a normal user with limited rights and even after giving the folder rights to be accessed by 'everyone' , the executable comes into action for a second and dissapears , also it is not making any log for the time duration it comes into picture . Can some body suggest me what must be happening .As I am totally sytuck here and have no idea as to what is happening   :( Kushagra

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Kushagra Tiwari wrote:

          .As I am totally sytuck here and have no idea as to what is happening

          Use the debugger to step into the code?

          “Follow your bliss.” – Joseph Campbell

          K 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Kushagra Tiwari wrote:

            .As I am totally sytuck here and have no idea as to what is happening

            Use the debugger to step into the code?

            “Follow your bliss.” – Joseph Campbell

            K Offline
            K Offline
            Kushagra Tiwari
            wrote on last edited by
            #5

            Finally I got the clue .. using restricted user failed to open certain registry sections in read-write mode... Sometimes u even forget that u always have debugger to help you out :) .thanks for help. Kushagra

            R 1 Reply Last reply
            0
            • K Kushagra Tiwari

              Hello All, I have developed an Executable in MFC which runs different instances for different number of users. Every thing works fine untill I am running that executable with account which is part of 'Administrators' group. but when I try to start it from a normal user with limited rights and even after giving the folder rights to be accessed by 'everyone' , the executable comes into action for a second and dissapears , also it is not making any log for the time duration it comes into picture . Can some body suggest me what must be happening .As I am totally sytuck here and have no idea as to what is happening   :( Kushagra

              K Offline
              K Offline
              KarstenK
              wrote on last edited by
              #6

              some tipps - use of functions or dlls which arent supported in xp - check whether the manifest or linker settings require admins rights - debug in user mode - take out functionality up till it works (that would i do) The hard way: if nothings works, consider making a new and empty porject and than stepwise adding the functionality and proof whether every step is destroying X| good luck

              Press F1 for help or google it. Greetings from Germany

              1 Reply Last reply
              0
              • K Kushagra Tiwari

                Finally I got the clue .. using restricted user failed to open certain registry sections in read-write mode... Sometimes u even forget that u always have debugger to help you out :) .thanks for help. Kushagra

                R Offline
                R Offline
                Rajesh R Subramanian
                wrote on last edited by
                #7

                Kushagra Tiwari wrote:

                Finally I got the clue .. using restricted user failed to open certain registry sections in read-write mode... Sometimes u even forget that u always have debugger to help you out. thanks for help.

                You're welcome. Always remember the debugger. No, really. :)

                “Follow your bliss.” – Joseph Campbell

                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