ActiveServive(Service) is nothing more than a wrapper for using XNET.exe which is a utility in your KiXtart distribution.

Read the XNET help file. Then look at this code again. It just calls XNET, reports the return and returns a value for NT.

The @WIN = 1 means NT. The else would be for Win9x computers and it checks the registry for Win9x services.
_________________________
Home page: http://www.kixhelp.com/hb/