I am writing a install program that takes care of some of the tasks involved in installing and confguring an ASP.NET website. As part of the process, I'd like to very that IIS and SQL Server are installed and running. I have most of this process down - I wrote some functions that will take a Service Name as a parameter, and it will spit back whether the service exists, and is running. For example, to check is SQLServer is installed, I pass the value "MSSQLSERVER", as this is the service name that you see when you look in Admin Tools | Services.
What I don't seem to be able to find is which service relates directly to IIS. I do see a service called IIS Admin, and another called Word Wide Web Publishing, and I'm not sure if either of these is the exact IIS service? Maybe it is something else?
I guess this is an easy question, but I just can't figure out which one is correct. If you happen to know, or could point me to some documentation that explains it, I'd appreciate it.