I work for a secondary school in the U.K. and we have currently just implemented a "wake on LAN" program and a similar program to close down the computers of a night. Although the problem is that the programs are products of two different companies and therefore their integration with one another is severally lacking.

Therefore I am considering creating my own program to handle both the booting up and shutting down of the computers. Initially in C and then latter with a GUI in C++.

Therefore I was hoping that someone would be able to provide me with the vital sections of code that send the boot up packet and shut down packet.

Thank you in advance.