https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7fafeb6390448aed9c435…
commit 7fafeb6390448aed9c435cf4baf2dd175fa2dc81
Author: Carl J. Bialorucki <cbialo2(a)outlook.com>
AuthorDate: Tue Jul 4 07:16:24 2023 -0600
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Jul 4 16:16:24 2023 +0300
[EXPLORER] Save taskbar position and locked state after reboot (#5393)
- Save locked state of the taskbar when toggled using its context menu.
- Save position of the taskbar after dragging it around the desktop.
- Invoke TRAYCMD_LOCK_TASKBAR command when (un)locking the taskbar
by the context menu, instead of duplicating this functionality.
CORE-11621 CORE-16997
---
base/shell/explorer/traywnd.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/base/shell/explorer/traywnd.cpp b/base/shell/explorer/traywnd.cpp
index 05d130b4c3d..542c71c1dd5 100644
--- a/base/shell/explorer/traywnd.cpp
+++ b/base/shell/explorer/traywnd.cpp
@@ -843,10 +843,7 @@ public:
break;
case ID_LOCKTASKBAR:
- if (SHRestricted(REST_CLASSICSHELL) == 0)
- {
- Lock(!g_TaskbarSettings.bLock);
- }
+ HandleCommand(TRAYCMD_LOCK_TASKBAR);
break;
case ID_SHELL_CMD_OPEN_TASKMGR:
@@ -1016,6 +1013,7 @@ public:
if (SHRestricted(REST_CLASSICSHELL) == 0)
{
Lock(!g_TaskbarSettings.bLock);
+ g_TaskbarSettings.Save();
}
break;
case TRAYCMD_HELP_AND_SUPPORT:
@@ -1609,6 +1607,8 @@ GetPrimaryScreenRect:
m_Monitor = m_DraggingMonitor;
m_Position = m_DraggingPosition;
+ g_TaskbarSettings.sr.Position = m_Position;
+ g_TaskbarSettings.Save();
IsDragging = FALSE;
m_TrayRects[m_Position] = rcTray;
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5ee97b95370cc1ad05d94…
commit 5ee97b95370cc1ad05d944206b51ad597f111ac8
Author: Joachim Henze <joachim.henze(a)reactos.org>
AuthorDate: Mon Jul 3 22:30:34 2023 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Jul 3 22:30:34 2023 +0200
[NETSTAT] -b flag implies -o flag on Windows XP/2003. CORE-19006 (#5377)
When calling 'netstat -abn'
Win 2k3sp2 and XPSP3 do show both: the processes name and the PID.
Contrary Win 7 and Win 8.1 would show only the process name then without the PID.
The newer Windows versions would require you to explicitly pass -o
if you want to see the PID also.
We do follow 2k3sp2 because it is our target. The process name is not of much use
without having the PID as well, especially if multiple processes with the
same name do run on a system, e.g.: multiple 'svchost.exe' processes.
Ros will automatically switch to the Win7-way when newer
Windows versions will be targeted at build-time.
---
base/applications/network/netstat/netstat.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/base/applications/network/netstat/netstat.c b/base/applications/network/netstat/netstat.c
index f9f05046d92..b3754fa2de1 100644
--- a/base/applications/network/netstat/netstat.c
+++ b/base/applications/network/netstat/netstat.c
@@ -98,6 +98,9 @@ BOOL ParseCmdline(int argc, wchar_t* argv[])
// UNIMPLEMENTED.
ConPuts(StdErr, L"'b' option is FIXME (Accepted option though unimplemented feature).\n");
bDoShowProcName = TRUE;
+#if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
+ bDoShowProcessId = TRUE;
+#endif
break;
case L'e':
bDoShowEthStats = TRUE;