TR_IS_SOURCE_ROUTING (Windows Embedded CE 6.0)

1/6/2010

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


VOID TR_IS_SOURCE_ROUTING(
  PUCHAR _Address,
  PBOOLEAN _Result
);

_Address

Points to a network address.

_Result

Points to a caller-supplied variable in which this macro returns TRUE if the address is a source-routing address.

A source routing address has the source-routing bit asserted.

The TR_IS_SOURCE_ROUTING macro is defined as follows.

#define TR_IS_SOURCE_ROUTING(_Address, _Result)                          \
{                                                                        \
    *(_Result) = (BOOLEAN)((_Address)[0] & 0x80);                        \
}

Headerndis.h
Windows Embedded CEWindows CE .NET 4.0 and later

Community Additions

ADD
Show: