WakeOnLAN Method
Sends a Wake-On-LAN packet.
Syntax
int WakeOnLAN(char* lpszRemoteHost, char* lpszMACAddress);
Remarks
When this method is called, a "Wake-On-LAN" packet is sent to RemoteHost (which may also be a broadcast address). This has the effect of powering on the machine (if such functionality is supported by the network card on the remote machine).
The physical address of the remote host must be supplied in the MACAddress parameter.