No, I was trying your original link which uses SetWindowPos() to minimize and maximize. Mainly it seems that I cannot get FindWindow() to return me a hwnd handle (otherwise, the code would probably work).
I have not tried the code in the 2nd link. Will do so now.