Minimal support for read2 and write2 (not well tested), reordered ResetCallbacks to fix bug when another dll is providing the callbacks and is unloaded