Solved

[how] make the shellCopyHook exemple work ?

Posted on 1997-10-18
4
234 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
ID: 1348023
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
ID: 1348024
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
ID: 1348025
You can grade this answer.
JB
0
 
LVL 4

Author Comment

by:jeurk
ID: 1348026
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Firemonkey Need Sample for Online Shopping Example. 2 193
select query - oracle 16 101
Convert a string into a TDateTime 5 73
Delphi...Split view - idea? 1 117
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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