Changeset 46625 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jun 18, 2013 1:28:52 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86509
- Location:
- trunk/src/VBox/Additions/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r44992 r46625 582 582 } 583 583 584 HMODULE hUser = GetModuleHandle(" USER32");584 HMODULE hUser = GetModuleHandle("user32.dll"); 585 585 586 586 if (hUser) -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp
r46593 r46625 127 127 /* NtQuerySystemInformation might be dropped in future releases, so load 128 128 it dynamically as per Microsoft's recommendation. */ 129 *(void **)&gCtx.pfnNtQuerySystemInformation = RTLdrGetSystemSymbol(" NTDLL.DLL", "NtQuerySystemInformation");129 *(void **)&gCtx.pfnNtQuerySystemInformation = RTLdrGetSystemSymbol("ntdll.dll", "NtQuerySystemInformation"); 130 130 if (gCtx.pfnNtQuerySystemInformation) 131 131 VBoxServiceVerbose(3, "VBoxStatsInit: gCtx.pfnNtQuerySystemInformation = %x\n", gCtx.pfnNtQuerySystemInformation); 132 132 else 133 133 { 134 VBoxServiceVerbose(3, "VBoxStatsInit: NTDLL.NtQuerySystemInformation not found!\n");134 VBoxServiceVerbose(3, "VBoxStatsInit: ntdll.NtQuerySystemInformation not found!\n"); 135 135 return VERR_SERVICE_DISABLED; 136 136 } 137 137 138 138 /* GlobalMemoryStatus is win2k and up, so load it dynamically */ 139 *(void **)&gCtx.pfnGlobalMemoryStatusEx = RTLdrGetSystemSymbol(" KERNEL32.DLL", "GlobalMemoryStatusEx");139 *(void **)&gCtx.pfnGlobalMemoryStatusEx = RTLdrGetSystemSymbol("kernel32.dll", "GlobalMemoryStatusEx"); 140 140 if (gCtx.pfnGlobalMemoryStatusEx) 141 141 VBoxServiceVerbose(3, "VBoxStatsInit: gCtx.GlobalMemoryStatusEx = %x\n", gCtx.pfnGlobalMemoryStatusEx); … … 143 143 { 144 144 /** @todo Now fails in NT4; do we care? */ 145 VBoxServiceVerbose(3, "VBoxStatsInit: KERNEL32.GlobalMemoryStatusEx not found!\n");145 VBoxServiceVerbose(3, "VBoxStatsInit: kernel32.GlobalMemoryStatusEx not found!\n"); 146 146 return VERR_SERVICE_DISABLED; 147 147 } 148 148 149 149 /* GetPerformanceInfo is xp and up, so load it dynamically */ 150 *(void **)&gCtx.pfnGetPerformanceInfo = RTLdrGetSystemSymbol(" PSAPI.DLL", "GetPerformanceInfo");150 *(void **)&gCtx.pfnGetPerformanceInfo = RTLdrGetSystemSymbol("psapi.dll", "GetPerformanceInfo"); 151 151 if (gCtx.pfnGetPerformanceInfo) 152 152 VBoxServiceVerbose(3, "VBoxStatsInit: gCtx.pfnGetPerformanceInfo= %x\n", gCtx.pfnGetPerformanceInfo);
Note:
See TracChangeset
for help on using the changeset viewer.