예제 #1
0
파일: UI.cs 프로젝트: Avinash-acid/saveenr
        public static System.Collections.ArrayList Window_GetTopLevelWindows( )
        {
            WindowEnumCollector collector = new WindowEnumCollector();

            WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback);
            WindowsAutomation.win32.EnumWindows(myCallBack, 0);
            return(collector.hwnds);
        }
예제 #2
0
파일: UI.cs 프로젝트: Avinash-acid/saveenr
        public static System.Collections.ArrayList Window_GetChildWindows(int parent_hwnd)
        {
            WindowEnumCollector collector = new WindowEnumCollector();

            WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback);
            WindowsAutomation.win32.EnumChildWindows(parent_hwnd, myCallBack, 0);
            return(collector.hwnds);
        }
예제 #3
0
        public static System.Collections.Generic.List <int> Window_GetDirectChildWindows(int parent_hwnd)
        {
            WindowEnumCollectorWithParent collector = new WindowEnumCollectorWithParent(parent_hwnd);

            WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback);
            WindowsAutomation.win32.EnumChildWindows(parent_hwnd, myCallBack, 0);
            return(collector.hwnds);
        }
예제 #4
0
        public static System.Collections.Generic.List <int> Window_FindChildWindowsEx(int parent, int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id)
        {
            WindowCollectorEx collector = new WindowCollectorEx(parent, 0, wind_class, wind_text, wind_text_raw, 0);

            WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback);
            WindowsAutomation.win32.EnumChildWindows(parent, myCallBack, 0);

            return(collector.hwnds);
        }
예제 #5
0
파일: UI.cs 프로젝트: Avinash-acid/saveenr
        public static int Window_FindChildWindowEx(int parent, int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id)
        {
            WindowCollectorEx collector = new WindowCollectorEx(parent, 0, wind_class, wind_text, wind_text_raw, 0);

            WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback);
            WindowsAutomation.win32.EnumChildWindows(parent, myCallBack, 0);

            if (collector.hwnds.Count > 0)
            {
                return((int)collector.hwnds[0]);
            }
            else
            {
                return(0);
            }
        }
예제 #6
0
파일: UI.cs 프로젝트: saveenr/saveenr
		public static int Window_FindChildWindowEx( int parent , int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id )
		{
			WindowCollectorEx collector = new WindowCollectorEx( parent, 0, wind_class, wind_text, wind_text_raw, 0 ); 
			WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback );
			WindowsAutomation.win32.EnumChildWindows( parent, myCallBack , 0);

			if ( collector.hwnds.Count>0 )
			{
				return (int) collector.hwnds[0];
			}
			else
			{
				return 0;
			}
		}
예제 #7
0
파일: UI.cs 프로젝트: saveenr/saveenr
		public static System.Collections.Generic.List<int> Window_FindChildWindowsEx(int parent, int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id)
		{
			WindowCollectorEx collector = new WindowCollectorEx(parent, 0, wind_class, wind_text, wind_text_raw, 0);
			WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback);
			WindowsAutomation.win32.EnumChildWindows(parent, myCallBack, 0);

			return collector.hwnds;

		}
예제 #8
0
파일: UI.cs 프로젝트: saveenr/saveenr
        public static System.Collections.Generic.List<int> Window_GetChildWindows(int parent_hwnd)
        {
			WindowEnumCollector collector = new WindowEnumCollector(); 
			WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback );
			WindowsAutomation.win32.EnumChildWindows( parent_hwnd,  myCallBack , 0);
			return ( collector.hwnds ) ;
		}
예제 #9
0
파일: UI.cs 프로젝트: saveenr/saveenr
        public static System.Collections.Generic.List<int> Window_GetTopLevelWindows()
        {
			WindowEnumCollector collector = new WindowEnumCollector(); 
			WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback );
			WindowsAutomation.win32.EnumWindows( myCallBack, 0 );
			return ( collector.hwnds ) ;
		}
예제 #10
0
파일: UI.cs 프로젝트: saveenr/saveenr
		public static System.Collections.ArrayList Window_GetDirectChildWindows( int parent_hwnd ) 
		{
			WindowEnumCollectorWithParent collector = new WindowEnumCollectorWithParent( parent_hwnd ); 
			WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback );
			WindowsAutomation.win32.EnumChildWindows( parent_hwnd,  myCallBack , 0);
			return ( collector.hwnds ) ;
		}