[PATCH v2 1/4] kernel32: Return BIOS info from GetSystemFirmwareTable on Linux

Alex Henrie alexhenrie24 at gmail.com
Wed Jun 13 12:06:52 CDT 2018


On Wed, Jun 13, 2018 at 9:36 AM Huw Davies <huw at codeweavers.com> wrote:
>
> On 13 Jun 2018, at 15:32, Alex Henrie <alexhenrie24 at gmail.com> wrote:
> > On Thu, Jun 7, 2018 at 7:25 AM Huw Davies <huw at codeweavers.com> wrote:
> >>
> >> On Mon, May 28, 2018 at 10:05:26PM -0600, Alex Henrie wrote:
> >>> /***********************************************************************
> >>>  *           GetSystemFirmwareTable       (KERNEL32.@)
> >>>  */
> >>> UINT WINAPI GetSystemFirmwareTable(DWORD provider, DWORD id, PVOID buffer, DWORD size)
> >>> {
> >>> -    FIXME("(%d %d %p %d):stub\n", provider, id, buffer, size);
> >>> +    FIXME("(%08x %08x %p %d): semi-stub\n", provider, id, buffer, size);
> >>
> >> This should probably be forwarded to
> >> NtQuerySystemInformation(SystemFirmwareTableInformation, ...).
> >
> > NtQuerySystemInformation(SystemFirmwareTableInformation, ...) just
> > returns STATUS_NOT_IMPLEMENTED on Windows.
>
> You’re probably not calling it correctly.  See:
> https://testbot.winehq.org/JobDetails.pl?Key=39104

You're right, thanks for the example! I was getting
STATUS_NOT_IMPLEMENTED because I had not filled in the
_SYSTEM_FIRMWARE_TABLE_INFORMATION struct. In fact, I didn't even know
that anyone had figured out that struct's definition. Looks like you
got it from <http://www.exploit-monday.com/2013_06_16_archive.html>.

I'll send a revised patch set tonight.

-Alex



More information about the wine-devel mailing list