您的位置:首页 > 编程语言 > C#

c# 调用 WINDOW API DLL

2016-01-12 09:58 190 查看
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);


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: