VirtualBox

Changeset 29717 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
May 21, 2010 8:43:01 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61896
Message:

IPRT/process-win: Comment/Explanation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/process-win.cpp

    r29716 r29717  
    317317    {
    318318        /*
    319          * First we have to validate the credentials. If they're valid we can
    320          * proceed. This is important when running as a service which then looks up
    321          * the current session the user is logged on in order to start the actual
    322          * process there.
     319         * So if we want to start a process from a service (RTPROC_FLAGS_SERVICE),
     320         * we have to do the following:
     321         * - Check the credentials supplied and get the user SID.
     322         * - If valid get the correct VBoxTray instance corresponding to that
     323         *   user. This of course is only possible if that user is logged in (over
     324         *   physical console or terminal services).
     325         * - We we found the user's VBoxTray app, use and modify the token to
     326         *   use it in order to allow the newly started process acess the user's
     327         *   desktop. If there's no VBoxTray app we cannot display the started
     328         *   process (but run it without UI).
    323329         *
     330         * The following restrictions apply:
     331         * - A process only can show its UI when the user the process should run
     332         *   under is logged in (has a desktop).
     333         * - We do not want to display a process of user A run on the desktop
     334         *   of user B on multi session systems.
     335         *
    324336         * The following rights are needed in order to use LogonUserW and
    325337         * CreateProcessAsUserW, so the local policy has to be modified to:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette