在C#中用WinAPI

来源:互联网 发布:linux gradle 打包 编辑:程序博客网 时间:2024/05/17 06:19

例如:



[System.Runtime.InteropServices.DllImport("user32")]
private static extern bool AnimateWindow(IntPtr hwnd,int dwTime, int dwFlags);



[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wparam, int lparam);