IWamAdmin::AppCreate
The IWamAdmin::AppCreate 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.
Syntax
HRESULT STDMETHODCALLTYPE AppCreate(
LPCWSTR szMDPath,
BOOL fInProc
);
Parameters
- szMDPath
- [string][unique][in] Specifies the metabase path to the starting point of the application.
- fInProc
- [in] 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 fInProc matches the application's existing status, then this method will cause no change to the application definition.
Return Values
The method will return NO_ERROR if the method succeeded, or other error codes converted to an HRESULT if the method failed.