Hi,

I wanted to know if the following is possible.

When an application is copying some data to the clipboard, is it
possible to hook into the clipboard so as to know the name of the source
application that is copying the data to the clipboard.

Also is it possible to get the name of the file from which the contents
have been copied to the clipboard?

Thanks in advance.

Best Regards,
Vishal

Re: Windows clipboard by Vipin

Vipin
Thu Mar 09 08:09:47 CST 2006

No, unless you track at the api level from within the application where
the clipboard operation originated.

--
Vipin Aravind
http://www.explorewindows.com


"Vishal" <Vishal@discussions.microsoft.com> wrote in message
news:2FEC19E4-FD84-4A7B-B02C-41D15F96759F@microsoft.com...
> Hi,
>
> I wanted to know if the following is possible.
>
> When an application is copying some data to the clipboard, is it
> possible to hook into the clipboard so as to know the name of the source
> application that is copying the data to the clipboard.
>
> Also is it possible to get the name of the file from which the contents
> have been copied to the clipboard?
>
> Thanks in advance.
>
> Best Regards,
> Vishal



Re: Windows clipboard by Vishal

Vishal
Mon Mar 13 00:30:26 CST 2006

Hi Vipin,

Many thanks for your reply.

So, in short I cannot write a monitor service that can check as to which
application (e.g. notepad) is copying contents to the clipboard and from
which file.

Is there any other way this can be achieved?

Thanks and Best Regards,
Vishal

"Vipin [MVP]" wrote:

> No, unless you track at the api level from within the application where
> the clipboard operation originated.
>
> --
> Vipin Aravind
> http://www.explorewindows.com
>
>
> "Vishal" <Vishal@discussions.microsoft.com> wrote in message
> news:2FEC19E4-FD84-4A7B-B02C-41D15F96759F@microsoft.com...
> > Hi,
> >
> > I wanted to know if the following is possible.
> >
> > When an application is copying some data to the clipboard, is it
> > possible to hook into the clipboard so as to know the name of the source
> > application that is copying the data to the clipboard.
> >
> > Also is it possible to get the name of the file from which the contents
> > have been copied to the clipboard?
> >
> > Thanks in advance.
> >
> > Best Regards,
> > Vishal
>
>
>

Re: Windows clipboard by Maxim

Maxim
Mon Mar 13 16:40:41 CST 2006

> So, in short I cannot write a monitor service that can check as to which
> application (e.g. notepad) is copying contents to the clipboard and from
> which file.

This is impossible without hooking all apps.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Re: Windows clipboard by Vishal

Vishal
Tue Mar 14 00:09:26 CST 2006

Hi Maxim,

Thanks for your reply. Can you elaborate more on this? Lets consider the
example where a file (say a.txt) is opened using the notepad editor.

Thanks,
Vishal

"Maxim S. Shatskih" wrote:

> > So, in short I cannot write a monitor service that can check as to which
> > application (e.g. notepad) is copying contents to the clipboard and from
> > which file.
>
> This is impossible without hooking all apps.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
>