Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Using POSTMSG to minimize/restore a window

Aug
151
0
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:\>
 
Back
Top