Avatar of davinder101
davinder101
 asked on

Minimize the windows explorer exe into system tray

Hi Experts

            I want to minimize the windows explorer exe in system tray when my system start up.Please tell me the way to do so.Source code will be helpful.


Thanks in Advance
Visual C++.NETMicrosoft Development

Avatar of undefined
Last Comment
Pramod Bugudai

8/22/2022 - Mon
jdwheeler1981

The solution to your problem may lie in the msconfig utility.  Go to run and type msconfig and delete all unwanted startup and services from running.  Should fix your problem.
AndyAinscow

>>I want to minimize the windows explorer exe in system tray

Is that an option in explorer?  (It isn't in mine).  If not then you can't do it.
jonnidip

I don't think it is possible. At least not in the default Windows' configuration.
You may replace your shell with a different one, this is usually a thing like "TweakUI", or something similar.

Regards.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
davinder101

ASKER
Problem is If I have a dialog based MFC application I will able to Minimize it in the system tray by using the following code:

                NOTIFYICONDATA niData;
      niData.cbSize = sizeof(NOTIFYICONDATA);
      niData.hWnd = m_hWnd;
      niData.uID = 1;
      niData.uCallbackMessage = WM_TRAY_ICON_NOTIFY_MESSAGE;
      niData.hIcon = m_hIcon;
      niData.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
      wcscpy_s(niData.szTip, 127, _T("Tray Me !"));

      Shell_NotifyIcon(NIM_ADD, &niData);

In the same way I want to open the windows explorer on startup through program and  when user closes it it  will minimize into system tray. Is it possible programatically.

Thanks In Advance
SOLUTION
AndyAinscow

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.