ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Service functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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_Liste is string

// Vide la table
TableDeleteAll(TABLE_Service)
// TABLE_Service contient 2 colonnes texte: "Nom" et "Description"

// Liste les services
sService_Liste = ServiceList()
IF sService_Liste <> "" THEN
	FOR EACH STRING sServiceInfo OF sService_Liste 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 is an empty string (""), the service is handled locally.
Component: wd300std.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help