Getting information from IDataObject

Posted on 2009-02-24
Last Modified: 2012-05-06

I am using VirtualShellTools component, TVirtualExplorerEasyListview.

It has an event triggered when receiving drop from other application (see in the code).

Do you know how to parse information of what are the objects that were dropped?

I believed the informations are packaged into the DataObject parameter.

I need to know if it is a FILE (or FILES) or FOLDER (or FOLDERS), for example.
Also type of action (copy / cut / etc ... if available).

My plan is to catch dropped files/folders, then stored in a LIST.

procedure TForm1.VirtualExplorerEasyListview1OLEDragDrop(

  Sender: TCustomEasyListview; DataObject: IDataObject;

  KeyState: TCommonKeyStates; WindowPt: TPoint;

  AvailableEffects: TCommonDropEffects;

  var DesiredDropEffect: TCommonDropEffect; var Handled: Boolean);


    // This event is triggered when receiving drop from other application.


Open in new window

Question by:dudup
    1 Comment
    LVL 10

    Accepted Solution


    Here is very nice step by step walkthrough.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now