Solved

[how] make the shellCopyHook exemple work ?

Posted on 1997-10-18
4
228 Views
Last Modified: 2010-04-04
hi,
I've not been able to make the shellCopyHook example work,
can someone help me ?
By the way, is it possible to make a copyHook on files too ?
As far as I know it is only possible on directory ?
This is what VC++5 doc says ...
If it is possible, how can I do ? Can someone give me an example ?
Thanks in advance

      Jeurk.
0
Comment
Question by:jeurk
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:JimBob091197
Comment Utility
Hi Jeurk

I noticed a few things with the Shell CopyHook sample.  (Some of these may seem obvious, but it helps to check everything.)
1)  You need to reboot your system before it will work.
2)  You have to edit the CopyHook.reg file before you merge it with the registy, so that it points to your DLL path.  (Do this before you reboot.)  Change the line after:
[HKEY_CLASSES_ROOT\CLSID\{8e3e0f0a-0fcc-11ce-bcb0-b3fd0e253819}\InProcServer32]
from:
    @= "copyhook.dll"
to:
    @= "C:\\MyPath\\MySubPath\\copyhook.dll"
This assumes your DLL is in C:\MyPath\MySubPath.
NOTE: You must use double backslashes in this line for the path separators!!

Then merge this file with the registry.

Regarding your question on files:  As far as I know the Copy Hook can only be applied to shell folders and printer objects, but NOT to files.  

JB
0
 
LVL 4

Author Comment

by:jeurk
Comment Utility
ok, this will do the thing I suppose.

How can I give you some points for your help?

regards.
0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 110 total points
Comment Utility
You can grade this answer.
JB
0
 
LVL 4

Author Comment

by:jeurk
Comment Utility
Thanks for the answer.
By the way I have a new question but i'll have to wait to get
some more points to spend ;)

      Jeurk.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

7 Experts available now in Live!

Get 1:1 Help Now