IShellFolderView::SetCallback method (shlobj_core.h)
[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
[in, optional] pNewCB
Type: IShellFolderViewCB*
A pointer to the new IShellFolderViewCB callback object.
[out, optional] ppOldCB
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlobj_core.h |