Esempio n. 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
Esempio n. 2
0
        private static void GetWindowHandles(int procId, List <IntPtr> handles)
        {
            _handles = handles;
            WindowEnumDelegate pEnumWindowCallback = new WindowEnumDelegate(ProcessItem.WindowEnumProc);

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

            EnumChildWindows(handle, del, 0);
        }
Esempio n. 5
0
 public static extern int EnumWindows(WindowEnumDelegate del, int lParam);
Esempio n. 6
0
 public static extern int EnumChildWindows(IntPtr hwnd, WindowEnumDelegate del, int lParam);
Esempio n. 7
0
 private static extern int EnumChildWindows(IntPtr hWnd, WindowEnumDelegate pEnumWindowCallback, int iLParam);
Esempio n. 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);
 }
Esempio n. 10
0
        public void Init()
        {
            WindowEnumDelegate del = new WindowEnumDelegate(WindowEnumProc);

            // call the win32 function
            EnumChildWindows(_axControl.Handle, del, 0);
        }
Esempio n. 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;
 }
Esempio n. 12
0
 public static extern int EnumWindows(WindowEnumDelegate del, int lParam);
Esempio n. 13
0
 private static extern bool EnumWindows(WindowEnumDelegate lpEnumFunc, int lParam);