安装屏幕保护程序

  • 主题发起人 主题发起人 import
  • 开始时间 开始时间
I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
uses shellapi;
procedure InstallScreenSaver(const FileName: string);
begin
{ Set this screensaver as default screensaver and open the properties dialog}
ShellExecute(Application.Handle, 'open', PChar('rundll32.exe'),
PChar('desk.cpl,InstallScreenSaver ' + FileName), nil, SW_SHOWNORMAL);
end;
 
procedure TForm1.Button1Click(Sender: TObject);
begin
InstallScreenSaver('c:/YourScreenSaverFile.scr');
end;
 
后退
顶部