Solved

who can give me a copy hook?

Posted on 2000-03-31
6
186 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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 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 how to clear a vector as well as how to detect empty vectors in C++.

757 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

20 Experts available now in Live!

Get 1:1 Help Now