共用方式為


IISWebService::GetCurrentMode

The GetCurrentMode method returns the mode under which the World Wide Web Publishing Service (WWW service) is running; either the IIS 5.0 isolation mode or the new worker process isolation mode.

HRESULT GetCurrentMode(
  VARIANT*  pvServerMode
);

Parameters

  • pvServerMode
    [out] Pointer to a VARIANT containing server mode. Returns a 1 if IIS is running in worker process isolation mode, or a 0 if IIS is running in IIS 5.0 isolation mode.

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

WebSvcExtRestrictionList

ApplicationDependencies

Adding Web Service Extensions to the Restriction List

Installing and Uninstalling CGI and ISAPI Extensions