int main () { HWND hWndRcv =FindWindow(NULL,L"我的记事本程式"); if(hWndRcv != NULL) { SendMessage(hWndRcv,WM_SYSCOMMAND,SC_MINIMIZE,0); } return 0; }