次の方法で共有


IIISApplicationAdmin::GetProcessMode

The IIISApplicationAdmin::GetProcessMode method gets a DWORD value that identifies if IIS is running under worker process isolation mode or IIS 5.0 compatibility isolation mode. Use this method to ensure that IIS is running in worker process isolation mode before using the methods in this interface that use application pools. For more information about isolation modes, see IIS Modes of Operation.

STDMETHODIMP GetProcessMode(
   PDWORD pdwMode
);

Parameters

  • pdwMode
    A pointer to a DWORD value containing the process mode. A value of 1 indicates worker process isolation mode; 0 indicates IIS 5.0 compatibility isolation mode.

Return Values

This method returns S_OK if the method succeeded, or other error codes converted to an HRESULT if the method failed.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in iwamreg.h.

See Also