/* ok, it seems rather silly to copyright a 2 line program and somehow, i think that there's no major modifications or changes that it needs... anyway... this project is open source, free to use any way you please, including claiming you wrote it the source code is here: http://www.zoneedit.com/doc/code/minimize.cpp no attribution to the author is requested or is even desired */ #include int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { /* the intention of this comment is to point out that the following code is self explanitory */ HWND hFore = GetForegroundWindow(); BOOL retVal = ShowWindow(hFore, SW_MINIMIZE); }