WindowContainer.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowCaptureDemo
{
class WindowContainer
{
EventHandler appIdleEvent = null;
Control ParentCon = null;
string strGUID = "";
Process m_AppProcess = null;
#region 常量
private const int SWP_NOOWNERZORDER = 0x200;
private const int SWP_NOREDRAW = 0x8;
private const int SWP_NOZORDER = 0x4;
private const int SWP_SHOWWINDOW = 0x0040;
private const int WS_EX_MDICHILD = 0x40;
private const int SWP_FRAMECHANGED = 0x20;
private const int SWP_NOACTIVATE = 0x10;
private const int SWP_ASYNCWINDOWPOS = 0x4000;
private const int SWP_NOMOVE = 0x2;
private const int SWP_NOSIZE = 0x1;
private const int GWL_STYLE = (-16);
private const int WS_VISIBLE = 0x10000000;
private const int WM_CLOSE = 0x10;
private const int WS_CHILD = 0x40000000;
private const int SW_HIDE = 0; //{隐藏, 并且任务栏也没有最小化图标}
private const int SW_SHOWNORMAL = 1; //{用最近的大小和位置显示, 激活}
private const int SW_NORMAL = 1; //{同 SW_SHOWNORMAL}
private const int SW_SHOWMINIMIZED = 2; //{最小化, 激活}
private const int SW_SHOWMAXIMIZED = 3; //{最大化, 激活}
private const int SW_MAXIMIZE = 3; //{同 SW_SHOWMAXIMIZED}
private const int SW_SHOWNOACTIVATE = 4; //{用最近的大小和位置显示, 不激活}
private const int SW_SHOW = 5; //{同 SW_SHOWNORMAL}
private const int SW_MINIMIZE = 6; //{最小化, 不激活}
private const int SW_SHOWMINNOACTIVE = 7; //{同 SW_MINIMIZE}
private const int SW_SHOWNA = 8; //{同 SW_SHOWNOACTIVATE}
private const int SW_RESTORE = 9; //{同 SW_SHOWNORMAL}
private const int SW_SHOWDEFAULT = 10; //{同 SW_SHOWNORMAL}
private const int SW_MAX = 10; //{同 SW_SHOWNORMAL}
const int WM_SETTEXT = 0x000C;
#endregion
public WindowContainer(Control control, string title)
{
appIdleEvent = new EventHandler(Application_Idle);
ParentCon = control;
strGUID = title;
后面还有 139 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。