Editor: This library has two dependencies that you should take into account: the Microsoft Winsock Control (MSWINSCK.OCX) and the AR Registry Library.
GetMACAddress (sIPAddress as String): returns a byte array containing the MAC address of the computer with The IP specified. Note: the computer has to be on.
GetMACAddressStr (sIPAddress as String): same as the previous method but returns the MAC address in a string.
SaveMACAddress (sComputerName as String, sIPAddress as String): takes the MAC address of the computer with the specified IP address and saves it in the local registry. Then you'll be able to turn this computer on by just using the assigned name with the SendMagicPacket2Computer method.
SendMagicPacket (arrMACAddress() as Byte, sDestination as String): sends a magic packet to network using the specified MAC address. Note 1: this is the only method that works under Windows 9x, Millenium, NT and 2.000. Note 2: sDestination is not the IP of the computer to turn on, but a broadcast address of the network. It would be something like 192.168.0.255.