Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-04

Power Off/Restart a PC

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Nikolay Nikolov
to Fábio Henrique de Souza: How to power off and restart a computer with Lazarus? (cross-platform or Windows and…
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.freepascal.org/pipermail/lazarus/attachments/20110407/fe61fa4e/attachment.html>

Reply by email

Fábio Henrique de Souza
to Nikolay Nikolov

Thanks

Nikolay Nikolov wrote 16 lines
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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110408/a50cc231/attachment.html>

Reply by email