Tag: opened

C

Refresh all opened Windows Explorer windows

Refresh (F5) all opened Windows Explorer windows with the following code. Useful if you have just hide extensions programmatically. HWND hwnd = FindWindowEx(NULL, NULL, "CabinetWClass", NULL); while(hwnd != NULL) { PostMessage(hwnd, WM_COMMAND, 41504, 0); hwnd = FindWindowEx(NULL, hwnd, "CabinetWClass", NULL); }HWND hwnd = FindWindowEx(NULL, NULL, "CabinetWClass", NULL); while(hwnd != NULL) { PostMessage(hwnd, WM_COMMAND, 41504, 0); …

Linux, Monitor, Network

Monitoring Opened TCP/IP network ports/connections in Linux

tcptrack displays the status of TCP connections that it sees on a given network interface. tcptrack monitors their state and displays information such as state, source/destination addresses and bandwidth usage in a sorted, updated list very much like the top command. The filter expression is a standard pcap filter expression (identical to the expressions used …

Monitor, Network

Monitoring Opened TCP/IP network ports / connections

CurrPorts is network monitoring software that displays the list of all currently opened TCP/IP and UDP ports on your local computer. For each port in the list, information about the process that opened the port is also displayed, including the process name, full path of the process, version information of the process (product name, file …

C#

Get all opened windows in C#

With the following code you can get all opened windows for the current user. public void GetOpenWindows() { IntPtr hwnd; try { foreach (System.Diagnostics.Process proc in System.Diagnostics.Process.GetProcesses()) if ((hwnd = proc.MainWindowHandle) != IntPtr.Zero) Console.WriteLine(hwnd.ToString() + " " + proc.MainWindowTitle); } catch (Exception) { } }public void GetOpenWindows() { IntPtr hwnd; try { foreach (System.Diagnostics.Process proc …

C#

Get a list of opened windows C#

With the following method you can list all opened windows using C#. public void ListOpenedWindows() { IntPtr hwnd; foreach (System.Diagnostics.Process proc in System.Diagnostics.Process.GetProcesses()) { if ((hwnd = proc.MainWindowHandle) != IntPtr.Zero) Console.WriteLine(hwnd.ToString() + " " + proc.MainWindowTitle); } }public void ListOpenedWindows() { IntPtr hwnd; foreach (System.Diagnostics.Process proc in System.Diagnostics.Process.GetProcesses()) { if ((hwnd = proc.MainWindowHandle) != IntPtr.Zero) …