请说的具体一些。
解决方案 »
- 关于图片转换的问题
- 邮件发送代码,要的进
- 求问:SqlDataAdapter查询出现“超时时间已到。。。。”错误
- 跪求 注册cdosys.dll失败的解决方法 在线等 急啊!!!
- 服务的启动问题???
- .net的核心技术??
- 二进制读取存储问题(结决问题后马上结贴)
- 通过c#创建windows用户,可下面的代码执行正确的,但是没有创建用户!请高手帮忙,解决了200相送,不够可以在加
- 2005.net c# datagridview 行校验不正常
- 怎么更改键盘输入光标的形状?
- 在C#的OWC编程中怎么把记录集数据赋给数据透视表,类型要怎么样转换!
- OWC中怎么样把XML文件(如data.xml)的数据传给数据透视表(PivotTable),分不够再加 。
http://community.csdn.net/Expert/topic/3738/3738340.xml?temp=.4684107
[DllImport("Iphlpapi.dll")]
public static extern int SendARP(Int32 dest,Int32 host,ref IntPtr mac,ref IntPtr length);
[DllImport("Ws2_32.dll")]
public static extern Int32 inet_addr(string ip);
}//调用dll的类 void mac()
{
Int32 ldest= Win32.inet_addr(Request.UserHostAddress);//目的地的ip
Int32 lhost=Win32.inet_addr("190.10.51.5");//本地的ip
try
{
Byte[] macinfo=new Byte[6];
Int32 length=6;
IntPtr mac=new IntPtr(macinfo[0]);
IntPtr len=new IntPtr(6);
int ii=Win32.SendARP(ldest,lhost, ref mac, ref len);
ip+="**mac地址:"+mac.ToString();
}
catch(Exception err)
{
ip+="";
}
}//mac