Ejemplo n.º 1
0
        public static UInt32 CreateIpNetEntry(IPNetRow netRow)
        {
            throw new NotImplementedException("Not yet implemented!");
            //var data = netRow.GetIpNetRowStructure();
            //var pointer = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Win32Funcs.IpNetRow)));
            //Console.WriteLine(Marshal.SizeOf(typeof (Win32Funcs.IpNetRow)).ToString());
            //try
            //{
            //    Marshal.StructureToPtr(data, pointer, false);

            //}
            //catch (Exception)
            //{
            //    //throw new Exception("Operation Failed, Error Code : " + returnValue);
            //}
            //Console.WriteLine(pointer.ToString());
            //var returnValue =  Win32Funcs.CreateIpNetEntry(pointer);
            //return returnValue;
        }
Ejemplo n.º 2
0
        public static UInt32 CreateIpNetEntry(IPNetRow netRow)
        {
            throw new NotImplementedException("Not yet implemented!");
            //var data = netRow.GetIpNetRowStructure();
            //var pointer = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Win32Funcs.IpNetRow)));
            //Console.WriteLine(Marshal.SizeOf(typeof (Win32Funcs.IpNetRow)).ToString());
            //try
            //{
            //    Marshal.StructureToPtr(data, pointer, false);

            //}
            //catch (Exception)
            //{
            //    //throw new Exception("Operation Failed, Error Code : " + returnValue);
            //}
            //Console.WriteLine(pointer.ToString());
            //var returnValue =  Win32Funcs.CreateIpNetEntry(pointer);
            //return returnValue;
        }