0. Initializing the Environment and OLE objects
#include <utilcls.h>
#include <shlobj.h>
// 初始化COM环境
CoInitialize(NULL);
// 创建Shell对象
Variant vShellOLE = Variant::CreateObject("Shell.Application");
1. Cascade windows
Function CascadeWindows("CascadeWindows");
vShellOLE.Exec(CascadeWindows);
2. Tile the window horizontally
Function TileHorizontally("TileHorizontally");
vShellOLE.Exec(TileHorizontally);
3. Tile the window vertically
Function TileVertically("TileVertically");
vShellOLE.Exec(TileVertically);
4. Minimize All windows
Function MinimizeAll("MinimizeAll");
vShellOLE.Exec(MinimizeAll);
5. Undo All Minimize
Function UndoMinimizeALL("UndoMinimizeALL");
vShellOLE.Exec(UndoMinimizeALL);
6. Set time
Function SetTime("SetTime");
vShellOLE.Exec(SetTime);
7. Find a computer
Function FindComputer("FindComputer");
vShellOLE.Exec(FindComputer);
8. Find Files
Function FindFiles("FindFiles");
vShellOLE.Exec(FindFiles);
9. Help
Function Help("Help");
vShellOLE.Exec(Help);