The ddk def files have incorrect stdcall suffixes at multiple places. I had fixed them a long time ago in mingw-w64, so I am returning the information here too: see the attached patch, which does the following:
- ddk/cfgmgr32.h (CM_Add_IDA, CM_Add_IDW): Fix prototype per msdn:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff537928\(v=vs.85).aspx
- lib/kernel32.def: Move RegGetValue[A|W] from here...
- lib/advapi32.def: ... here. See
http://msdn.microsoft.com/en-us/library/ms724868\(VS.85).aspx
- lib/*.def, lib/ddk/*.def: Fix multiple exports' stdcall suffixes:
I will will only give two msdn reference as samples for DuplicateEncryptionInfoFile and UninstallApplication:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364011\(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa375095\(v=vs.85).aspx
For the rest, you can look at your own headers for the relevant functions' prototypes which covers more than 80% of the cases I guess. And for the rest, looking at gendef output should be enough.
Feel free to review, use abuse and apply,
def fixes, etc
more fixes (this one for ndis)
Attached another diff, this time fixing an ndis export and prototype. (seems like I missed it the first time.)
Ticket moved from /p/mingw/patches/497/