mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ffa1c040c6
winexe from https://sourceforge.net/projects/winexe/ is a project
based on Samba libraries from 2012. According to the winexe git
repository the last Samba commit winexe was updated to is 47bbf9886f
from November 6, 2012. As winexe uses unpublished Samba internal
libraries, it broke over time.
This is a port of the winexe functionality to more modern Samba
versions. It still uses internal APIs, but it being part of the tree
means that it is much easier to keep up to date.
The Windows service files were taken literally from the original
winexe from the sourceforge git. Andrzej Hajda chose GPLv3 only and
not GPLv3+. As GPL evolves very slowly, this should not be a practical
problem for quite some time.
To build it under Linux, you need mingw binaries on your build
system. Under Debian stretch, the package names are gcc-mingw-w64 and
friends.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 28 02:03:07 CEST 2018 on sn-devel-144
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* Copyright (C) Andrzej Hajda 2009-2013
|
|
* Contact: andrzej.hajda@wp.pl
|
|
*
|
|
* Source of this file: https://git.code.sf.net/p/winexe/winexe-waf
|
|
* commit b787d2a2c4b1abc3653bad10aec943b8efcd7aab.
|
|
*
|
|
* ** NOTE! The following "GPLv3 only" license applies to the winexe
|
|
* ** service files. This does NOT imply that all of Samba is released
|
|
* ** under the "GPLv3 only" license.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* version 3 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/*
|
|
* Shared by winexe and winexesvc
|
|
*/
|
|
|
|
#define VERSION_MAJOR 1
|
|
#define VERSION_MINOR 1
|
|
|
|
#define VERSION ((VERSION_MAJOR * 100) + VERSION_MINOR)
|
|
|
|
#define SERVICE_NAME "winexesvc"
|
|
|
|
#define PIPE_NAME "ahexec"
|
|
#define PIPE_NAME_IN "ahexec_stdin%08X"
|
|
#define PIPE_NAME_OUT "ahexec_stdout%08X"
|
|
#define PIPE_NAME_ERR "ahexec_stderr%08X"
|
|
|
|
#define CMD_STD_IO_ERR "std_io_err"
|
|
#define CMD_RETURN_CODE "return_code"
|