Ir al contenido


Foto

[TRUCO DELPHI] Activar / Desactivar el Salvapantallas.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 31 agosto 2016 - 12:56

[TRUCO DELPHI] Activar / Desactivar el Salvapantallas.


delphi
  1. function ActivateScreenSaver
  2. (Activate: boolean): boolean;
  3. var IntActive: byte;
  4. begin
  5. if Activate then
  6. IntActive := 1
  7. else
  8. IntActive := 0;
  9.  
  10. Result := SystemParametersInfo
  11. (SPI_SETSCREENSAVEACTIVE, IntActive,
  12. nil, 0);
  13. end;

Saludos!


  • 2




IP.Board spam blocked by CleanTalk.