PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Manages the rights of clients on the server (FTP server (File Transfer Protocol) or on the RPC server (Remote Procedure Call) powered by WINDEV). The authorizations granted or denied are applied to all the clients that will connect to the server.
Caution: This function can only be used on the server. By default, the server allows the execution of all the Net functions.
Example
FTPServerID is int = NetStartServer(FTPServer)
...
// Forbids the use of NetExecute and NetEraseFile on the server
NetServerOption(FTPServerID, netOptionExecute, False)
NetServerOption(FTPServerID, netOptionEraseFile, False)
Syntax
NetServerOption(<Identifier of Server Connection> , <Action Name> , <Authorization>)
<Identifier of Server Connection>: Integer
Connection identifier (returned by NetStartServer).
<Action Name>: Integer constant
To each Net function having an action on the RPC/FTP server corresponds a WLanguage constant that can allow of forbid the corresponding action. The limit of the actions that can be performed on the server is performed via the following constants:
NetSendBuffernetOptionSendBuffer
NetSendMessagenetOptionSendMessage
NetExecutenetOptionExecute
NetSendFilenetOptionSendFile
NetGetFilenetOptionGetFile
NetDiskListnetOptionDiskList
NetDirListnetOptionDirList
NetRenameFilenetOptionRenameFile
NetEraseFilenetOptionEraseFile
NetRemoteMessageBoxnetOptionRemoteMessageBox
<Authorization>: Boolean
  • True: Authorizes the specified action.
  • False: Does not authorize the specified action.
Components
WINDEVReports and Queries wd230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment