Beispiel #1
0
 public static WindowSnapCollection GetAllWindows(bool minimized, bool specialCapturring)
 {
     WindowSnap.windowSnaps           = new WindowSnapCollection();
     WindowSnap.countMinimizedWindows = minimized;
     WindowSnap.useSpecialCapturing   = specialCapturring;
     WindowSnap.EnumWindowsCallbackHandler enumWindowsCallbackHandler = new WindowSnap.EnumWindowsCallbackHandler(WindowSnap.EnumWindowsCallback);
     WindowSnap.EnumWindows(enumWindowsCallbackHandler, IntPtr.Zero);
     return(new WindowSnapCollection(WindowSnap.windowSnaps.ToArray(), true));
 }
Beispiel #2
0
        /// <summary>
        /// Get the collection of WindowSnap instances fro all available windows
        /// </summary>
        /// <param name="minimized">Capture a window even it's Minimized</param>
        /// <param name="specialCapturring">use special capturing method to capture minmized windows</param>
        /// <returns>return collections of WindowSnap instances</returns>
        public static WindowSnapCollection GetAllWindows(bool minimized, bool specialCapturring)
        {
            windowSnaps           = new WindowSnapCollection();
            countMinimizedWindows = minimized;         //set minimized flag capture
            useSpecialCapturing   = specialCapturring; //set specialcapturing flag

            EnumWindowsCallbackHandler callback = new EnumWindowsCallbackHandler(EnumWindowsCallback);

            EnumWindows(callback, IntPtr.Zero);

            return(new WindowSnapCollection(windowSnaps.ToArray(), true));
        }
Beispiel #3
0
        public WindowSnapCollection GetAllMinimized()
        {
            WindowSnapCollection wsCol = (WindowSnapCollection)base.FindAll(IsMinimizedPredict);

            return(wsCol);
        }