次の方法で共有


IWamAdmin::AppGetStatus

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

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

    Meaning

    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 S_OK if the method succeeded, and status is returned in pdwStatus. If the method fails, other error codes converted to an HRESULT will be returned.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iwamreg.h.