Solved

who can give me a copy hook?

Posted on 2000-03-31
6
187 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  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 …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

863 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

27 Experts available now in Live!

Get 1:1 Help Now