I saw this C++ code on a forum which minimizes all open windows
#define MIN_ALL 419 #define MIN_ALL_UNDO 416 int main(int argc, char* argv[]) {
Not exactly the easiest way, but the manual way is to call the C++ implementation. http://pinvoke.net helps:
findwindow search results: http://pinvoke.net/search.aspx?search=findwindow&namespace=[All]
approximately the fourth result down helps in your case.