summaryrefslogtreecommitdiffstats
path: root/support/win32/ApacheMonitor.c
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>2001-08-08 04:26:05 +0200
committerRoy T. Fielding <fielding@apache.org>2001-08-08 04:26:05 +0200
commitbc55c103b18fc53328f135823cd8aa74bceb27e0 (patch)
tree3d8f23ae041cb2fe1827fce62a6d51689e7f7bb6 /support/win32/ApacheMonitor.c
parentdrop a brace inside #if 0 so emacs can indent properly (diff)
downloadapache2-bc55c103b18fc53328f135823cd8aa74bceb27e0.tar.xz
apache2-bc55c103b18fc53328f135823cd8aa74bceb27e0.zip
Apache Monitor's tray code does not notify Windows to remove it from the
tray when the process is destroyed. Just needed to add a call to remove the tray icon before PostQuitMessage(0). Also show "MS Windows XP" instead of "Whistler". Submitted by: Jerry Baker <jerrybaker@weirdness.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90024 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/win32/ApacheMonitor.c')
-rw-r--r--support/win32/ApacheMonitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c
index 3538909083..927d14008d 100644
--- a/support/win32/ApacheMonitor.c
+++ b/support/win32/ApacheMonitor.c
@@ -212,7 +212,7 @@ BOOL GetSystemOSVersion(LPSTR szVersion, LPDWORD dwVersion)
else if (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0)
strcpy(szVersion, "MS Windows 2000 ");
else if (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1)
- strcpy(szVersion, "Whistler ");
+ strcpy(szVersion, "MS Windows XP ");
/* Test for product type.*/
#ifdef VER_VORKSTATION_NT
if (bOsVersionInfoEx)
@@ -1440,6 +1440,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message,
SetFocus(ap_hwndAboutDlg);
break;
case IDM_EXIT:
+ ShowNotifyIcon(hWnd, NIM_DELETE);
PostQuitMessage(0);
return TRUE;
break;