So, how is this supposed to be done? I am having a heck of a time trying to find code samples with google.

What I'm trying is just (fullscreen->windowed, for example): release back surface, release front surface, release ddraw object, adjust window size/style, init new ddraw object, set coop level, set display mode, create surfaces/clipper, recreate bitmap surfaces. I stop any rendering while all that happens. When I try to do it, it suicides on me.

Do you have any links or code samples demonstrating how to switch modes between fullscreen ("exclusive") and windowed in DirectX 7.0 (2D btw).