コード例 #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;
        }
コード例 #2
0
ファイル: ManagedFuncs.cs プロジェクト: swsmile/SharpProxy
        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;
        }