|
-
Aug 23rd, 2020, 10:08 AM
#1
Thread Starter
Hyperactive Member
magnification.dll example?
hello everyone, someone has a magnification.dll example in vb6, I did a few attempts at some vb.net examples but no luck seeing it work. some of the functions used in this dll are MagInitialize, MagUninitialize, MagSetWindowSource, MagSetWindowFilterList, MagSetImageScalingCallback.
If you are wondering why I am interested in this api, it is for the sole reason that I could capture the screen behind my window, this in O.S. WIN 7 and earlier was possible if said window was WS_EX_LAYERED, but since O.S. WIN 8 it is no longer possible .
-
Aug 23rd, 2020, 10:35 AM
#2
Re: magnification.dll example?
 Originally Posted by Victor Bravo VI
Microsoft has had a Magnification API since Windows Vista but unfortunately for VB6-compiled programs, they can't make use of it when running on a 64-bit OS.
 Originally Posted by MSDN
Note
The Magnification API is not supported under WOW64; that is, a 32-bit magnifier application will not run correctly on 64-bit Windows.
-
Aug 23rd, 2020, 11:44 AM
#3
Re: magnification.dll example?
 Originally Posted by LeandroA
...for the sole reason that I could capture the screen...
For stuff like that - to make it work fast and reliable - you'll have to do it "via GPU" (OpenGL, DirectX).
Did it this way about 20 years ago via the DirectX7-For-VB support-libs (streaming FullScreen-Content as MJPG) -
so I'm quite sure, it should be possible these days as well (perhaps via 'the tricks' DX9-TLBs).
Short googling... - yeah, since the C++ guys still can do it, we should be able to as well:
https://stackoverflow.com/questions/...-using-directx
Edit:
Whilst the path via "Raw-DX-calls" remains, the recommended COM-Interface-based API (since Win8) is apparently:
https://docs.microsoft.com/en-us/win...esktop-dup-api
Olaf
Last edited by Schmidt; Aug 23rd, 2020 at 11:49 AM.
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
|