[Issue 18659] All modern Windows API calls are disabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 24 21:36:59 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18659

--- Comment #1 from Lewis <musicaljelly at gmail.com> ---
After making a source change to work around this problem (by just manually
setting _WIN32_WINNT to the correct value), I can now compile using
CancelIoEx(), but it fails at the link step. This appears to be because D links
against an older version of kernel32.lib. I updated it and ran it through
coffimplib, and was able to successfully link and use CancelIoEx().

This means that even if the version statements in w32api.d are fixed, you'll
need to link against the correct lib(s) to use newer functions. Does D support
this at all right now? What's the right way a user should go about doing this
that doesn't involve generating their own kernel32.lib?

--


More information about the Digitalmars-d-bugs mailing list