/* WPS Open routine for Samba GUI Tools */ /* Copyright (C) 2007-2017 Herwig Bauernfeind for bww bitwise works GmbH. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 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 . */ /*:VRX Main */ Main: signal on halt say time()' wps_open thread started' mountpoint = arg(1) openmode = arg(2) say ' Opening WPS object "'mountpoint'" in "'openmode'" view' call SysSetObjectData mountpoint, "OPEN="openmode";" /* call SysSetObjectData mountpoint, "OPEN="openmode";" */ say time()' wps_open thread done' exit /*:VRX Halt */ Halt: exit