https://bugs.winehq.org/show_bug.cgi?id=49193
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello Zeb,
--- quote --- That said, I'm not sure how best to actually do so. The source is predictably ugly and all in C++, which makes importing it not particularly appealing, but there's no good reason to leave it in an external library. Perhaps porting it to C and rearranging it is the best option, but seems to be getting updates at least along with major releases of Windows 10... --- quote ---
Microsoft promotes the porting of traditional WDM drivers to KDMF or UMDF for some years now. Vendors are catching up on this, specifically with Windows 10.
https://docs.microsoft.com/en-us/windows-hardware/drivers/wdf/wdf-porting-gu...
https://docs.microsoft.com/en-us/windows-hardware/drivers/wdf/differences-be...
I've only seen two drivers (with your addition) mentioned with Wine bug reports as of now. Paul's stubbed wdfldr seemed to work for one driver but in the long run it's probably better to have a proper design/lib port as we're likely going to see more and more drivers using it.
It might be worth to bring up the topic on wine-devel. Some opinions if a C port/internalization of the lib using Microsoft's WDF GitHub repo as reference is feasible.
Regards