setting of NDIS OID's Problem?

Hi All,
As we are implementing NDIS Miniport Driver for WindowsNT,we were in confusion as how to set the information for

SetInformation for OID’s from Protocol Driver.so could anyone can give us some hints or some Source of where we get the

information required for us,how to set the information for each particular case.

Like for example i got this from sample from DDK of NE2300,as follows

PAFCP_ADAPTER Adapter = (PAFCP_ADAPTER)MiniportAdapterContext;
UINT BytesLeft = InformationBufferLength;
PUCHAR InfoBuffer = (PUCHAR)(InformationBuffer);
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
UINT OidLength = BytesLeft;
ULONG LookAhead;
ULONG Filter;

case OID_802_3_MULTICAST_LIST:

if (BytesRead == NULL || BytesNeeded == NULL)
return NDIS_STATUS_INVALID_DATA;
//
// Verify length
//
if ((OidLength % AFCP_LENGTH_OF_ADDRESS) != 0){
Status = NDIS_STATUS_INVALID_LENGTH;
*BytesRead = 0;
*BytesNeeded = 0;
break;
}

Status = NDIS_STATUS_SUCCESS;
break;

This(NE2300) is one which we are referring for implementation of our driver,but when doing the implementatoin for OID’s,like setting these values we couldn’t understand what exactly we should set & what to do?

So can anyone guide us to a proper way of understanding this?

Thanks in advance…

With Regards,
Vishwanath M.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com