Yet another effort at translating the Win32 API headers

Don Clugston dac at nospam.com.au
Fri Mar 31 11:55:02 PST 2006


Stewart Gordon wrote:
> Comparing the #ifs in MinGW with the information on the MSDN website, 
> there seem to be a lot of errors!  But I guess that we can identify 
> these combinations in what supports a given entity:
> 
> - 95, NT4
> - 98, NT4
> - ME, NT4
> - NT4
> - 98, 2000
> - ME, 2000
> - 2000
> - XP
> - Server 2003
> 
> There's also a lone mysterious _WIN32_WINNT >= 0x510 for a function not 
> documented on MSDN.  I'd think it was preparing for Windows Vista, 
> except that
> - Vista is internally numbered as 6.0
> - there's no doubt going to be more than one new function in it
> - Vista will have a whole new API anyway
> 
> I'm inclined that there are the following versions for the end 
> programmer to concern him/herself with:
> 
> - for Windows 9x compatibility: Windows98, WindowsME, WindowsNTonly
> - for Windows NT compatibility: Windows2000, WindowsXP, Windows2003
> - for IE compatibility: IE3, IE4, IE401, IE5, IE501, IE6
> 
> which should be mapped to internal versions based on the above list.

This sounds right to me. Are there any which are based on service packs? 
(eg XP SP2, which seemed to involve big changes to the OS?)

Anyway, I've converted winerror.h (using Excel this time, since it was 
so repetitive!). I think you'll like this one, I spent some time sorting 
the values.

How about setting up a repository for this? Maybe resurrect one of the 
dead dsource projects which was attempting to do exactly this. 
D.announce is a terrible place to be submitting files to!

> The only problem is that, since there's no way at the moment to import 
> version manipulation, we'd need to either maintain a copy of the mapping 
> code in each module that uses these versions, or use command line files 
> to set these versions.  What do people think?
> 
> Stewart.
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winerror.zip
Type: application/x-zip-compressed
Size: 18177 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20060331/83ce6d33/attachment.bin 


More information about the Digitalmars-d-announce mailing list