Minimize DirectX and OpenGL applications

Hi,

My software needs to minimize all applications on the current PC,
but applications (usually games) that runs on DirectX or OpenGL
mode does not properly minimize. Do you suggest a solution
to solve this problem?

Thanks in advance,

George