The IWamAdmin::AppGetStatus method retrieves the current status of a Web application.
HRESULT STDMETHODCALLTYPE AppGetStatus( LPCWSTR szMDPath, // [string][unique][in] DWORD __RPC_FAR *pdwStatus // [out] );
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 HRESULT will be returned.