@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The PfRemoveFiltersFromInterface function removes the specified filters from the interface. !!!!C# Signature: [DllImport("iphlpapi.dll", EntryPoint = "PfRemoveFiltersFromInterface")] static extern uint PfRemoveFiltersFromInterface(IntPtr ih, uint cInFilters, [MarshalAsAttribute(UnmanagedType.Struct)] ref PPF_FILTER_DESCRIPTOR pfiltIn, uint cOutFilters, [MarshalAsAttribute(UnmanagedType.Struct)] ref PPF_FILTER_DESCRIPTOR pfiltOut); !!!!VB Signature: Declare Function PfRemoveFiltersFromInterface Lib "iphlpapi.dll" (TODO) As TODO !!!!User-Defined Types: internal enum PFADDRESSTYPE : uint { PF_IPV4, PF_IPV6 } public enum FILTER_FLAGS : uint { FD_FLAGS = 0x1 } public enum PROTOCOL : uint { ANY = 0x00, ICMP = 0x01, TCP = 0x06, UDP = 0x11 } [StructLayout(LayoutKind.Sequential, Pack = 1)] internal unsafe struct PPF_FILTER_DESCRIPTOR { public FILTER_FLAGS dwFilterFlags; public UInt32 dwRule; public PFADDRESSTYPE pfatType; public UInt32* SrcAddr; public UInt32* SrcMask; public UInt32* DstAddr; public UInt32* DstMask; public PROTOCOL dwProtocol; public UInt32 fLateBound; public UInt16 wSrcPort; public UInt16 wDstPort; public UInt16 wSrcPortHighRange; public UInt16 wDstPortHighRange; } !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: /// <summary> /// The PfRemoveFiltersFromInterface function removes the specified filters from the interface. /// </summary> /// <param name="ih">[in] Handle to the interface.</param> /// <param name="cInFilters">[in] Specifies the number of input filter descriptions pointed to by the pfiltIn parameter.</param> /// <param name="pfiltIn">[in] Pointer to an array of filter descriptions to use as input filters.</param> /// <param name="cOutFilters">[in] Specifies the number of output filters descriptions pointed to by the pfiltOut parameter.</param> /// <param name="pfiltOut">[in] Pointer to an array of filter descriptions to use as output filters.</param> /// <returns>If the function succeeds, the return value is NO_ERROR.</returns> !!!!Tips & Tricks: Please add some! !!!!Sample Code: Please add some! Documentation: PfRemoveFiltersFromInterface@msdn on MSDN
Edit iphlpapi.PfRemove...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.