分享

成功访问库函数

 北方天空A 2020-06-08

namespace WebApplication1.function1.kuhanshu

{

    class mmm

    {

         [DllImport("user32.dll", EntryPoint = "MessageBoxA")]

        public static extern int MsgBox(int hWnd, string msg, string caption, int type);

    }

    public partial class call1 : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

            mmm.MsgBox(0, " 调用库函数弹出消息框! ", " 库函数调用 ", 0x30);

        }

    }

}

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多