I Use Vista .
When I call PfCreateInterfa ce(...) It Return error 120.
Can any body help me?
When I call PfCreateInterfa ce(...) It Return error 120.
Can any body help me?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace firewall
{
class Program
{
static void Main(string[] args)
{
IntPtr ppInterface=new IntPtr();
int Result=PfCreateInterface(0,0,0,true,true ,ref ppInterface );
Console.WriteLine(Result.ToString());
Console.ReadKey();
}
[System.Runtime.InteropServices.DllImport("iphlpapi.dll")]
public static extern int PfCreateInterface( uint dwName,
uint inAction,
uint outAction,
bool bUseLog,
bool bMustBeUnique,
ref IntPtr ppInterface );
}
}
Comment