var ScreenSaver:String;
var handle:HWND;
begin
Handle := FindWindow('Progman', 'Program Manager');
Handle := FindWindowEx(Handle, 0, 'SHELLDLL_DefView', 0);
Handle := FindWindowEx(Handle, 0,'SysListView32', 'FolderView');
ScreenSaver := 'C:\windows\system32\Mystify.scr /P' + InttoStr(Handle);
WinExec(pAnsichar(screensaver), SW_SHOWNormal);
此代碼將清除桌面圖標。
如何獲取桌面圖標後面的窗口句柄?推送屏幕保護程序作爲牆紙