====== WinGetState ====== WinGetState([, ]) Gets the state of the current Total Commander window. It is possible to get the title of an arbitrary window with a given handle. **Parameters** |< 100% 15% >| |index|Status index. List of indexes in the table below.| |winhandle|The window handle for which to get the state.| **Indexes** |< 100% 10% >| |1|Window existence.| |2|Window visibility.| |3|Window enabled.| |4|Window activity.| |5|The window is minimized.| |6|The window is maximized.| **Return value** 0 or 1 depending on the result. **Remarks** In case the handle is invalid or the window does not exist, **ERROR** will be set to 1.