VirtualBox

Changeset 57753 in vbox


Ignore:
Timestamp:
Sep 15, 2015 11:15:21 AM (9 years ago)
Author:
vboxsync
Message:

IPRT: Renamed RTPROC_FLAGS_NO_PROFILE to RTPROC_FLAGS_PROFILE.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestControlSvc.h

    r56291 r57753  
    143143#define EXECUTEPROCESSFLAG_IGNORE_ORPHANED  RT_BIT(1)
    144144#define EXECUTEPROCESSFLAG_HIDDEN           RT_BIT(2)
    145 #define EXECUTEPROCESSFLAG_NO_PROFILE       RT_BIT(3)
     145#define EXECUTEPROCESSFLAG_NO_PROFILE       RT_BIT(3) /** @todo Rename to EXECUTEPROCESSFLAG_PROFILE in next API change. */
    146146#define EXECUTEPROCESSFLAG_WAIT_STDOUT      RT_BIT(4)
    147147#define EXECUTEPROCESSFLAG_WAIT_STDERR      RT_BIT(5)
  • trunk/include/iprt/process.h

    r56291 r57753  
    187187#define RTPROC_FLAGS_DETACHED               RT_BIT(0)
    188188/** Don't show the started process.
    189  * This is a window (and maybe OS/2) concept, do not use on other platforms. */
     189 * This is a Windows (and maybe OS/2) concept, do not use on other platforms. */
    190190#define RTPROC_FLAGS_HIDDEN                 RT_BIT(1)
    191191/** Use special code path for starting child processes from a service (daemon).
     
    198198 * the more frequently used case. */
    199199#define RTPROC_FLAGS_SAME_CONTRACT          RT_BIT(3)
    200 /** Do not load user profile data when executing a process.
     200/** Load user profile data when executing a process.
    201201 * This bit at the moment only is valid on Windows. */
    202 #define RTPROC_FLAGS_NO_PROFILE             RT_BIT(4)
     202#define RTPROC_FLAGS_PROFILE                RT_BIT(4)
    203203/** Create process without a console window.
    204204 * This is a Windows (and OS/2) concept, do not use on other platforms. */
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlProcess.cpp

    r57659 r57753  
    13721372                if (fFlags & EXECUTEPROCESSFLAG_HIDDEN)
    13731373                    uProcFlags |= RTPROC_FLAGS_HIDDEN;
    1374                 if (fFlags & EXECUTEPROCESSFLAG_NO_PROFILE)
    1375                     uProcFlags |= RTPROC_FLAGS_NO_PROFILE;
     1374                /** @todo Rename to EXECUTEPROCESSFLAG_PROFILE in next API change. */
     1375                if (!(fFlags & EXECUTEPROCESSFLAG_NO_PROFILE))
     1376                    uProcFlags |= RTPROC_FLAGS_PROFILE;
    13761377                if (fFlags & EXECUTEPROCESSFLAG_UNQUOTED_ARGS)
    13771378                    uProcFlags |= RTPROC_FLAGS_UNQUOTED_ARGS;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r57721 r57753  
    19541954
    19551955            uint32_t uProcFlags = RTPROC_FLAGS_SERVICE
     1956#ifdef RT_OS_WINDOWS
     1957                                /* Make sure to also load the profile data on a Windows guest. */
     1958                                | RTPROC_FLAGS_PROFILE /** @todo Not implemented for non-Windows yet. */
     1959#endif
    19561960                                | RTPROC_FLAGS_HIDDEN; /** @todo More flags from startup info? */
    1957 
    19581961            /*
    19591962             * Create the session process' environment block.
  • trunk/src/VBox/HostServices/DragAndDrop/service.cpp

    r57372 r57753  
    279279        /* Note: New since protocol version 2. */
    280280        case DragAndDropSvc::GUEST_DND_CONNECT:
     281        {
     282            /*
     283             * Never block the initial connect call, as the clients do this when
     284             * initializing and might get stuck if drag and drop is set to "disabled" at
     285             * that time.
     286             */
     287            rc = VINF_SUCCESS;
     288            break;
     289        }
     290        case DragAndDropSvc::GUEST_DND_HG_ACK_OP:
    281291            /* Fall through is intentional. */
    282         case DragAndDropSvc::GUEST_DND_HG_ACK_OP:
    283292        case DragAndDropSvc::GUEST_DND_HG_REQ_DATA:
     293            /* Fall through is intentional. */
    284294        case DragAndDropSvc::GUEST_DND_HG_EVT_PROGRESS:
    285295        {
     
    681691    }
    682692
     693#undef DO_HOST_CALLBACK
     694
    683695    /*
    684696     * If async execution is requested, we didn't notify the guest yet about
  • trunk/src/VBox/Runtime/r3/win/process-win.cpp

    r57656 r57753  
    868868                    static const char * const s_papszProcNames[] =
    869869                    {
    870 #ifdef VBOX                 /* The explorer entry is a fallback in case GA aren't installed. */
     870#ifdef VBOX             /* The explorer entry is a fallback in case GA aren't installed. */
    871871                        { "VBoxTray.exe" },
    872872#endif
     
    913913                    {
    914914                        PROFILEINFOW profileInfo;
    915                         if (!(fFlags & RTPROC_FLAGS_NO_PROFILE))
     915                        if (fFlags & RTPROC_FLAGS_PROFILE)
    916916                        {
    917917                            RT_ZERO(profileInfo);
    918                             profileInfo.dwSize = sizeof(profileInfo);
     918                            profileInfo.dwSize     = sizeof(profileInfo);
    919919                            profileInfo.lpUserName = pwszUser;
    920                             profileInfo.dwFlags = PI_NOUI; /* Prevents the display of profile error messages. */
     920                            profileInfo.dwFlags    = PI_NOUI; /* Prevents the display of profile error messages. */
    921921
    922922                            if (!pfnLoadUserProfileW(*phToken, &profileInfo))
     
    956956                            }
    957957
    958                             if (!(fFlags & RTPROC_FLAGS_NO_PROFILE))
     958                            if (fFlags & RTPROC_FLAGS_PROFILE)
    959959                            {
    960960                                fRc = pfnUnloadUserProfile(*phToken, profileInfo.hProfile);
Note: See TracChangeset for help on using the changeset viewer.

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