public int sceWlanGetEtherAddr(byte* EthernetAddress)
{
foreach (var ThisNetworkInterface in NetworkInterface.GetAllNetworkInterfaces())
{
if (ThisNetworkInterface.OperationalStatus == OperationalStatus.Up)
{
var Bytes = ThisNetworkInterface.GetPhysicalAddress().GetAddressBytes();
for (int n = 0; n < 6; n++) EthernetAddress[n] = Bytes[n];
return 0;
}
}
return -1;
}