microsoft / cppwinrt

C++/WinRT
MIT License
1.65k stars 238 forks source link

Avoid `LoadLibraryExW` #1414

Closed kennykerr closed 5 months ago

kennykerr commented 5 months ago

Even though C++/WinRT has provided safe DLL loading #1293 for over a year, there is still some risk that the fallback logic can trip up more interesting scenarios encountered by the OS. This just locks C++/WinRT down further by not using LoadLibraryExW for anything by default.

To enable the traditional "reg free" model you can define WINRT_REG_FREE.