110,536
社区成员
发帖
与我相关
我的任务
分享
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr FindWindow(string className, string windowName);
IntPtr handle = FindWindow("#32769", null);
IntPtr handle = FindWindow("#32769 (桌面)", null);
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
public static extern IntPtr GetDesktopWindow();
IntPtr handle = GetDesktopWindow();