次の方法で共有


IISApp::AppCreate

The AppCreate method creates a new Web application, or reconfigures an existing application.

HRESULT AppCreate(
  VARIANT_BOOL  bSetInProcFlag
);

Parameters

  • bSetInProcFlag
    [in] A VARIANT_BOOL that specifies whether the application being created is to run in-process (TRUE) or out-of-process (FALSE). If the application already exists and is running in-process, specifying this flag as FALSE will cause the application definition to be deleted and a new application created to run out-of-process. If the application already exists and is running out-of-process, specifying this flag as TRUE will cause the application definition to be deleted and a new application created to run in-process. If the application exists and the setting of bSetInProcFlag matches the application's existing status, then this method will cause no change to the application definition.

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

IIS ADSI Provider Interfaces

Using ADSI to Configure IIS in a C++ Application

IIS Constants and Header Files

IWamAdmin Interface

IISApp2 Interface

IISApp3 Interface