哈哈!<br> 我来对这个问题作一个了断:<br>请参看以下示例:<br>var b : bool;<br> begin <br> result := false;<br> if SystemParametersInfo(SPI_GETSCREENSAVEACTIVE,0,@b,0) <> true <br> then exit;//查询当前系统的ScreenSaver是否可用。<br> if not b then exit;//不可用则退出<br> PostMessage(GetDesktopWindow, WM_SYSCOMMAND, SC_SCREENSAVE, 0);<br> //或SendMessage(GetDesktopWindow,WM_SYSCOMMAND,SC_SCREENSCAVE,0);<br> //或perform(WM_SYSCOMMAND,SC_SCREENSAVE ,0);<br> result := true;<br>end;