Project Description
SmartSystemMenu extends system menu of all windows in the system. It appends next custom items to menu:
  • Information. Shows a dialog with information of the current window and process: the window handle, the window caption, the window style, the window class, the process name, the process id, the path to the process.
  • Always On Top. Allows the current window to stay on top of all other windows.
  • Resize. Allows to change the size of the current window.
  • Alignment. Allows the current window to be aligned with any of the 9 positions on the desktop.
  • Transparency. Allows to change the transparency of the current window.
  • Priority. Allows to change the current window's program priority.
  • System Tray. Allows to minimize the current window to the system tray.

Screenshots
SmartSystemMenu1.png SmartSystemMenu2.png

Requirements
  • OS Windows XP SP3 and later. Supports x86 and x64 systems.
  • .NET Framework 4.0

Files
  • SmartSystemMenu.exe
  • SmartSystemMenu64.exe (located in resources of SmartSystemMenu.exe module)
  • SmartSystemMenuHook.dll
  • SmartSystemMenuHook64.dll

How does it work?
This program has SmartSystemMenu.exe and SmartSystemMenuHook.dll modules for x86 processes, SmartSystemMenu64.exe and SmartSystemMenuHook64.dll modules for x64 processes. When you run SmartSystemMenu.exe, it also runs SmartSystemMenu64.exe. These two executable modules load hooks (SmartSystemMenuHook.dll and SmartSystemMenuHook64.dll) to all processes. When you select an item in the system menu, the hook sends a message to the executable module. After that, the module performs the selected action: changes the transparency of the window, changes the size of the window, etc.

License
SmartSystemMenu is licensed under the Microsoft Public License (Ms-PL).

Limitations
This tool can't work properly with a window whose system menu is managed by its own process, for example IE9 and later, Chrome 29 and later, etc. Also the tool doesn't work correctly with windows of delphi processes, because delphi window has a parent TApplication window.

Tips
Run SmartSystemMenu.exe process. If your OS has enabled UAC, the system will display a UAC dialog. You do not need to worry because the program needs elevated privileges. After the program has been executed, in all system menus of all windows you can see custom items.

Last edited Dec 11, 2013 at 11:23 AM by AlexanderPro, version 9