IIISApplicationAdmin::EnumerateApplicationsInPool

The IIISApplicationAdmin::EnumerateApplicationsInPool method enumerates all the applications in an IIS application pool. Use the GetProcessMode method to ensure that IIS is running in worker process isolation mode before using this method. For more information about isolation modes, see IIS Modes of Operation.

STDMETHODIMP EnumerateApplicationsInPool(
   LPCWSTR szMDPath,
   BSTR* pbstrBuffer
);

Parameters

  • szMDPath
    Specifies the metabase path to the starting point of the application.

  • pbstrBuffer
    A pointer to a BSTR that will contain the application paths.

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