Freigeben über


ETH_COPY_NETWORK_ADDRESS (Windows CE 5.0)

Send Feedback

This macro copies a specified Ethernet address to a specified location.

VOID ETH_COPY_NETWORK_ADDRESS(PCHAR _D,CHAR _S);

Parameters

  • _D
    Pointer to a caller-supplied variable to which this function copies the source address.
  • _S
    Pointer to the source address.

Return Values

None.

Remarks

The ETH_COPY_NETWORK_ADDRESS macro is defined as follows.

#define ETH_COPY_NETWORK_ADDRESS(_D, _S)                      \
{                                                             \
    *((ULONG UNALIGNED *)(_D)) = *((ULONG UNALIGNED *)(_S));  \
    *((USHORT UNALIGNED *)((UCHAR *)(_D)+4)) = *((USHORT UNALIGNED *)((UCHAR *)(_S)+4)); \
}

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.

See Also

Address Resolution Protocol | NDIS Ethernet Objects

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.