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.

Syntax


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

Parameters

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

Type: HRESULT

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

Requirements

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

 

 

Show:
© 2016 Microsoft