IDVGetEnum::SetEnumReadyCallback method

[This interface is supported through Windows XP Service Pack 2 (SP2) and Windows Server 2003. It is not supported as of Windows Vista.]

Registers the callback function used when the system folder view object completes its enumeration.

Syntax

HRESULT SetEnumReadyCallback(
  [in] PFDVENUMREADYBALLBACK pfn,
  [in] LPVOID                pvData
);

Parameters

  • pfn [in]
    Type: PFDVENUMREADYBALLBACK

    A pointer to the callback function.

  • pvData [in]
    Type: LPVOID

    Pertinent data passed to pfn.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shobjidl.h

IDL

Shobjidl.idl

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)