Am 27.07.2020 um 20:53 schrieb Gabriel Ivăncescu <gabrielopcode@gmail.com>:

+        if (GetForegroundWindow() != window) return DDERR_WRONGMODE;

For the purpose of my understanding: is window != NULL here when Railroad Tycoon 2 hits this codepath?