窗体移动 //窗体移动API [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(I ...
分类:
移动开发 时间:
2017-04-25 10:21:35
阅读次数:
200
以下VB6代码无效: 但以下C#代码却非常管用: 哪位知道原因,还望不吝赐教。 ...
分类:
其他好文 时间:
2017-04-22 14:46:42
阅读次数:
966
public static uint SND_ASYNC = 0x0001; public static uint SND_FILENAME = 0x00020000; [DllImport("winmm.dll")] public static extern uint mciSendString(... ...
1 [DllImport("libufun.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "UF_MODL_create_proj_curves")] 2 interna... ...
分类:
其他好文 时间:
2017-04-07 13:19:16
阅读次数:
488
[System.Runtime.InteropServices.DllImport("user32.dll")] static extern int PostMessageA(IntPtr h, int msg, int wp, int lp); void 文本_投递(IntPtr h,string... ...
分类:
编程语言 时间:
2017-03-25 15:48:11
阅读次数:
319
给游览器写入Cookie class Program { /// /// 写 /// /// /// /// /// [DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)] ... ...
Windows API是对Windows操作系统的API函数,在C#中调用Windows API的实质是托管代码对非托管代码的调用。 主要使用的格式就是: 其中的Beep就是Win API的调用,使用[DllImport("kernel32")]属性进行调用。 这个函数在MSDN中的原本定义是: 我 ...
public partial class Form1 : Form { [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] private static extern IntPtr CreateRoundRectRgn ( int ... ...
分类:
其他好文 时间:
2017-03-14 19:23:22
阅读次数:
214
[DllImport("User32.dll")] public static extern bool PtInRect(ref Rectangle Rects, Point lpPoint); private void timerShowHide_Tick(object sender, Event... ...
#region 得到光标在屏幕上的位置 [DllImport("user32")] public static extern bool GetCaretPos(out Point lpPoint); [DllImport("user32.dll")] private static extern In ...
分类:
其他好文 时间:
2017-03-14 10:37:54
阅读次数:
172