Hey everyone I guess this one is one for Zaei, but everyone else is welcome too

I just read through some old code I wrote and found some surface restore methods... (Ddraw 7)
so I thought I put those so the game will be able to continue after beeing send to background (it's ddraw fullscreen) I could not check though since it did not let me push it to background...

What do I need to do to make my DD games able to be minimized and still work after maximizing them again?