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.
// make the Origin main window minimized
HWND hWnd = GetWindow();