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
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 find out the error details, use ErrorInfo.
<Remote Computer>: Optional character string (with quotes)
IP address of remote computer in xxx.xxx.xxx.xxx format (returned by NetIPAddress) or name of 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.
Remarks
The functions for service management do not operate in the following operating systems: Windows 98 or Me.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Linux wd230std.so
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment