Changeset 29351 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 11, 2010 1:13:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp
r29307 r29351 69 69 BYTE *pVersionInfo; 70 70 71 VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule\n"); 72 71 73 cbVersionSize = GetFileVersionInfoSize(pModule->Info.szExePath, &dummy); 72 74 if (!cbVersionSize) … … 188 190 HANDLE hProcess, hSnapshot; 189 191 192 VBoxServiceVerbose(3, "VBoxServicePageSharingInspectModules\n"); 193 190 194 /* Get a list of all the modules in this process. */ 191 195 hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 192 196 FALSE /* no child process handle inheritance */, dwProcessId); 193 197 if (hProcess == NULL) 198 { 199 VBoxServiceVerbose(3, "OpenProcess failed with %d\n", GetLastError()); 194 200 return; 201 } 195 202 196 203 hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId); 197 204 if (hSnapshot == INVALID_HANDLE_VALUE) 198 205 { 206 VBoxServiceVerbose(3, "CreateToolhelp32Snapshot failed with %d\n", GetLastError()); 199 207 CloseHandle(hProcess); 200 208 return; … … 234 242 } 235 243 236 printf("\n\n MODULE NAME: %s", ModuleInfo.szModule );237 printf("\n executable = %s", ModuleInfo.szExePath );238 printf("\n process ID = 0x%08X", ModuleInfo.th32ProcessID );239 printf("\n base address = 0x%08X", (DWORD) ModuleInfo.modBaseAddr );240 printf("\n base size = %d", ModuleInfo.modBaseSize );244 VBoxServiceVerbose(3, "\n\n MODULE NAME: %s", ModuleInfo.szModule ); 245 VBoxServiceVerbose(3, "\n executable = %s", ModuleInfo.szExePath ); 246 VBoxServiceVerbose(3, "\n process ID = 0x%08X", ModuleInfo.th32ProcessID ); 247 VBoxServiceVerbose(3, "\n base address = 0x%08X", (DWORD) ModuleInfo.modBaseAddr ); 248 VBoxServiceVerbose(3, "\n base size = %d", ModuleInfo.modBaseSize ); 241 249 } 242 250 while (Module32Next(hSnapshot, &ModuleInfo)); … … 256 264 PAVLPVNODECORE pNewTree = NULL; 257 265 266 VBoxServiceVerbose(3, "VBoxServicePageSharingInspectGuest\n"); 267 258 268 hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); 259 269 if (hSnapshot == INVALID_HANDLE_VALUE) 270 { 271 VBoxServiceVerbose(3, "CreateToolhelp32Snapshot failed with %d\n", GetLastError()); 260 272 return; 273 } 261 274 262 275 /* Check loaded modules for all running processes. */ … … 287 300 { 288 301 PKNOWN_MODULE pModule = (PKNOWN_MODULE)pNode; 302 303 VBoxServiceVerbose(3, "VBoxServicePageSharingEmptyTreeCallback %s %s\n", pModule->Info.szModule, pModule->szFileVersion); 289 304 290 305 /* Defererence module in the hypervisor. */
Note:
See TracChangeset
for help on using the changeset viewer.