ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TShellBrowser.GetUIObject Method

Wrapper for IShellFolder.GetUIObjectOf method.

Syntax
Pascal
function GetUIObject(const riid: TGUID): IUnknown;
Parameters 
Description 
const riid: TGUID 
IID of the interface that should be returned 

Returns an UI Object for the current shell object(s), wrapper, for IShellFolder.GetUIObjectOf()

Wrapper for the Windows shell API IShellFolder.GetUIObjectOf() which will be rarely used directly by developers. For a list of valid interface identifiers that can be passed please visit MSDN. The function will use the contents of the MultiObjects property if it is not empty. The caller should clear on MultiObjects after calling this method.

To get the IDropTarget interface for drive C:, you can use the following code:

var DropTarget: IDropTarget; begin ShellBrowser.Folder := 'C:'; DropTarget := ShellBrowser.GetUIObject(IID_IDropTarget) as IDropTarget; ...
Copyright (c) 2011. All rights reserved.