Partager via


IWamAdmin2::AppCreate2

The AppCreate2 method creates a Web application definition and marks it as running in-process or out-of-process. If an application already exists at the specified path, this method reconfigures the application from in-process to out-of-process execution, or vice versa.

IIS 5.0 and earlier: The IWamAdmin2 interface is not available.

HRESULT AppCreate2(
      LPCWSTR szMDPath,
      DWORD dwAppMode
);

Parameters

  • szMDPath
    [in] Specifies the metabase path to the starting point of the application.

  • dwAppMode
    [in] Specifies the process isolation of the application.

    Value

    Meaning

    0

    Runs in process to INETINFO when in SAM.

    1

    Runs in its own DLLHOST when in SAM.

    2

    Runs in the pooled application DLLHOST when in SAM.

Requirements

Client: Requires or Windows XP Professional.

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in iwamreg.h.