?
Solved

How to hook into windows copy dialog box

Posted on 2002-04-14
5
Medium Priority
?
301 Views
Last Modified: 2010-08-05
I would like to create a custom copy dialog window
and would need the copy info that is going on (size to copy, copy progress, file location and destination ect)

Is there a way to modify or watch for a windows copy dialog window?

How could i do this?

Thanks,
geo
0
Comment
Question by:geo90
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 22

Accepted Solution

by:
ambience earned 900 total points
ID: 6941048
I think you should have a look into ICopyHook interface. Shell extensions implement that interface.

The shell calls the ICopyHook::CopyCallback method prior to performing one of these operations. This lets you customize the way operations are performed. Also you can prevent the operation.

The hwnd parameter of the only callback function would let you add any user interface elements you need to display.

Other parameters give you information about the source and destination etc and some flags too.

0
 
LVL 22

Expert Comment

by:ambience
ID: 6941051
forgot to mention that the operations are move, copy, rename, or remove.
0
 
LVL 22

Expert Comment

by:ambience
ID: 6941052
In other words you create a COM dll, that implements ICopyHook interface. You register that dll as an extension using Registry keys, and each time an operation occurs you get notified of it and do whatever you want.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6941263
My read of the docs indicates that ICopyHook gets a callback only for attempts to copy, move, etc. FOLDERS, and so I think it would not be too helpful for individual files.

-- Dan
0
 
LVL 4

Expert Comment

by:AssafLavie
ID: 6946156
Read Dino Sposito's book about Visual C++ windows shell programming.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

800 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