摘要: 在window服务中抓取窗体是做不到的,因为window系统的session隔离机制;如果想要调用外部程序,可以通过 创建代理进程 进行操作(通过非托管代码CreateProcessAsUser函数进行session穿透) 阅读全文
posted @ 2018-09-28 18:50 風飄絮℃ 阅读(314) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取窗口句柄 /// /// /// 窗口标题 /// [DllImport("user32.dll", EntryPoint = "FindWindow")] private extern static IntPtr FindWindow(st... 阅读全文
posted @ 2018-09-21 18:04 風飄絮℃ 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 服务使用Process启动外部程序没窗体 在WinXP和Win2003环境中,安装服务后,右键单击服务“属性”-“登录”选项卡-选择“本地系统帐户”并勾选“允许服务与桌面交互”即可. 在Win7及以后的环境中,由于微软加强了权限管理,将此功能禁用,需要引用第三方dll (Cjwdev.Windows 阅读全文
posted @ 2018-08-31 18:51 風飄絮℃ 阅读(699) 评论(0) 推荐(0) 编辑
摘要: #region Process //声明一个程序类 System.Diagnostics.Process Proc; try { //声明一个程序信息类 System.Diagnostics.ProcessStar... 阅读全文
posted @ 2018-08-30 17:38 風飄絮℃ 阅读(337) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net.NetworkInformation; using System.Text; using System.Threading.Tasks; namespace ConsoleAp... 阅读全文
posted @ 2018-08-27 18:06 風飄絮℃ 阅读(302) 评论(0) 推荐(0) 编辑
摘要: public void BulkData(string TableName, DataTable dt) { using (SqlConnection con = new SqlConnection(strConnectString)) { SqlBulkCopy sbk = new ... 阅读全文
posted @ 2018-08-26 21:47 風飄絮℃ 阅读(87) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; /// /// WebService 的摘要说明 /// [WebService(Namesp... 阅读全文
posted @ 2018-08-26 18:55 風飄絮℃ 阅读(866) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Library { /// <sum 阅读全文
posted @ 2018-08-26 18:09 風飄絮℃ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 利用Master库spt_values表 连续数字,产生相应的连续数据,进行与其他数据集关联,补充相应的空缺数据。 阅读全文
posted @ 2018-08-02 16:54 風飄絮℃ 阅读(231) 评论(0) 推荐(0) 编辑