IWamAdmin::AppGetStatus

The IWamAdmin::AppGetStatus method retrieves the current status of a Web application.

Syntax

HRESULT STDMETHODCALLTYPE AppGetStatus(

  LPCWSTR szMDPath,

  DWORD __RPC_FAR *pdwStatus

);

 

Parameters
szMDPath
[string][unique][in]  Specifies the metabase path to the starting point of the application.
pdwStatus
[out]  Receives one of the following values indicating the status of the application:
Value Description
APPSTATUS_NOTDEFINED No application is defined at the specified path.
APPSTATUS_RUNNING The application is running.
APPSTATUS_STOPPED The application is not running.
Return Values

The method will return NO_ERROR if the method succeeded, and status is returned in pdwStatus. If the method fails, other error codes converted to an HRESULT will be returned.