[PATCH] kernel32: Implement K32EnumDeviceDrivers and K32GetDeviceDriverBaseNameA (pt. 2)

Alexandre Julliard julliard at winehq.org
Thu Jul 12 05:08:00 CDT 2018


Anthony Lauzon <anthony.lauzon at gmail.com> writes:

> +    status = NtQuerySystemInformation(SystemModuleInformation,
> +                                      smi,
> +                                      SystemInformationLength,
> +                                      &ReturnLength);
> +
> +    ULONG i;
> +    /* Try to find which module matches the base address given */
> +    for (i = 0; i < smi->ModulesCount; ++i)
> +    {
> +        if (i >= cb/sizeof(LPVOID)) {
> +            break;
> +        }
> +        image_base[i] = smi->Modules[i].ImageBaseAddress;
> +    }

This is enumerating the modules loaded in the current process, it
doesn't have anything to do with device drivers. What problem are you
trying to solve?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list