阅读:1456回复:4
关于passthru的问题
passthru中ADAPT类型可以随便修改么?
我想获得在PtReceive中的用来分配Packet中的所有buffer的bufferpool句柄。不知道怎么办 请各位给些帮助 |
|
|
沙发#
发布于:2003-12-17 15:05
是可以修改的吧,我看了IMSAMP的例子它的Adapter就和Passthru的不一样啊。
typedef struct _ADAPTER { LIST_ENTRY Linkage; STRUCT_TAG; NDIS_SPIN_LOCK Lock; LONG RefCount; NDIS_STRING VirtualAdapterName; NDIS_STRING LowerAdapterName; ULONG Closing; ULONG ShutdownMask; ULONG IMMPState; USHORT DevInstance; ULONG MacOptions; NDIS_HANDLE IMNdisHandle; NDIS_EVENT BlockingEvent; NDIS_STATUS FinalStatus; NDIS_HANDLE PacketPoolHandle; SLIST_HEADER PacketSList; NDIS_SPIN_LOCK PacketSListLock; NDIS_HANDLE BufferPoolHandle; SLIST_HEADER BufferSList; NDIS_SPIN_LOCK BufferSListLock; ULONG LookaheadBufferSize; NDIS_HANDLE ResidualBufferPoolHandle; NDIS_HANDLE LowerMPHandle; NDIS_HANDLE BindContext; NDIS_MEDIUM MediaType; union _MEDIA_DATA { struct ETH_DATA { NDIS_STATUS nAddrQueryStatus; UCHAR AdapterAddress[ETH_LENGTH_OF_ADDRESS]; } ETH_DATA; struct _TR_DATA { NDIS_STATUS nAddrQueryStatus; UCHAR AdapterAddress[TR_LENGTH_OF_ADDRESS]; } TR_DATA; struct _FDDI_DATA { NDIS_STATUS nAddrLongQueryStatus; NDIS_STATUS nAddrShortQueryStatus; UCHAR AdapterLongAddress[FDDI_LENGTH_OF_LONG_ADDRESS]; UCHAR AdapterShortAddress[FDDI_LENGTH_OF_SHORT_ADDRESS]; } FDDI_DATA; } MEDIA_DATA; ULONG LinkSpeed; ULONG MacHeaderSize; ULONG FrameSize; ULONG TotalSize; IM_ADAPTER_STATS Stats; LIST_ENTRY PendingReceiveList; NDIS_SPIN_LOCK PendingReceiveListLock; LIST_ENTRY W32NOpenList; NDIS_SPIN_LOCK W32NOpenListSpinLock; NDIS_SPIN_LOCK RcvLock; BOOLEAN bInRcvDpc; } ADAPTER, *PADAPTER; 里面就有bufferpoolhandle. |
|
板凳#
发布于:2003-12-17 15:45
不是一回事吧?!
|
|
|
地板#
发布于:2003-12-17 20:39
是自己定义,自己分配的。当然可以自己修改了。
|
|
地下室#
发布于:2003-12-18 17:04
结构是自己建立的,
自己调用,自己修改 |
|
|