This function sets the specified window's show state
BOOL ShowWindow( HWND hWnd, int nCmdShow )
If the window was previously visible, the return value is TRUE.
If the window was previously hidden, the return value is FALSE.
EX1
int ShowWindow_ex1() { // make the Origin main window minimized HWND hWnd = GetWindow(); if(hWnd) ShowWindow(hWnd, SW_MINIMIZE); return 1; }
IsWindowVisible
origin.h