提交记录修改Core/Librarys/Win32API.cs+7 −0看文件
| @@ -13,6 +13,8 @@ namespace Core.Librarys | ||
| 13 | 13 | { |
| 14 | 14 | [DllImport("user32.dll")] |
| 15 | 15 | public static extern IntPtr GetForegroundWindow(); |
| 16 | 新增: [DllImport("user32.dll")] | |
| 17 | 新增: public static extern IntPtr SetForegroundWindow(IntPtr hwnd); | |
| 16 | 18 | public delegate void WinEventDelegate(IntPtr hWinEventHook, uint eventType, |
| 17 | 19 | IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime); |
| 18 | 20 | [DllImport("user32.dll")] |
| @@ -305,5 +307,10 @@ namespace Core.Librarys | ||
| 305 | 307 | } |
| 306 | 308 | |
| 307 | 309 | #endregion |
| 310 | 新增: | |
| 311 | 新增: [DllImport("user32.dll", CharSet = CharSet.Auto)] | |
| 312 | 新增: public static extern int GetWindowTextLength(IntPtr hWnd); | |
| 313 | 新增: [DllImport("user32.dll", CharSet = CharSet.Auto)] | |
| 314 | 新增: public static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount); | |
| 308 | 315 | } |
| 309 | 316 | } |

