首页 > Windows开发 > 详细

c# 调用 WINDOW API DLL

时间:2016-01-12 11:21:29      阅读:151      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!