<windowMode> is an integer whose value can be one of the following:
0 = Hide. Hides the window.
1 = Show Normal. Activates and displays a window. If the window is minimized
or maximized, the system restores it to its original size and position.
2 = Show Minimized. Activates the window and diplays it as a minimized window.
3 = Show Maximized. Activates the window and displays it as a maximized window.
4 = Show Normal No Activate. Displays a window in its most recent size and position.
This is similar to Show Normal, except the window is not activated.
5 = Show. Activates the window and displays it in its current size and position.
6 = Minimize. Minimizes the specified window and activates the next top-level
window in the Z order.
7 = Show Minimized No Activate. Displays the window as a minimized window.
This value is similar to Show Minimized, except the window is not activated.
8 = Show NO Activate. Displays the window in its current size and position.
This value is similar to "Show", except the window is not activated.
9 = Restore. Activates and displays the window. If the window is minimized or
maximized, the system restores it to its original size and position.
10 = Show Default. Sets the show state based upon the default setting for the
application when it was started.
11 = Force Minimized. Minimizes a window, even if the thread that owns the
window is hung.
<setForeground> is a Boolean (use a value of 0 or 1). When it is true then the window
is activated and brought to the foreground.