Re: Do not return true to all kind of Windows OSI calls

Matthew Garrett
2008-08-02T17:31:57Z

On Sat, Aug 02, 2008 at 06:48:15PM +0200, Thomas Renninger wrote:
> On Saturday 02 August 2008 06:59:52 pm Matthew Garrett wrote:
> # Only process this on XP, not on Linux and Vista
> If (LAnd (\WXPF, LNot (\WVIS)))

The only way this statement makes sense is if both WXPF and WVIS can be
true, which is only possible if Vista responds to all of the _OSI
requests.

> # Only process this on XP, not on Linux and Vista
> If (LAnd (LNot (\WXPF), \WNTF))

Actually, this is "Only execute on 2000, not on XP or higher".

> Amazing, it looks like they already check for Linux by checking if
> OSI returned true on two major Windows versions which would indicate
> Linux running.

No, that's not true at all. You haven't shown any evidence that Windows
only returns true to a single OSI string. In fact, doing so would tend
to break BIOSes that haven't yet been updated for newer versions of
Windows.

--
Matthew Garrett | mjg59@srcf.ucam.org