VirtualBox

Changeset 73919 in vbox for trunk


Ignore:
Timestamp:
Aug 27, 2018 5:10:05 PM (6 years ago)
Author:
vboxsync
Message:

Main: On Windows, fix compiling with VBOX_WITH_SDS=

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/win/RpcChannelHook.cpp

    r71719 r73919  
    2929#include "RpcChannelHook.h"
    3030
    31 #ifdef RT_OS_WINDOWS
     31#if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_SDS)
    3232
    3333volatile bool CRpcChannelHook::s_fChannelRegistered = false;
     
    217217}
    218218
    219 #endif
     219#endif // defined(RT_OS_WINDOWS) && defined(VBOX_WITH_SDS)
  • trunk/src/VBox/Main/src-server/win/svcmain.cpp

    r71716 r73919  
    9797volatile uint32_t dwTimeOut = dwNormalTimeout; /* time for EXE to be idle before shutting down. Can be decreased at system shutdown phase. */
    9898
     99
     100#ifdef VBOX_WITH_SDS
    99101
    100102BOOL CALLBACK CloseWindowProc(_In_ HWND   hWnd, _In_ LPARAM /* lParam */)
     
    204206}
    205207
    206 
    207208#if !defined _WIN32_WINNT_WIN8
    208209
     
    215216    return IsWindowsVersionOrGreaterWrap(HIBYTE(_WIN32_WINNT_WIN8), LOBYTE(_WIN32_WINNT_WIN8), 0);
    216217}
     218
     219#endif // !VBOX_WITH_SDS
    217220
    218221
     
    313316
    314317#ifdef VBOX_WITH_SDS
     318
    315319class VBoxSVCRegistration;
    316320
     
    628632}
    629633
    630 #endif /* VBOX_WITH_SDS */
     634#endif // VBOX_WITH_SDS
    631635
    632636
     
    684688                         g_pModule->bActivity, g_pModule->GetLockCount()));
    685689
     690#ifdef VBOX_WITH_SDS
    686691                    // On Windows 7 our clients doesn't receive right sequence of Session End events
    687692                    // So we send them all WM_QUIT to forcible close them.
     
    691696                    if(!IsWindows8OrGreaterWrap())
    692697                        CloseActiveClients();
     698#endif
    693699                }
    694700                rc = !fActiveConnection;
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