VirtualBox

Ignore:
Timestamp:
Feb 27, 2018 5:48:13 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121027
Message:

Main/VBoxSVC,VBoxSDS: fix for ​bugref:8161: added API client list interface to VBoxSDS, forcibly closes all VirtualBox clients process on Windows 7 at system shutdown. Added functionality to close VBoxSDS and VBoxSVC services automatically if the API client finished unexpectedly (crashed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-global/win/VBoxSDS.cpp

    r70684 r71139  
    8787
    8888#include "VirtualBoxSDSImpl.h"
     89#include "VirtualBoxClientListImpl.h"
    8990#include "Logging.h"
    9091
     
    694695
    695696
     697int SetServiceEnvFlag()
     698{
     699    int rc = VINF_SUCCESS;
     700    if (!SetEnvironmentVariable(L"VBOX_SERVICE_PROCESS", L""))
     701    {
     702        rc = RTErrConvertFromWin32(GetLastError());
     703        LogRel(("Error: cannot set service environment flag:  %Rrs\n", rc));
     704    }
     705    return rc;
     706}
     707
     708
    696709/**
    697710 * Main function for the VBoxSDS process.
     
    715728     */
    716729    RTR3InitExe(argc, &argv, 0);
     730
     731    SetServiceEnvFlag();
    717732
    718733    static const RTGETOPTDEF s_aOptions[] =
     
    922937            BEGIN_OBJECT_MAP(s_aObjectMap)
    923938                OBJECT_ENTRY(CLSID_VirtualBoxSDS, VirtualBoxSDS)
     939                OBJECT_ENTRY(CLSID_VirtualBoxClientList, VirtualBoxClientList)
    924940            END_OBJECT_MAP()
    925941            hrcExit = pServiceModule->init(s_aObjectMap, hInstance, &LIBID_VirtualBox,
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