SetCallback method

IShellFolderView::SetCallback method

[IShellFolderView::SetCallback is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Replaces the callback object used by the view.


HRESULT SetCallback(
  [in, optional]  IShellFolderViewCB *pNewCB,
  [out, optional] IShellFolderViewCB **ppOldCB


pNewCB [in, optional]

Type: IShellFolderViewCB*

A pointer to the new IShellFolderViewCB callback object.

ppOldCB [out, optional]

Type: IShellFolderViewCB**

The address of an interface pointer that, when this method returns successfully, points to the original IShellFolderViewCB object.

Return value


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


Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows Vista

End of server support

Windows Server 2008



© 2016 Microsoft