コード例 #1
0
        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);
        }
コード例 #2
0
 private static extern uint GetIfEntry([In, Out] ref MIB_IFROW Row);