
SvcList.dll usage information
April 18, 2005

This dll has three functions:
  GetServicesList
  GetServiceInfoAll
  GetServiceInfo



[GetServicesList]
This function MUST be run first to initialize the DLL.
Returns an integer representing the number of services identified.
This creates an internally indexed list of services that the other 
two functions draw their information from. Call this function 
again to refresh the list.
example:
%%SvcTotal = @lib(svclist,GetServicesList,int:)


[GetServiceInfoAll]
This function returns a pipe delimited string containing all service 
info for the service indicated by the first parameter (an integer from 
0 to the number returned by GetServicesList minus one)
Returns - Svc Name | Display Name | Status | Type (Win32/Driver)
Example:
%%NextSvc = @lib(svclist,GetServiceInfoAll,str:,%i)
The value of %%NextSvc = "PlugPlay|Plug and Play|Running|Win32 Service"
(coming soon - Startup type will be returned also)




This function is similar to GetServiceInfoAll, but accepts a second parameter,
an integer, 0 thru 4, returning only one value:
0 returns Service name, (Windows internal name)
1 returns Display name, (The name displayed by windows utilities)
2 returns status (Running or Stopped)
3 returns type (Win32 or Driver Service)
4 (not yet implimented) returns start type (boot,system,auto,manual,disabled)

dialog set,edit3,@lib(svclist,GetServiceInfo,str:,int:%%index,int:%%infono)




