IWamAdmin::AppGetStatus

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

Syntax

HRESULT STDMETHODCALLTYPE AppGetStatus( 
  LPCWSTR szMDPath,           // [string][unique][in] 
  DWORD __RPC_FAR *pdwStatus  // [out] 
); 
 

Parameters

szMDPath
Specifies the metabase path to the starting point of the application.
pdwStatus
Receives one of the following values indicating the status of the application:
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 HRESULT will be returned.