Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PEthSocket::GetAddress ( Address addr  ) 

Get the low level MAC address of the open interface.

Returns:
TRUE if the address is returned, FALSE on error.
Parameters:
addr  Variable to receive the MAC address.

Definition at line 1611 of file ethsock.cxx.

References PEthSocket::Address::b, PChannel::Miscellaneous, and PChannel::SetErrorValues().

{
  if (driver->QueryOid(OID_802_3_CURRENT_ADDRESS, sizeof(addr), addr.b))
    return TRUE;

  return SetErrorValues(Miscellaneous, driver->GetLastError()|PWIN32ErrorFlag);
}


Generated by  Doxygen 1.6.0   Back to index