Solved

[how] make the shellCopyHook exemple work ?

Posted on 1997-10-18
4
231 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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