When my application starts, I want to minimaze all applications previously opened by user.
What API can help my with that?
P.
Printable View
When my application starts, I want to minimaze all applications previously opened by user.
What API can help my with that?
P.
Just an idea .. ok..
Get the handles of all top level windows, with EnumWindows API. then Post a WM_SIZE message with SIZE_MININISED value for wParam.
Check if it works.
This is the technique used usally to close all windows (with WM_CLOSE message)
RK
If you're using VB6, you can use the 'Microsoft Shell Controls and Automation' DLL (set a reference to this DLL through Projects->References, or straight to the file at c:\windowsdirectory\system32\shdoc401.dll)
You can then use code such as :
Dim o as Shell32.Shell
set o = new Shell32.Shell
'
o.MinimizeAll
'
set o = nothing
'
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb