Replies: 2 comments 4 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been trying to implement this in my own fork by studying your code.
to I can add the option to settings:
I can see how to then reference this in dllmain.c and I can run systray.exe but cannot quite work out how to toggle the non boolean dword data for "Services" and enforce it (if modded) at PC restart. I have been looking to modify code that does a similar changing of registry data in dllmain.c but cannot get it to work, is it possible to point me towards the best code in there to adapt or give me a code snippet if you don't actually do this in the existing code? |
Beta Was this translation helpful? Give feedback.
-
In a quest to reduce the number of unused or unnecessary icons in the system tray I recently found this article.
Changing a registry value and running the systray.exe file to refresh the setting can completely remove (not hide) the Safely Remove Hardware icon.
The registry value will revert back to default when you restart. So you can reset the registry value and run systray when Windows is booted up.
You can use this batch file run at startup:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\SysTray" /v "Services" /t reg_dword /d 29 /f systray
edit: Some users in the comments section of the linked article reported needing to add a small delay to the batch file.
Or in my case I used Resource Hacker to swap the XP style graphics with Windows 10 style in the freeware Icon Remover tool linked in the above article.
You can still just right click on any USB device in My Computer and select “Eject”.
Being Taskbar related and an improving tweak I have found to work well with ExplorerPatcher I mention it here as a possible addition.
Anything to unclutter the system tray is good for me.
Beta Was this translation helpful? Give feedback.
All reactions