ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Service functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
ServiceList (Function)
In french: ServiceListe
Returns the list of services found on the current computer or on the specified remote computer.
Example
sService_List is string
 
// Clears the table
TableDeleteAll(TABLE_Service)
// TABLE_Service contains 2 text columns: "Name" and "Description"
 
// Lists the services
sService_List = ServiceList()
IF sService_List <> "" THEN
FOR EACH STRING sServiceInfo OF sService_List SEPARATED BY CR
TableAdd(TABLE_Service, sServiceInfo)
END
 
ELSE
Error(ErrorInfo(errFullDetails))
END
Syntax
<Result> = ServiceList([<Remote computer>])
<Result>: Character string
  • List of services, returned according to the following format:
    <Name of Service 1> + TAB + <Description of Service 1> + CR + ...
    + <Name of Service N> + TAB + <Description of Service N>
  • Empty string ("") if an error occurred. To get more details on the error, use ErrorInfo.
<Remote computer>: Optional character string
IP address of the remote computer in xxx.xxx.xxx.xxx format (returned by NetIPAddress) or name of the remote computer (returned by NetMachineName).
This parameter is used to list the services found on another computer.
To use this option, the user may not be administrator of remote computer (he must at least have the rights to list the services on this computer).
If this parameter is not specified or if it corresponds to an empty string (""), the service is handled locally.
Component: wd290std.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help