On Sat, Nov 19, 2011 at 10:47 AM, Kai Tietz <[email protected]> wrote:
> Hi Tony,
>
> 2011/11/19 Tony Miller <[email protected]>:
>> Hi,
>>
>> I was trying to use the function SetCurrentConsoleFontEx in my
>> program. Now, the MSDN docs for this function are a little confusing.
>>
>> http://msdn.microsoft.com/en-us/library/windows/desktop/ms686200(v=vs.85).aspx
>>
>> The table seems to state the minimum required client is Windows Vista,
>> while the text above says to define _WIN32_WINNT as 0x0500 or
>> later(Vista is 0x0600 afaik). I've defined _WIN32_WINNT as 0x0503 in
>> my program.
>>
>> This function is defined in wincon.h. In the version of the header
>> that comes with ming-w64 it is enclosed in an #if (_WIN32_WINNT) >=
>> 0x0600). On my Windows 7 machine, in C:\Program Files (x86)\Microsoft
>> SDKs\Windows\v7.0A\Include\wincon.h it is under #if(_WIN32_WINNT >=
>> 0x0500).
>>
>> So while the docs are confusing, it seems that according to the code
>> the correct version is >= 0x0500?
>>
>> Thanks to Mook for helping me figure this out on IRC.
>>
>> -Tony
>
> Thanks for the information.  But please - as I just replied to
> different thread - subscribe to this mailing-list before posting to
> it.  Otherwise your message needs to be moderated, and it rarely can
> get lost by SPAM filters.
>
> We had noticed already in the past that in many places MSDN doesn't
> tell correct information.  I checked on my XP and see that this API
> seems to be present there too.  So checking for 0x500 seems to be the
> right thing.
>
> Kai


Maybe the attached patch then?  Since we have never checked <0x0500
versions, I just moved the vista requirement to the two that mattered,
i.e. GetConsoleOriginalTitle[A|W].  Also added vista MOUSE_HWHEELED
(that one is off the house.)

--
O.S.

Attachment: wincon.diff
Description: Binary data

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to