Partager via


IISWebService Interface

The IISComputer interface contains methods that can backup, restore, enumerate backups, or delete backups of the IIS metabase. This interface can be used from a C++ or Visual Basic application that uses ADSI. The required header files, Iiisext.h and IISext_i.c, are installed with Visual Studio and the IIS Software Developer Kit.

For a C++ code example that uses ADSI to configure the metabase, see Using ADSI to Configure IIS in a C++ Application.

Methods in Vtable Order

In addition to the methods inherited from IADs, the IISComputer interface exposes the following methods.

Method

Description

GetCurrentMode

Returns the mode under which the World Wide Web Publishing Service (WWW service) is running; either the IIS 5.0 isolation mode or the new worker process isolation mode.

CreateNewSite

Creates a new Web or FTP site. This method allows you to specify the site identification number that you want to use. If you do not specify a site identification number, the method performs a hash function on the ServerComment passed to the method and creates a new number.

Note

This method is only available on IIS 6.0 and later.

EnableApplication

Sets the AllowDenyFlag flag in the WebSvcExtRestrictionList metabase property to 1 (allow) for the specified ApplicationName.

Note

This method is only available on IIS 6.0 or later.

RemoveApplication

Sets the AllowDenyFlag flag in the WebSvcExtRestrictionList metabase property to 0 (deny) for the specified ApplicationName.

Note

This method is only available on IIS 6.0 or later.

ListApplications

Returns an array of strings containing the names of the applications that can be enabled on the server.

Note

This method is only available on IIS 6.0 or later.

AddDependency

Adds an entry for a single application to the ApplicationDependencies metabase property. You can specify a group that the application is dependent upon, or specify a new group name.

Note

This method is only available on IIS 6.0 or later.

RemoveDependency

Removes an entry for a single application from the ApplicationDependencies metabase property.

Note

This method is only available on IIS 6.0 or later.

EnableWebServiceExtension

Sets the AllowDenyFlag flag in the WebSvcExtRestrictionList metabase property to 1 (allow) for any extension belonging to the specified GroupID.

Note

This method is only available on IIS 6.0 or later.

DisableWebServiceExtension

Sets the AllowDenyFlag flag in the WebSvcExtRestrictionList metabase property to 0 (deny) for any extension belonging to the specified GroupID.

Note

This method is only available on IIS 6.0 or later.

ListWebServiceExtensions

Returns an array of strings containing the Web service extension groups that can be enabled on the server. If there are multiple entries in the WebSvcExtRestrictionList metabase property with the same GroupID, only one is listed.

Note

This method is only available on IIS 6.0 or later.

EnableExtensionFile

Sets the AllowDenyFlag flag in the WebSvcExtRestrictionList metabase property to 1 (allow) for the specified ExtensionPath.

Note

This method is only available on IIS 6.0 or later.

DisableExtensionFile

Sets the AllowDenyFlag flag in the WebSvcExtRestrictionList metabase property to 0 (deny) for the specified ExtensionPath.

Note

This method is only available on IIS 6.0 or later.

AddExtensionFile

Adds a new ISAPI extension or CGI application to the IIS server by adding a corresponding entry to the WebSvcExtRestrictionList metabase property.

Note

This method is only available on IIS 6.0 or later.

DeleteExtensionFileRecord

Removes an ISAPI extension or CGI application from the IIS server by deleting the corresponding entry from the WebSvcExtRestrictionList metabase property.

Note

This method is only available on IIS 6.0 or later.

ListExtensionFiles

Returns an array of strings containing the Web service extension file names in the WebSvcExtRestrictionList metabase property that can be enabled on the server.

Note

This method is only available on IIS 6.0 or later.

QueryGroupIDStatus

Returns an array of strings containing the ApplicationNames in the ApplicationDependencies metabase property that depend on a given GroupID.

Note

This method is only available on IIS 6.0 or later.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iiisext.h; include iisext_i.c.

See Also

Concepts

IIS ADSI Provider Interfaces

Using ADSI to Configure IIS in a C++ Application

IIS Constants and Header Files

WebSvcExtRestrictionList

ApplicationDependencies

Adding Web Service Extensions to the Restriction List

Installing and Uninstalling CGI and ISAPI Extensions