摘要: //调用 ListTitleHandle = new List<IntPtr>(); var r = EnumWindows(PrintWindow, "计算器"); //函数指针类型 delegate bool deleWindowsProc(IntPtr hWnd, string lParam) 阅读全文
posted @ 2020-11-24 20:48 -Ward- 阅读(3539) 评论(0) 推荐(0) 编辑
摘要: 参数为 Stream 如果实体: 参考: http://www.voidcn.com/article/p-ejufiyei-ud.html 阅读全文
posted @ 2019-04-30 16:48 -Ward- 阅读(182) 评论(0) 推荐(0) 编辑
摘要: work great for me in my web application with a little change it was not copying image to clipboard 阅读全文
posted @ 2019-04-04 17:38 -Ward- 阅读(372) 评论(0) 推荐(0) 编辑
摘要: These days, outlook emails are composed in three formats; plain text, html and rtf (rich text format). If an email is in rtf and it has attachments, as well as, embedded image or signature, it poses ... 阅读全文
posted @ 2019-04-04 15:28 -Ward- 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-31 01:35 -Ward- 阅读(193) 评论(0) 推荐(0) 编辑
摘要: %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a... 阅读全文
posted @ 2018-12-03 14:46 -Ward- 阅读(3815) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using HWND = System.IntPtr; using HANDLE = System.IntPtr; namespace Win32 { public struct DRAGINFO { public int uSize; p... 阅读全文
posted @ 2018-11-22 11:24 -Ward- 阅读(265) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Text; using HANDLE = System.IntPtr; using HWND = System.IntPtr; namespace Win32 { /// /// 时间结构体 Modify by Ward /// ... 阅读全文
posted @ 2018-11-22 10:53 -Ward- 阅读(309) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Text; using HANDLE = System.IntPtr; using HWND = System.IntPtr; using HDC = System.IntPtr; namespace Win32 { public struct RECT/... 阅读全文
posted @ 2018-11-22 10:50 -Ward- 阅读(175) 评论(0) 推荐(0) 编辑
摘要: void ActiveWin(IntPtr h) { IntPtr hForeWnd = GetForegroundWindow();//获取当前窗口句柄 int tIdCur = GetWindowThreadProcessId(hForeWnd, IntPtr.Zero);//获取当前窗口句柄的线程ID ... 阅读全文
posted @ 2018-11-14 18:35 -Ward- 阅读(474) 评论(0) 推荐(0) 编辑