/[svn]/ircd-hybrid-7.2/tools/win32/rehash.c
ViewVC logotype

Annotation of /ircd-hybrid-7.2/tools/win32/rehash.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (hide annotations)
Sun Oct 2 21:05:51 2005 UTC (14 years, 6 months ago) by lusky
File MIME type: text/x-chdr
File size: 452 byte(s)
create 7.2 branch, we can move/rename it as needed.


1 knight 31 /* $Id$ */
2 adx 30
3     #include <windows.h>
4     #include "setup.h"
5    
6     #define WM_REHASH (WM_USER + 0x100)
7     #define WM_REMOTD (WM_USER + 0x101)
8    
9     int WINAPI
10     WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
11     LPSTR lpCmdLine, int nCmdShow)
12     {
13     HWND wndhandle = FindWindow(PACKAGE_NAME, NULL);
14    
15     if (!wndhandle)
16     {
17     MessageBox(NULL, "ircd-hybrid is not running", NULL, MB_OK | MB_ICONERROR);
18     return 1;
19     }
20    
21     PostMessage(wndhandle, WM_REHASH, 0, 0);
22     }

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26