]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/win32/winbacula.h
Fix distclean to wipe CVS
[bacula/bacula] / bacula / src / filed / win32 / winbacula.h
1 //  Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
2 //
3 //  This file was part of the VNC system.
4 //
5 //  The VNC system is free software; you can redistribute it and/or modify
6 //  it under the terms of the GNU General Public License as published by
7 //  the Free Software Foundation; either version 2 of the License, or
8 //  (at your option) any later version.
9 //
10 //  This program is distributed in the hope that it will be useful,
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //  GNU General Public License for more details.
14 //
15 //  You should have received a copy of the GNU General Public License
16 //  along with this program; if not, write to the Free Software
17 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
18 //  USA.
19 //
20 // If the source code for the VNC system is not available from the place 
21 // whence you received this file, check http://www.uk.research.att.com/vnc or contact
22 // the authors on vnc@uk.research.att.com for information on obtaining it.
23 //
24 // This file has been adapted to the Win32 version of Bacula
25 // by Kern E. Sibbald.  Many thanks to ATT and James Weatherall,
26 // the original author, for providing an excellent template.
27 //
28 // Copyright (2000) Kern E. Sibbald
29 //
30
31
32 // WinUPS header file
33
34 #define STRICT
35 #include <windows.h>
36 #include <stdio.h>
37 #include <process.h>
38 #include "winres.h"
39
40 // Application specific messages
41
42 // Message used for system tray notifications
43 #define WM_TRAYNOTIFY                           WM_USER+1
44
45 // Messages used for the server object to notify windows of things
46 #define WM_SRV_CLIENT_CONNECT           WM_USER+2
47 #define WM_SRV_CLIENT_AUTHENTICATED     WM_USER+3
48 #define WM_SRV_CLIENT_DISCONNECT        WM_USER+4
49
50 // Export the application details
51 extern HINSTANCE        hAppInstance;
52 extern const char       *szAppName;
53 extern DWORD            mainthreadId;
54
55 // Main UPS server routine
56 extern int BaculaAppMain();
57
58 // Standard command-line flag definitions
59 const char BaculaRunService[]            = "/service";
60 const char BaculaRunServiceHelper[]      = "/servicehelper";
61 const char BaculaRunAsUserApp[]          = "/run";
62
63 const char BaculaInstallService[]        = "/install";
64 const char BaculaRemoveService[]         = "/remove";
65
66 #ifdef properties_implemented
67 const char BaculaShowProperties[]        = "/settings";
68 const char BaculaShowDefaultProperties[] = "/defaultsettings";
69 #endif
70
71 const char BaculaShowAbout[]             = "/about";
72 const char BaculaShowStatus[]            = "/status";
73 const char BaculaShowEvents[]            = "/events";
74 const char BaculaKillRunningCopy[]       = "/kill";
75
76 const char BaculaShowHelp[]              = "/help";
77
78 // Usage string
79 #ifdef properties_implemented
80 const char BaculaUsageText[] = "Bacula [/run] [/kill] [/install] [/remove] [/settings] [/defaultsettings] [/about] [/status] [/evetns]\n";
81 #else
82 const char BaculaUsageText[] = "Bacula [/run] [/kill] [/install] [/remove] [/about] [/status] [/events]\n";
83 #endif