Changeset 105677 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Aug 14, 2024 7:02:00 PM (9 months ago)
- svn:sync-xref-src-repo-rev:
- 164374
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r98103 r105677 186 186 #ifdef VBOX_WITH_SHARED_FOLDERS 187 187 { &g_AutoMount, NIL_RTTHREAD, false, false, false, false, true }, 188 #endif 189 #ifdef RT_OS_WINDOWS 190 { &g_DisplayConfig, NIL_RTTHREAD, false, false, false, false, true }, 188 191 #endif 189 192 }; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceDisplayConfig.cpp
r105651 r105677 29 29 30 30 #include <iprt/errcore.h> 31 #include <iprt/system.h> 31 32 32 33 #include <VBox/VBoxGuestLib.h> … … 60 61 static DECLCALLBACK(int) vgsvcDisplayConfigInit(void) 61 62 { 63 if (RTSystemGetNtVersion() < RTSYSTEM_MAKE_NT_VERSION(6, 0, 0)) 64 { 65 VGSvcVerbose(1, "displayconfig requires Windows Vista or later\n"); 66 return VERR_SERVICE_DISABLED; 67 } 68 62 69 RTLDRMOD hLdrMod; 63 70 int rc = RTLdrLoadSystem("gdi32.dll", true /*fNoUnload*/, &hLdrMod); … … 75 82 } 76 83 77 VGSvcVerbose(3, "DXGK d3dkmthk callbacks are %s\n", RT_SUCCESS(rc) ? "Ok" : "Fail"); 84 if (RT_FAILURE(rc)) 85 { 86 VGSvcVerbose(1, "d3dkmthk API is not available (%Rrc)\n", rc); 87 g_pfnD3DKMTEnumAdapters = NULL; 88 g_pfnD3DKMTOpenAdapterFromLuid = NULL; 89 g_pfnD3DKMTCloseAdapter = NULL; 90 g_pfnD3DKMTEscape = NULL; 91 return VERR_SERVICE_DISABLED; 92 } 78 93 79 94 rc = RTLdrLoadSystem("wtsapi32.dll", true /*fNoUnload*/, &hLdrMod); … … 91 106 if (RT_FAILURE(rc)) 92 107 { 93 VGSvcVerbose(1, "WtsApi32.dll API s arenot available (%Rrc)\n", rc);108 VGSvcVerbose(1, "WtsApi32.dll API is not available (%Rrc)\n", rc); 94 109 g_pfnWTSFreeMemory = NULL; 95 110 g_pfnWTSQuerySessionInformationA = NULL; 96 111 g_pfnWTSEnumerateSessionsA = NULL; 97 // Assert(RTSystemGetNtVersion() < RTSYSTEM_MAKE_NT_VERSION(5, 0, 0));112 return VERR_SERVICE_DISABLED; 98 113 } 99 114 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h
r98103 r105677 213 213 extern VBOXSERVICE g_AutoMount; 214 214 #endif 215 216 #ifdef RT_OS_WINDOWS 217 extern VBOXSERVICE g_DisplayConfig; 218 #endif 219 215 220 #ifdef DEBUG 216 221 extern RTCRITSECT g_csLog; /* For guest process stdout dumping. */
Note:
See TracChangeset
for help on using the changeset viewer.