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. create a process from a process and have it not in the same security context

create a process from a process and have it not in the same security context

Scheduled Pinned Locked Moved C / C++ / MFC
securityquestion
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.
  • A Offline
    A Offline
    aolinc38
    wrote on last edited by
    #1

    is this possible? I launch a process from my main process and when the second process attempts to use DLLs that the first is using, the second program crashes. However, when I click the icon for the second application while the first application is running, it accesses these DLLs just fine. I have used CreateProcess and ShellExecute to launch and both provide the same outcome. If CreateProcessAsUser is the solution, will it work for creating the process as the same user who launched the first process?

    N C 2 Replies Last reply
    0
    • A aolinc38

      is this possible? I launch a process from my main process and when the second process attempts to use DLLs that the first is using, the second program crashes. However, when I click the icon for the second application while the first application is running, it accesses these DLLs just fine. I have used CreateProcess and ShellExecute to launch and both provide the same outcome. If CreateProcessAsUser is the solution, will it work for creating the process as the same user who launched the first process?

      N Offline
      N Offline
      norish
      wrote on last edited by
      #2

      The answer is yes for your question. :) But I geuss it is not the solution for your situation. Is the platform vista? If is that so, some issues are around UAC... Is it the fact the reason of crash that is origined from some of security context errors?

      1 Reply Last reply
      0
      • A aolinc38

        is this possible? I launch a process from my main process and when the second process attempts to use DLLs that the first is using, the second program crashes. However, when I click the icon for the second application while the first application is running, it accesses these DLLs just fine. I have used CreateProcess and ShellExecute to launch and both provide the same outcome. If CreateProcessAsUser is the solution, will it work for creating the process as the same user who launched the first process?

        C Offline
        C Offline
        cefarix
        wrote on last edited by
        #3

        You should be able to give the new process a different security context by using lpProcessAttributes->lpSecurityDescriptor.

        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