110,572
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Web;
using System.Web.UI;
using System.Runtime.InteropServices;
public partial class _Default : System.Web.UI.Page
{
[DllImport("kernel32.dll")]
public static extern int WinExec(string exeName, int operType);
protected void Button1_Click(object sender, EventArgs e)
{
WinExec(@"c:\windows\system32\notepad.exe", 5);
}
}
[DllImport("xxx.dll", EntryPoint = "addsum", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void addsum(int a, int b);