VirtualBox

Changeset 51955 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 9, 2014 2:29:07 PM (10 years ago)
Author:
vboxsync
Message:

Correct the NtQueryVirtualMemory hack for 32-bit pre-Vista OSes. The argument count must of course match with the API we piggy-back onto.

Location:
trunk/src/VBox/HostDrivers/Support/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r51947 r51955  
    35823582        /* XP & W2K3 doesn't have this function exported, so we've cooked up a
    35833583           few alternative in the assembly helper file that uses the code in
    3584            ZwQueryVolumeInformationFile with a different eax value. */
     3584           ZwReadFile with a different eax value.  We figure the syscall number
     3585           by inspecting ZwQueryVolumeInformationFile as it's the next number. */
    35853586# ifdef RT_ARCH_X86
    35863587        uint8_t const *pbCode = (uint8_t const *)(uintptr_t)ZwQueryVolumeInformationFile;
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm

    r51789 r51955  
    5151;
    5252; Faking up ZwQueryVirtualMemory on XP and W2K3 where it's not exported.
    53 ; Using ZwQueryVolumeInformationFile as a helper.
     53; Using ZwReadFile as a helper as it has the name number of parameters.
    5454;
    55 extern  IMPNAME(ZwQueryVolumeInformationFile@20)
     55extern  IMPNAME(ZwReadFile@24)
    5656
    5757BEGINPROC supdrvNtQueryVirtualMemory_Xxx
     
    7979
    8080supdrvNtQueryVirtualMemory_Jump:
    81         mov     edx, IMP2(ZwQueryVolumeInformationFile@20)
     81        mov     edx, IMP2(ZwReadFile@24)
    8282        lea     edx, [edx + 5]
    8383        jmp     edx
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