TR_IS_BROADCAST (Windows CE 5.0)

Send Feedback

This macro sets a caller-supplied variable to a Boolean value indicating whether a given Token Ring address is a broadcast address.

VOID TR_IS_BROADCAST(PUCHAR_Address,PBOOLEAN_Result);

Parameters

  • _Address
    Points to the network address to be checked.
  • _Result
    Points to a caller-supplied variable in which this macro returns TRUE if the address is broadcast.

Return Values

None.

Remarks

A broadcast address applies to all stations in the extended network.

The TR_IS_BROADCAST macro is defined as follows.

#define TR_IS_BROADCAST(_Address, _Result)                                      \
{                                                                               \
    *(_Result) = (BOOLEAN)(((*(UNALIGNED USHORT *)&(_Address)[0] == 0xFFFF) ||  \
                            (*(UNALIGNED USHORT *)&(_Address)[0] == 0x00C0)) && \
                            (*(UNALIGNED ULONG  *)&(_Address)[2] == 0xFFFFFFFF));\
}

Requirements

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

See Also

TR_IS_FUNCTIONAL | TR_IS_GROUP | TR_IS_NOT_DIRECTED | TR_IS_SOURCE_ROUTING

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.