filter.h
资源名称:passthru.rar [点击查看]
上传用户:sabrinaco
上传日期:2016-01-19
资源大小:3177k
文件大小:1k
源码类别:
防火墙与安全工具
开发平台:
Visual C++
- //#ifndef __filter__H
- //#define __filter__H
- typedef struct _OPEN_CONTEXT
- {
- ULONG RefCount;
- NDIS_SPIN_LOCK Lock;
- BOOLEAN bAdapterClosed;
- PADAPT pAdapt;
- // 下面3个为的是处理Oid请求
- NDIS_REQUEST Request;
- NDIS_STATUS RequestStatus;
- NDIS_EVENT RequestEvent;
- ULONG FilterReserved[16];
- } OPEN_CONTEXT, *POPEN_CONTEXT;
- NDIS_STATUS Filter(IN PVOID HeaderBuffer,IN UINT PacketSize, IN UINT HeaderBufferSize,IN PVOID LookAheadBuffer);
- NDIS_STATUS GetBindingList(IN PVOID Buffer,IN ULONG Length, IN OUT PULONG DataLength);
- PADAPT LookupAdaptByName(PUCHAR pNameBuffer, ULONG nNameLength);
- VOID PtRefAdapter(PADAPT pAdapt);
- VOID PtDerefAdapter(PADAPT pAdapt);
- POPEN_CONTEXT DevAllocateOpenContext(PADAPT pAdapt);
- VOID DevDerefOpenContext(POPEN_CONTEXT pOpenContext);
- VOID DevRequestComplete(PADAPT pAdapt, PNDIS_REQUEST NdisRequest,NDIS_STATUS Status);
- VOID DevRefOpenContext(POPEN_CONTEXT pOpenContext);
- //#endif