IISApp2::AppCreate2
The AppCreate2 method creates a new Web application that will run in-process, out-of-process, or in a process pool, or reconfigures an existing application.
HRESULT AppCreate2(
LONG lAppMode
);
Parameters
- lAppMode
[in] Long integer that specifies whether the application being created is to run in-process (0), out-of-process (1), or in a pooled process (2). If the application already exists and is running, changing the value of this flag will cause the application definition to be deleted and a new application created to run in the specified process space.
Return Value
The method returns an HRESULT. Possible values include, but are not limited to, S_OK, which indicates that the method succeeded.
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