Example #1
0
        public static void EnumChildWindows(HWND hWndParent, string title)
        {
            System.Diagnostics.Trace.WriteLine("======================" + title + "=====================");
            WindowEnumDelegate del = new WindowEnumDelegate(WindowEnumProc);

            EnumChildWindows(hWndParent, del, 0);
        }//end EnumChildWindows
Example #2
0
        private static void GetWindowHandles(int procId, List <IntPtr> handles)
        {
            _handles = handles;
            WindowEnumDelegate pEnumWindowCallback = new WindowEnumDelegate(ProcessItem.WindowEnumProc);

            EnumChildWindows(IntPtr.Zero, pEnumWindowCallback, procId);
        }
Example #3
0
 public static extern int EnumChildWindows(IntPtr hwnd, WindowEnumDelegate del, int lParam);
Example #4
0
        // Enumerates a specified window (specified by handle)
        public void enumerate(IntPtr handle)
        {
            WindowEnumDelegate del = new WindowEnumDelegate(WindowEnumProc);

            EnumChildWindows(handle, del, 0);
        }
Example #5
0
 public static extern int EnumWindows(WindowEnumDelegate del, int lParam);
Example #6
0
 public static extern int EnumChildWindows(IntPtr hwnd, WindowEnumDelegate del, int lParam);
Example #7
0
 private static extern int EnumChildWindows(IntPtr hWnd, WindowEnumDelegate pEnumWindowCallback, int iLParam);
Example #8
0
 public static extern int EnumChildWindows(
     HWND hWndParent,                // handle to parent window
     WindowEnumDelegate lpEnumFunc,  // pointer to callback function
     int lParam                      // application-defined value
     );
 // Enumerates a specified window (specified by handle)
 public void enumerate(IntPtr handle)
 {
     WindowEnumDelegate del = new WindowEnumDelegate(WindowEnumProc);
     EnumChildWindows(handle, del, 0);
 }
Example #10
0
        public void Init()
        {
            WindowEnumDelegate del = new WindowEnumDelegate(WindowEnumProc);

            // call the win32 function
            EnumChildWindows(_axControl.Handle, del, 0);
        }
Example #11
0
 private bool Attach()
 {
     if (_inspectorHandle != IntPtr.Zero)
     {
         var del = new WindowEnumDelegate(WindowEnumProc);
         EnumChildWindows(_inspectorHandle, del, 0);
         if (_sendHandle != IntPtr.Zero)
         {
             
             return AssignHandle();
         }
     }
     return false;
 }
Example #12
0
 public static extern int EnumWindows(WindowEnumDelegate del, int lParam);
Example #13
0
 private static extern bool EnumWindows(WindowEnumDelegate lpEnumFunc, int lParam);