I am making a screen locker program. But i have hit a block, I don't know how to Minimize all other programs.

I have tried a sample that I found in vb6 but it didnt work.
Code: http://www.freevbcode.com/ShowCode.Asp?ID=601

Also, if anyone knows how to hide the desktop icons & start bar that would save me some time.