Hi,
Have you got a diff against a current tree anywhere? I can't promise I'll be of any help, but I wouldn't mind taking a look sometime when I can find the time. A small test program might be usefull as well.
I have a test program, and I can provide a diff with my d3d7 tomorrow. However, I think it will be better for you if I just provide a diff with my GetDC and a D3D9 test app, instead of the whole ddraw / d3d7 patch.
I'll send this things tomorrow.
Stefan