IISApp Interface
The IISApp interface contains methods that can create, delete, enable, disable, unload, restart, or query the state of Web applications IIS. 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.
For an interface that manages application pools on IIS 6.0, see IISApp3 and IISApplicationPool Interface.
Methods in Vtable Order
In addition to the methods inherited from IADs, the IISApp interface exposes the following methods.
Method |
Description |
---|---|
Creates a new Web application, or reconfigures an existing application. |
|
Deletes an application definition. |
|
Marks a Web application as deleted so it can be moved or copied and then recovered. |
|
Disables a Web application that is running. All of the application's resources are released and the application's process is terminated. |
|
Disables a Web application that is running, and all of its child applications. All of the application's resources are released and the application's process is terminated. |
|
Enables a Web application that was previously disabled with AppDisable. |
|
Enables a Web application and all of its child applications that were previously disabled with AppDisableRecursive. |
|
Retrieves the status of a Web application. This method is obsolete because it will not work on late-bound clients. Instead, use IISApp2::AppGetStatus2. |
|
Unloads an application that is running. |
|
Unloads an application that is running and all of its child applications. |
|
Restarts ASP applications. Users can use this method to restart ASP applications without accessing the Global.asa file or stopping and starting the Web service itself. Essentially, a user can restart the application on demand. |
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
Using ADSI to Configure IIS in a C++ Application