Esempio n. 1
0
        public static void WindowsReStyle()
        {
            Process[] Procs = Process.GetProcesses();
            foreach (Process proc in Procs)
            {
                if (proc.ProcessName.StartsWith(ConfigData.ProcessName))
                {
                    IntPtr pFoundWindow = proc.MainWindowHandle;
                    int    style        = CoreWindow.GetWindowLong(pFoundWindow, CoreWindow.GWL_STYLE);
                    CoreWindow.SetWindowLong(pFoundWindow, CoreWindow.GWL_STYLE, (style & ~CoreWindow.WS_CAPTION));

                    UiFoundProcess = true;
                }
            }
        }