IShellWindows::_NewEnum method (exdisp.h)

Retrieves an enumerator for the collection of Shell windows.

Syntax

HRESULT _NewEnum(
  [out, retval] IUnknown **ppunk
);

Parameters

[out, retval] ppunk

Type: IUnknown**

When this method returns, contains an interface pointer to an object that implements the IEnumVARIANT interface.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header exdisp.h
DLL Shdocvw.dll (version 5.00.2014.0216 or later)

See also

IShellWindows

IShellWindows::Item

IShellWindows::get_Count