Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    491cd825
    Set bit flag on CreateProcess() to allow AssignProcessToJobObject(). · 491cd825
    Nat Goodspeed authored
    Windows 7 and friends tend to create a process already implicitly allocated to
    a job object, and a process can only belong to a single job object. Passing
    CREATE_BREAKAWAY_FROM_JOB in CreateProcessA()'s dwCreationFlags seems to
    bypass the access-denied error observed with AssignProcessToJobObject()
    otherwise.
    This change should (!) enable OS lifespan management for SLVoice.exe et al.
    491cd825
    History
    Set bit flag on CreateProcess() to allow AssignProcessToJobObject().
    Nat Goodspeed authored
    Windows 7 and friends tend to create a process already implicitly allocated to
    a job object, and a process can only belong to a single job object. Passing
    CREATE_BREAKAWAY_FROM_JOB in CreateProcessA()'s dwCreationFlags seems to
    bypass the access-denied error observed with AssignProcessToJobObject()
    otherwise.
    This change should (!) enable OS lifespan management for SLVoice.exe et al.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.