[Lazarus] Power Off/Restart a PC

Nikolay Nikolov nickysn at gmail.com
Thu Apr 7 20:17:41 CEST 2011


On 04/07/2011 04:08 PM, Fábio Henrique de Souza wrote:
> Hi all,
>
> How to power off and restart a computer with Lazarus?
> (cross-platform or Windows and Linux)

For Windows, use the ExitWindowsEx function:

  http://msdn.microsoft.com/en-us/library/aa376868%28v=vs.85%29.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110407/fe61fa4e/attachment-0003.html>


More information about the Lazarus mailing list