dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

Apply safe DLL search path rules #321

Closed AArnott closed 7 years ago

AArnott commented 7 years ago

We should apply this attribute to all our PInvoke assemblies

[assembly: DefaultDllImportSearchPaths(DllImportSearchPath.System32)]