The DirectDraw cooperative level window handle has already been set. It cannot be reset while the process has surfaces or palettes created.