VirtualBox

Changeset 38618 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Sep 3, 2011 7:36:07 PM (13 years ago)
Author:
vboxsync
Message:

VBoxHeadless/win: dont create console window for console VBoxHeadless app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r38609 r38618  
    9696# define HOSTSUFF_EXE ""
    9797#endif /* !RT_OS_WINDOWS */
    98 
    99 #if defined(RT_OS_WINDOWS)
    100 # define VBOXHEADLESS_NAME "VBoxHeadlessSVC"
    101 #else
    102 # define VBOXHEADLESS_NAME "VBoxHeadless"
    103 #endif
    10498
    10599// defines / prototypes
     
    66246618         * differently in 4.0 and 3.x.
    66256619         */
    6626         const char VBoxHeadless_exe[] = VBOXHEADLESS_NAME HOSTSUFF_EXE;
     6620        const char VBoxHeadless_exe[] = "VBoxHeadless" HOSTSUFF_EXE;
    66276621        Assert(sz >= sizeof(VBoxHeadless_exe));
    66286622        strcpy(cmd, VBoxHeadless_exe);
     
    66406634            args[pos] = "--capture";
    66416635        }
    6642         vrc = RTProcCreate(szPath, args, env, 0, &pid);
     6636        vrc = RTProcCreate(szPath, args, env,
     6637#ifdef RT_OS_WINDOWS
     6638                RTPROC_FLAGS_NO_WINDOW
     6639#else
     6640                0
     6641#endif
     6642                , &pid);
    66436643    }
    66446644#else /* !VBOX_WITH_HEADLESS */
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