Henri, you added the dummy window tests, is there a chance you can explain what their purpose was? Do we care about the messages it receives?
In any case, 2/2 needs the explanation in the patch itself. Also, shouldn't these changes be ported to d3d8:device and d3d9:device as well?