Esempio n. 1
0
        private static IntPtr FindUninstallerOKButton(IntPtr UninstallerWindow)
        {
            Win32Utils w32 = new Win32Utils();
            IntPtr OKButton = IntPtr.Zero;
            while (OKButton == IntPtr.Zero)
            {
                OKButton = w32.SearchForChildWindow(UninstallerWindow, "&OK");
                System.Threading.Thread.Sleep(500);
            }

            return OKButton;
        }
Esempio n. 2
0
        private static IntPtr FindUninstallerOKButton(IntPtr UninstallerWindow)
        {
            Win32Utils w32      = new Win32Utils();
            IntPtr     OKButton = IntPtr.Zero;

            while (OKButton == IntPtr.Zero)
            {
                OKButton = w32.SearchForChildWindow(UninstallerWindow, "&OK");
                System.Threading.Thread.Sleep(500);
            }

            return(OKButton);
        }
Esempio n. 3
0
        private static IntPtr FindUninstallerOkButton(IntPtr uninstallerWindow)
        {
            var w32      = new Win32Utils();
            var okButton = IntPtr.Zero;

            while (okButton == IntPtr.Zero)
            {
                okButton = w32.SearchForChildWindow(uninstallerWindow, "&OK");
                Thread.Sleep(500);
            }

            return(okButton);
        }