ServiceName Property for IIS Virtual Roots

The ServiceName property describes the type of Web service with which the IIS Virtual Root will be used.

Quick Info

Type: Null-terminated Unicode string
Access: Read/write
Status: Required
Function: ClusterResourceControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES

Remarks

When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code, it returns a property list that includes the ServiceName property as one of the entries. The property value portion of the entry contains a CLUSPROP_SZ structure that is set as follows:

CLUSPROP_SZ ServiceNameValue;
LPCWSTR ServiceNameData = L "W3SVC";
ServiceNameValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
ServiceNameValue.cbLength = sizeof(ServiceNameData);
lstrcpyW(ServiceNameValue.sz, ServiceNameData);
 

There are three types of Web services for IIS Virtual Roots: WWW, FTP, and Gopher. Each type has a corresponding value for the ServiceName property. The following table maps these types with the appropriate value for their ServiceName property.

Type of IIS Virtual Root Value of ServiceName
WWW W3SVC
FTP MSFTPSVC
Gopher GOPHERSVC

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.