码迷,mamicode.com
首页 > Windows程序 > 详细

c# 调用 WINDOW API DLL

时间:2016-01-12 11:23:03      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

using System.Runtime.InteropServices;



 [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)]
        public static extern int MessageBox(int hWnd, String strMessage, String strCaption, uint uiType); 


//调用

  MessageBox(0, "您好,这是 PInvoke!", ".net", 0); 

  

c# 调用 WINDOW API DLL

标签:

原文地址:http://www.cnblogs.com/xh0626/p/5123404.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!