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 .
Re: magnification.dll example?
Quote:
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.
Quote:
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.
https://www.vbforums.com/images/ieimages/2020/08/2.jpg
Re: magnification.dll example?
Quote:
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