Hello programmers !
in passthru sample in WDK i found following codes in protocol.c in line of 1241
//
// Set Packet Flags
//
NdisGetPacketFlags(MyPacket) = NdisGetPacketFlags(Packet);
i see that two side of equivalence use same function !!
can u explain me the reason ?
> //
// Set Packet Flags
//
NdisGetPacketFlags(MyPacket) = NdisGetPacketFlags(Packet);
i see that two side of equivalence use same function !!
can u explain me the reason ?
NdisGetPacketFlags is a macro:
#define NdisGetPacketFlags(_Packet) ((_Packet)->Private.Flags)
So your statement reduces to:
MyPacket->Private.Flags = Packet->Private.Flags;
James
thanks a lot
why he didn’t use NdisSetPacketFlags !
i guess these codes is equal ! yeah ?
VOID
NdisSetPacketFlags(
IN PNDIS_PACKET Packet,
IN UINT Flags
);