Solved

who can give me a copy hook?

Posted on 2000-03-31
6
193 Views
Last Modified: 2008-02-01
I am writing a VC program about security.A copy hook will do me a great help.Besides, where can I find the source code of a encryptor using PGP or DES?
Thank you so much for your help.
 
0
Comment
Question by:seuwind
[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
  • 3
6 Comments
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2676005
can you explain copy hook - are yu trying to attach to the windows clipboard? if so have alook at SetClipboardViewer and related API in the SDK.

also for crypto libraries have a look at
crypto++ written by Wei Dai at http://www.eskimo.net/~weidai/index.html that has so many crypto systems in it you'll be spoilt for choice.


0
 

Author Comment

by:seuwind
ID: 2677013
Thanks, ShaunWilde
I want to monitor the copy action of windows. If copy a file into(and out) the given directory, then the hook will notice it and let me do something. Can it be implemented?
I have found the crypto libraries at the URL you give me. It is very useful,thank you.
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2679289
ah  if you wish to monitor a directory then you may wish to use the FindFirstChangeNotification and releated API or use the ICopyHook interface. Is it help on these that you require help on?
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

Author Comment

by:seuwind
ID: 2682591
The function is what I need. But can you tell me where can I find some examples? Thanks
0
 

Author Comment

by:seuwind
ID: 2682595
The function is what I need. But can you tell me where can I find some examples? Thanks
0
 
LVL 9

Accepted Solution

by:
ShaunWilde earned 50 total points
ID: 2682946
for FindFirstChangeNotification

see

http://msdn.microsoft.com/library/psdk/winbase/filesio_1545.htm

the code given should be probably placed in its own thread (i.e. away from any GUI thread) and then post in its findings.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

636 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