Introduce DllMain callback to DLL binary
|Reported by:||Mateusz Łoskot||Owned by:||Mateusz Łoskot|
This is a simple patch that introduces DllMain callback function to gdalXY.dll binary on Windows.
The set up and tear down procedures have become non-trivial and in complex applications it may be a challenge to perform this operations properly. The DllMain callback serves as a central place for this tasks and it's a place where it can be performed properly and safely.
If accepted, I'm ready to commit.