Iconizer: An Example of a Systemwide Hook

This button minimizes an application, removes the icon window out of the taskbar and puts an icon in the systemtray, freeing up more space on the taskbar this way.

A left mouse click on the icon will restore the window, while a right mouse click will popup the system menu of the corresponding window.

The project includes full working binaries that can be used as-is. All source code is included which can be useful as example or reference on how to implement a system wide hook in general.

File List

1. Files you need
   
   All files you need are zipped in the Install folder.

   1.1. You will need following files to run Iconizer:
        - iconizer.exe    -> system wide hook loader
        - iconizer.dll    -> system wide hook provider
        - iconizer.ini    -> list of applications to exclude from hook,
                             this file must reside in the Windows directory

   1.2. Following files manipulte the registry to start/stop
        automatic loading of Iconizer after login:
        - install.reg     -> start Iconizer at startup
        - uninstall.reg   -> stop loading Iconizer at startup

        Remark: The default path in the .reg files is c:\utils\iconizer
                Change this path if iconizer.exe is located somewhere else.

   1.3. Other files:
        - readme.txt      -> short orientation


2. Source code

   2.1. System wide hook loader
        - All source code is zipped in the IconizerApp folder.
        - This application is actually a tiny MFC application that
          runs in stealth mode and loads the system wide hook.

   2.2. System wide hook provider
        - All source code is zipped in the IconizerDll folder.
        - This application is actually a Windows Win32 DLL that implements
          the system wide hook.

Requirements

Iconizer requires Windows NT SP3 (or higher) or Windows 2000. Iconizer is not fully tested on Windows 95/98/Me, but will probably run on these platforms.

Other

  1. The author is not, and will not be, responsible for any damage caused by using iconizer.
  2. Bugs and comments can be reported at bgysens@tijd.com.

Thanks

Many thanks to the people who helped in the realisation of Iconizer, in special to Henk De Vos, all the guys who provided comments at codeguru.com and some colleagues at ERG Transit Systems for beta testing and feedback.

Downloads

Download demo project - 235 Kb


Comments

  • help

    Posted by panker jon on 06/02/2012 09:48pm

    help me...

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: March 27, 2014 Teams need to deliver quality software faster and need integrated agile planning, task tracking, source control, auto deploy with continuous builds and a configurable process to adapt to the way you work. Rational Team Concert and DevOps Services (JazzHub) have everything you need to build great software, integrated seamlessly together right out of the box or available immediately in the cloud. And with the Rational Team Concert Client, you can connect your …

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds