Compartir a través de


IISApp::AppGetStatus

The AppGetStatus method retrieves the status of a Web application. This method is obsolete because it will not work on late-bound clients. Instead, use IISApp2::AppGetStatus2.

HRESULT AppGetStatus(
  DWORD*  pdwStatus
);

Parameters

Term

Definition

pdwStatus

[out] Pointer to a DWORD containing the status. Receives one of the following values indicating the status of the application:

Term Value Definition
APPSTATUS_NOTDEFINED 2 No application is defined at the specified path.
APPSTATUS_RUNNING 1 The application is running.
APPSTATUS_STOPPED 0 The application is not running.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, S_OK, which indicates that the method succeeded.

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 iiisext.h; include iisext_i.c.

See Also

Concepts

IIS ADSI Provider Interfaces

Using ADSI to Configure IIS in a C++ Application

IIS Constants and Header Files

IWamAdmin Interface

IISApp2 Interface

IISApp3 Interface