Because I came here looking for how to do this, and just in case I need to know again someday :D.
Reference:
#define SC_MINIMIZE 0xF020 /* 61472 */
#define SC_RESTORE 0xF120 /* 61728 */
#define WM_SYSCOMMAND 0x0112 /* 274 */
Command line:
<c:\> POSTMSG "*Notepad*" 274 61472
<c:\> POSTMSG "*Notepad*" 274 61728</c:\></c:\>
Reference:
#define SC_MINIMIZE 0xF020 /* 61472 */
#define SC_RESTORE 0xF120 /* 61728 */
#define WM_SYSCOMMAND 0x0112 /* 274 */
Command line:
<c:\> POSTMSG "*Notepad*" 274 61472
<c:\> POSTMSG "*Notepad*" 274 61728</c:\></c:\>