The IWamAdmin::AppGetStatus method retrieves the current status of a Web application.
HRESULT STDMETHODCALLTYPE AppGetStatus(
LPCWSTR szMDPath,
DWORD __RPC_FAR *pdwStatus
);
| 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. |
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.