コード例 #1
0
ファイル: EnumWindows.cs プロジェクト: ErtyHackward/livedc
 /// <summary>
 /// Gets all top level windows on the system.
 /// </summary>
 public void GetWindows()
 {
     this.items = new EnumWindowsCollection();
     UnManagedMethods.EnumWindows(
         new EnumWindowsProc(this.WindowEnum),
         0);
 }
コード例 #2
0
ファイル: EnumWindows.cs プロジェクト: ErtyHackward/livedc
 /// <summary>
 /// Gets all child windows of the specified window
 /// </summary>
 /// <param name="hWndParent">Window Handle to get children for</param>
 public void GetWindows(
     IntPtr hWndParent)
 {
     this.items = new EnumWindowsCollection();
     UnManagedMethods.EnumChildWindows(
         hWndParent,
         new EnumWindowsProc(this.WindowEnum),
         0);
 }