Thanks
Hi, get the handle of the active window with the API GetActiveWindow and
then call to GetWindowPlacement to get the window state, and if it's
normal (not maximized or minimized) move the window with MoveWindow.
Use a timer to do it every 20 seconds.
http://allapi.mentalis.org/apilist/GetActiveWindow.shtml
http://allapi.mentalis.org/apilist/GetWindowPlacement.shtml
http://allapi.mentalis.org/apilist/MoveWindow.shtml
Locking the PC will have the same effect of an unusable system...
--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team
iCode Systems
Wouldn't GetForegroundWindow be a "more better" choice?
--
[.NET: It's About Trust!]