コード例 #1
0
ファイル: WindowControl.cs プロジェクト: r12f/PSPlus
 public WindowControl GetActiveWindow()
 {
     using (AttachThreadInputScope scope = new AttachThreadInputScope(GetWindowThreadID()))
     {
         return(new WindowControl(User32APIs.GetActiveWindow()));
     }
 }