So I have this dll that’s doing a bunch of horrible WinAPI calls for me. It’s designed to abstract away all the pain and unholy functions feeding on innocent blood. Little did I know that trying to cage WinAPI into a more manageable corner would be my undoing. The window is created and assigned a WndProc callback function inside this DLL, as per the various absurd requirements involving how you create windows in Windows.