![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Windows API
Gary9529
Music
展开
-
C# 用SendMessage方法在写字板中输入内容的代码片段
private const int WM_SETTEXT = 0x000C;是一个常量'这里是用SendMessage方法在写字板中输入内容的代码片段:private const int WM_SETTEXT = 0x000C;[DllImport("user32.dll")]private static extern IntPtr FindWindow( string转载 2016-10-22 02:27:13 · 3643 阅读 · 0 评论 -
WPF 确保单实例运行。
using System;using System.Windows;using System.Runtime.InteropServices;// 添加 Window API 空间引用using System.Threading; // 添加全局进程 Mutex 对象的空间引用namespace G_Movie{ /// /// App.xaml 的交互逻辑原创 2018-01-04 22:39:55 · 1004 阅读 · 0 评论