Revision: | 33 |
Committed: | Sun Oct 2 20:50:00 2005 UTC (18 years, 5 months ago) by knight |
Content type: | text/x-csrc |
File size: | 376 byte(s) |
Log Message: | - svn:keywords |
# | Content |
---|---|
1 | /* $Id$ */ |
2 | |
3 | #include <windows.h> |
4 | #include "setup.h" |
5 | |
6 | int WINAPI |
7 | WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, |
8 | LPSTR lpCmdLine, int nCmdShow) |
9 | { |
10 | HWND wndhandle = FindWindow(PACKAGE_NAME, NULL); |
11 | |
12 | if (!wndhandle) |
13 | { |
14 | MessageBox(NULL, "ircd-hybrid is not running", NULL, MB_OK | MB_ICONERROR); |
15 | return 1; |
16 | } |
17 | |
18 | PostMessage(wndhandle, WM_CLOSE, 0, 0); |
19 | } |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Id Revision |