Refresh Taskbar ((new)) -

private const uint WM_CLOSE = 0x0010; private const uint WM_QUIT = 0x0012;

[DllImport("user32.dll")] private static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId); refresh taskbar

private static void RestartShellComponents() { // Use Windows API to restart the shell try { // Start a new explorer instance (which will recreate the taskbar) Process.Start("explorer.exe"); } catch { } } private const uint WM_CLOSE = 0x0010; private const

Back
Top