Query on drag and drop in explorer extension

Hello everybody,

We have a hard disk device identified in the explorer as an
icon and we need to support drag and drop of files from
other directories (from the system disk) to this disk.

We went about doing in the following way:
We implemented a class for Windows Shell Extension for
ClipBoard transfers (i.e transfering a file from the
Clipboard to the target which is a disk ). This Class
inherits from IShellExtInit and IContextMenu.

Now in order to update the above class to support DragDrop,
we inherited the above class from IDropTarget and
implemented all the 4 fucntions
DragEnter, DragOver, DragLeave and Drop. When I perform the
dragdrop operation, I dont seem to get a hit to any of these
functions. What might I be doing wrong?

Any pointers in this direction will be greatly appreciated,

I apologise if this message is intended at a wrong news
group.

Venky

You may have a hard disk icon, but don’t you need something very much
like a filesystem mounted on a volume in order to support the file
operations implied by explorer actions?

=====================
Mark Roddy
Windows XP/2000/NT Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Varadan
Venkatesh
Sent: Friday, March 15, 2002 3:49 AM
To: NT Developers Interest List
Subject: [ntdev] Query on drag and drop in explorer extension

Hello everybody,

We have a hard disk device identified in the explorer as an
icon and we need to support drag and drop of files from other
directories (from the system disk) to this disk.

We went about doing in the following way:
We implemented a class for Windows Shell Extension for
ClipBoard transfers (i.e transfering a file from the
Clipboard to the target which is a disk ). This Class
inherits from IShellExtInit and IContextMenu.

Now in order to update the above class to support DragDrop,
we inherited the above class from IDropTarget and
implemented all the 4 fucntions
DragEnter, DragOver, DragLeave and Drop. When I perform the
dragdrop operation, I dont seem to get a hit to any of these
functions. What might I be doing wrong?

Any pointers in this direction will be greatly appreciated,

I apologise if this message is intended at a wrong news
group.

Venky


You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
%%email.unsub%%

Yes Mark, we do have a similar kind of thing in place.
Still from an application, we need to implement this drag
and drop feature. The reason for developing this explorer
extension is we needed to have a “Paste into disk” option
enabled when we right click on this icon. So we had
developed
this shell extension.

Hope you understand!

Regards
Venky

–>-----Original Message-----
–>From: xxxxx@lists.osr.com
–>[mailto:xxxxx@lists.osr.com]On
–>Behalf Of Mark Roddy
–>Sent: Friday, March 15, 2002 5:11 PM
–>To: NT Developers Interest List
–>Subject: [ntdev] RE: Query on drag and drop in
–>explorer extension
–>
–>
–>You may have a hard disk icon, but don’t you
–>need something very much
–>like a filesystem mounted on a volume in order
–>to support the file
–>operations implied by explorer actions?
–>
–>=====================
–>Mark Roddy
–>Windows XP/2000/NT Consulting
–>Hollis Technology Solutions 603-321-1032
–>www.hollistech.com
–>xxxxx@hollistech.com
–>For Windows Device Driver Training: see www.azius.com
–>
–>
–>
–>
–>> -----Original Message-----
–>> From: xxxxx@lists.osr.com
–>> [mailto:xxxxx@lists.osr.com] On
–>Behalf Of Varadan
–>> Venkatesh
–>> Sent: Friday, March 15, 2002 3:49 AM
–>> To: NT Developers Interest List
–>> Subject: [ntdev] Query on drag and drop in
–>explorer extension
–>>
–>>
–>> Hello everybody,
–>>
–>> We have a hard disk device identified in the
–>explorer as an
–>> icon and we need to support drag and drop of
–>files from other
–>> directories (from the system disk) to this disk.
–>>
–>> We went about doing in the following way:
–>> We implemented a class for Windows Shell Extension for
–>> ClipBoard transfers (i.e transfering a file from the
–>> Clipboard to the target which is a disk ). This Class
–>> inherits from IShellExtInit and IContextMenu.
–>>
–>> Now in order to update the above class to
–>support DragDrop,
–>> we inherited the above class from IDropTarget and
–>> implemented all the 4 fucntions
–>> DragEnter, DragOver, DragLeave and Drop. When
–>I perform the
–>> dragdrop operation, I dont seem to get a hit
–>to any of these
–>> functions. What might I be doing wrong?
–>>
–>> Any pointers in this direction will be greatly
–>appreciated,
–>>
–>> I apologise if this message is intended at a wrong news
–>> group.
–>>
–>> Venky
–>>
–>>
–>> —
–>> You are currently subscribed to ntdev as:
–>> xxxxx@hollistech.com To unsubscribe send a
–>blank email to
–>> %%email.unsub%%
–>>
–>>
–>>
–>
–>
–>
–>—
–>You are currently subscribed to ntdev as:
–>xxxxx@tataelxsi.co.in
–>To unsubscribe send a blank email to
–>%%email.unsub%%

This is very strange, because if Explorer sees your disk (as a disk) and is
able to browse through contents of that disk then standard drag’n’drop
should be already enabled and handled by standard shell itself. Are you sure
that your disk drive appears all right to the Explorer? I.e. is it really a
disk drive (as an opposite to Namespace Extension juncted to My Computer)?
And can you see content of that disk in the Explorer? If both answers are
“yes”, then you don’t need to implement your own drag’n’drop handlers.

Regards,

Vladimir

-----Original Message-----
From: Varadan Venkatesh [mailto:xxxxx@tataelxsi.co.in]
Sent: Friday, March 15, 2002 4:01 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Query on drag and drop in explorer extension

Yes Mark, we do have a similar kind of thing in place.
Still from an application, we need to implement this drag
and drop feature. The reason for developing this explorer
extension is we needed to have a “Paste into disk” option
enabled when we right click on this icon. So we had
developed
this shell extension.

Hope you understand!

Regards
Venky

–>-----Original Message-----
–>From: xxxxx@lists.osr.com
–>[mailto:xxxxx@lists.osr.com]On
–>Behalf Of Mark Roddy
–>Sent: Friday, March 15, 2002 5:11 PM
–>To: NT Developers Interest List
–>Subject: [ntdev] RE: Query on drag and drop in
–>explorer extension
–>
–>
–>You may have a hard disk icon, but don’t you
–>need something very much
–>like a filesystem mounted on a volume in order
–>to support the file
–>operations implied by explorer actions?
–>
–>=====================
–>Mark Roddy
–>Windows XP/2000/NT Consulting
–>Hollis Technology Solutions 603-321-1032
–>www.hollistech.com
–>xxxxx@hollistech.com
–>For Windows Device Driver Training: see www.azius.com
–>
–>
–>
–>
–>> -----Original Message-----
–>> From: xxxxx@lists.osr.com
–>> [mailto:xxxxx@lists.osr.com] On
–>Behalf Of Varadan
–>> Venkatesh
–>> Sent: Friday, March 15, 2002 3:49 AM
–>> To: NT Developers Interest List
–>> Subject: [ntdev] Query on drag and drop in
–>explorer extension
–>>
–>>
–>> Hello everybody,
–>>
–>> We have a hard disk device identified in the
–>explorer as an
–>> icon and we need to support drag and drop of
–>files from other
–>> directories (from the system disk) to this disk.
–>>
–>> We went about doing in the following way:
–>> We implemented a class for Windows Shell Extension for
–>> ClipBoard transfers (i.e transfering a file from the
–>> Clipboard to the target which is a disk ). This Class
–>> inherits from IShellExtInit and IContextMenu.
–>>
–>> Now in order to update the above class to
–>support DragDrop,
–>> we inherited the above class from IDropTarget and
–>> implemented all the 4 fucntions
–>> DragEnter, DragOver, DragLeave and Drop. When
–>I perform the
–>> dragdrop operation, I dont seem to get a hit
–>to any of these
–>> functions. What might I be doing wrong?
–>>
–>> Any pointers in this direction will be greatly
–>appreciated,
–>>
–>> I apologise if this message is intended at a wrong news
–>> group.
–>>
–>> Venky
–>>
–>>
–>> —
–>> You are currently subscribed to ntdev as:
–>> xxxxx@hollistech.com To unsubscribe send a
–>blank email to
–>> %%email.unsub%%
–>>
–>>
–>>
–>
–>
–>
–>—
–>You are currently subscribed to ntdev as:
–>xxxxx@tataelxsi.co.in
–>To unsubscribe send a blank email to
–>%%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%

RE: [ntdev] RE: Query on drag and drop in explorer extensionActually I am
writing this shell extension to contact a pcmcia card on the camera device.
So the camera device when connected to the PC, looks like a disk drive. But
on this icon, standard drag and drop is not enabled. It is indeed a
Namespace extension appearing as an icon below My Computer. But I can see
the content of this disk by double clicking on the icon!

Hope you understand

regards
Venky
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Chtchetkine, Vladimir
Sent: Friday, March 15, 2002 11:20 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Query on drag and drop in explorer extension

This is very strange, because if Explorer sees your disk (as a disk) and
is able to browse through contents of that disk then standard drag’n’drop
should be already enabled and handled by standard shell itself. Are you sure
that your disk drive appears all right to the Explorer? I.e. is it really a
disk drive (as an opposite to Namespace Extension juncted to My Computer)?
And can you see content of that disk in the Explorer? If both answers are
“yes”, then you don’t need to implement your own drag’n’drop handlers.

Regards,

Vladimir

-----Original Message-----
From: Varadan Venkatesh [mailto:xxxxx@tataelxsi.co.in]
Sent: Friday, March 15, 2002 4:01 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Query on drag and drop in explorer extension

Yes Mark, we do have a similar kind of thing in place.
Still from an application, we need to implement this drag
and drop feature. The reason for developing this explorer
extension is we needed to have a “Paste into disk” option
enabled when we right click on this icon. So we had
developed
this shell extension.

Hope you understand!

Regards
Venky

–>-----Original Message-----
–>From: xxxxx@lists.osr.com
–>[mailto:xxxxx@lists.osr.com]On
–>Behalf Of Mark Roddy
–>Sent: Friday, March 15, 2002 5:11 PM
–>To: NT Developers Interest List
–>Subject: [ntdev] RE: Query on drag and drop in
–>explorer extension
–>
–>
–>You may have a hard disk icon, but don’t you
–>need something very much
–>like a filesystem mounted on a volume in order
–>to support the file
–>operations implied by explorer actions?
–>
–>=====================
–>Mark Roddy
–>Windows XP/2000/NT Consulting
–>Hollis Technology Solutions 603-321-1032
–>www.hollistech.com
–>xxxxx@hollistech.com
–>For Windows Device Driver Training: see www.azius.com
–>
–>
–>
–>
–>> -----Original Message-----
–>> From: xxxxx@lists.osr.com
–>> [mailto:xxxxx@lists.osr.com] On
–>Behalf Of Varadan
–>> Venkatesh
–>> Sent: Friday, March 15, 2002 3:49 AM
–>> To: NT Developers Interest List
–>> Subject: [ntdev] Query on drag and drop in
–>explorer extension
–>>
–>>
–>> Hello everybody,
–>>
–>> We have a hard disk device identified in the
–>explorer as an
–>> icon and we need to support drag and drop of
–>files from other
–>> directories (from the system disk) to this disk.
–>>
–>> We went about doing in the following way:
–>> We implemented a class for Windows Shell Extension for
–>> ClipBoard transfers (i.e transfering a file from the
–>> Clipboard to the target which is a disk ). This Class
–>> inherits from IShellExtInit and IContextMenu.
–>>
–>> Now in order to update the above class to
–>support DragDrop,
–>> we inherited the above class from IDropTarget and
–>> implemented all the 4 fucntions
–>> DragEnter, DragOver, DragLeave and Drop. When
–>I perform the
–>> dragdrop operation, I dont seem to get a hit
–>to any of these
–>> functions. What might I be doing wrong?
–>>
–>> Any pointers in this direction will be greatly
–>appreciated,
–>>
–>> I apologise if this message is intended at a wrong news
–>> group.
–>>
–>> Venky
–>>
–>>
–>> —
–>> You are currently subscribed to ntdev as:
–>> xxxxx@hollistech.com To unsubscribe send a
–>blank email to
–>> %%email.unsub%%
–>>
–>>
–>>
–>
–>
–>
–>—
–>You are currently subscribed to ntdev as:
–>xxxxx@tataelxsi.co.in
–>To unsubscribe send a blank email to
–>%%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
To unsubscribe send a blank email to %%email.unsub%%

At 10.48 15/03/2002, you wrote:
[…]

Now in order to update the above class to support DragDrop, we inherited
the above class from IDropTarget and implemented all the 4 fucntions
DragEnter, DragOver, DragLeave and Drop. When I perform the dragdrop
operation, I dont seem to get a hit to any of these functions. What might
I be doing wrong?

Do you register the interface’s CLSID in the registry entry for your class
as the drag-drop handler?