What is the Most Effective Tool to Convert WinAPI Headers?

starcanopy starcanopy at protonmail.com
Tue Oct 13 16:11:49 UTC 2020


On Tuesday, 13 October 2020 at 00:46:32 UTC, rikki cattermole 
wrote:
> On 13/10/2020 6:28 AM, starcanopy wrote:
>> I'm currently working on a Phobos issue that necessitates a 
>> function whose declaration is found in Fileapi.h. 
>> Unfortunately, druntime doesn't contain the header's D 
>> counterpart. I know there are a few tools to help automate 
>> this process, but which one would has been known to work well 
>> with Windows' headers?
>
> You shouldn't need a tool for this.
>
> It looks pretty straight forward to writing a binding for it.
>
> https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-headers/include/fileapi.h

True, but I've been meaning to familiarize myself with the 
pertinent tooling, and this is an okay-ish example for such a 
purpose. Worst-case I'll do it "by hand."


More information about the Digitalmars-d mailing list