|
|
|
|
ServiceList (Function) In french: ServiceListe Returns the list of services found on the current computer or on the specified remote computer. 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|