| BOOL InetGetPhysicalAddress(
|
|
|
LPTSTR
lpszAddress, |
// pointer to buffer to which
physical address will be written |
|
|
UINT cchAddress |
|
| );
|
The InetGetPhysicalAddress function returns the MAC
address for the local host's Ethernet or Token Ring adapter.
Parameters
- lpszAddress
- MAC address for the local host's Ethernet or Token Ring
adapter.
- cchAddress
- Maximum number of bytes to be written.
Return Value
If the function succeeds, the return value is non-zero. If the
function fails, the return value is zero. To get extended error
information, call InetGetLastError.
Requirements
Client: Requires Windows Vista, Windows XP or Windows
2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or
Windows 2000 Server.
Header: Include cswsock6.h.
Library: Use cswskav6.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
InetEnumNetworkAddresses,
InetGetLocalName, InetGetHostAddress, InetFormatAddress
|