public static MIB_IFROW GetIfEntry(Guid InterfaceGuid) { MIB_IFROW pIfRow = new MIB_IFROW(); ConvertInterfaceGuidToLuid(ref InterfaceGuid, out NET_LUID NetLUID); ConvertInterfaceLuidToIndex(ref NetLUID, out uint InterfaceIndex); pIfRow.dwIndex = InterfaceIndex; uint result = GetIfEntry(ref pIfRow); if (result != 0) { Trace.WriteLine("GetIfEntry"); } PrintErrorResult(result); return(pIfRow); }
private static extern uint GetIfEntry([In, Out] ref MIB_IFROW Row);