examples: Add winexe re-implemented on current Samba libs
[kamenim/samba-autobuild/.git] / examples / winexe / winexesvc.h
1 /*
2  * Copyright (C) Andrzej Hajda 2009-2013
3  * Contact: andrzej.hajda@wp.pl
4  *
5  * Source of this file: https://git.code.sf.net/p/winexe/winexe-waf
6  * commit b787d2a2c4b1abc3653bad10aec943b8efcd7aab.
7  *
8  * ** NOTE! The following "GPLv3 only" license applies to the winexe
9  * ** service files.  This does NOT imply that all of Samba is released
10  * ** under the "GPLv3 only" license.
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * version 3 as published by the Free Software Foundation.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, see <http://www.gnu.org/licenses/>.
23  */
24
25 /*
26  * Shared by winexe and winexesvc
27  */
28
29 #define VERSION_MAJOR 1
30 #define VERSION_MINOR 1
31
32 #define VERSION ((VERSION_MAJOR * 100) + VERSION_MINOR)
33
34 #define SERVICE_NAME "winexesvc"
35
36 #define PIPE_NAME "ahexec"
37 #define PIPE_NAME_IN "ahexec_stdin%08X"
38 #define PIPE_NAME_OUT "ahexec_stdout%08X"
39 #define PIPE_NAME_ERR "ahexec_stderr%08X"
40
41 #define CMD_STD_IO_ERR "std_io_err"
42 #define CMD_RETURN_CODE "return_code"