电子灵魂

golang,go,C#,JAVA,PYTHON,PHP

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;  //引用系统调用

namespace win32_Api
{
    class Program
    {
        [DllImport("user32.dll")]  //调用内核插件
        public static extern int MessageBox(int h, string m, string c, int type); //属性设置

        static void Main(string[] args)
        {

            MessageBox(0, "Hello win32 API", "title", 4); //对应属性中的4个参数 h=0,hello..=m,title=c,type=4
            Console.ReadLine();
            
        }
    }
}
posted on 2015-04-29 10:33  conncent  阅读(448)  评论(0编辑  收藏  举报