   Win32 programs that run in the background...
  How do you make a program that runs in the system tray?  I want to make a program that runs in the background and has a system tray icon that opens a window when clicked.  If anyone can direct me to some source code that''d be great. 
  For a program that uses the system tray look up the Shell_NotifyIcon() windows function. To create the window so that it doesn''t show up in the ALT-TAB menu or on the taskbar consider creating it with the WS_EX_TOOLWINDOW flag in CreateWindowEx(). Just hide it when you want it in the background.;  Just a minor nitpick, but, really, _all_ windows programs run simultaneously.  There''s nothing special you have to do to "run in the background".That''s what ''multitasking'' is all about. ;quote:Original post by Anonymous Poster   Just a minor nitpick, but, really, _all_ windows programs run simultaneously.  There's nothing special you have to do to "run in the background".That's what 'multitasking' is all about.   ...he's talking about background as in not in the users face. Like the little windows autoupdater that downloads much needed security patches.To counter nitpick, windows programs actually _dont_ run simultaneously. They each run for a small increments of time, before the system switches to running another program/thread/what have you for a small increment of time. The only exception is on multi-processor systems, in which case they're still not _ALL_ running at the same time.KevinG: Don't froget that MSDN is your friend... msdn.microsoft.com . I'll bet a can of Barqs rootbeer they even have an example for the mentioned functions.   [edited by - MaulingMonkey on February 3, 2004 7:11:47 PM];  If you want a program to run "in the background" with no UI then you want a service.  Look up creating a service on MSDN.  That''s  how window''s expects utilities like virus checkers to work.They can also run before a user logs in which can be useful at times.CheersChris ;  Yeah but alotta peeps still run Win98.-=[ Megahertz ]=- 