-
May 1st, 2012, 12:24 AM
#1
GetClipBoardOwner with acrobat reader
Hi,Why GetClipBoardOwner always returns 0 ,
When using GetClipBoardOwner with any other MS office for example the result will be the real Clipboard Owner , but when using it with acrobat reader i don't get any result .
Please can some one explains me this ?
many thanks
-
May 1st, 2012, 04:23 AM
#2
Re: GetClipBoardOwner with acrobat reader
Originally Posted by randydom
Hi,Why GetClipBoardOwner always returns 0 ,
When using GetClipBoardOwner with any other MS office for example the result will be the real Clipboard Owner , but when using it with acrobat reader i don't get any result .
Please can some one explains me this ?
many thanks
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
Return value
Type: HWND
If the function succeeds, the return value is the handle to the window that owns the clipboard.
If the clipboard is not owned, the return value is NULL. To get extended error information, call GetLastError.
Did you call GetLastError()?
Regards,
Paul McKenzie
-
May 1st, 2012, 06:48 AM
#3
Re: GetClipBoardOwner with acrobat reader
Thank you Paul McKenzie , yes i called GetLastError() , but it returns 0 as a result just with acrobat reader , not for Notepad.exe ...etc
So what's the problem with adobe acrobat reader ? do they use an other TECH with their Clipboard or what ?
-
May 1st, 2012, 08:05 AM
#4
Re: GetClipBoardOwner with acrobat reader
I think knowing the owner of the clippoard isn't very useful information.
Just imagine clipboard data from lets say MS Word over a remote desktop connection.
Should it return the HWND of the remote desktop window or should it even return the HWND of the Word window on the remote machine ?
Kurt
-
May 1st, 2012, 08:08 AM
#5
Re: GetClipBoardOwner with acrobat reader
thank you ZuK , but i really need to get the Clipboard Owner by Calling the GetClipBoardOwner ,
my question is just why GetLastError() return 0 with acrobat reader ?
really strange
-
May 1st, 2012, 08:26 AM
#6
Re: GetClipBoardOwner with acrobat reader
Originally Posted by randydom
my question is just why GetLastError() return 0 with acrobat reader ?
Why should it. According to Paul's link it is not an error
The clipboard can still contain data even if the clipboard is not currently owned.
-
May 1st, 2012, 08:49 AM
#7
Re: GetClipBoardOwner with acrobat reader
ZuK , ok then is there any other alternative to get the Clipboard Owner ? without using :
GetClipBoardOwner ..
-
May 1st, 2012, 09:39 AM
#8
Re: GetClipBoardOwner with acrobat reader
Originally Posted by randydom
ZuK , ok then is there any other alternative to get the Clipboard Owner ? without using :
GetClipBoardOwner ..
GetClipBoardOwner is a Windows API function. That is the way to get the clipboard owner. Unless you know some undocumented function, that's the function you must use.
but i really need to get the Clipboard Owner by Calling the GetClipBoardOwner
Maybe there is no owner. Have you considered that? So if there is no owner, what do you intend to do?
You don't know how internally Acrobat communicates with the clipboard, since you didn't write the Acrobat application. So assuming that Acrobat owns the clipboard is more than likely a wrong assumption.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|