Results 1 to 3 of 3

Thread: magnification.dll example?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    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 .
    leandroascierto.com Visual Basic 6 projects

  2. #2
    Hyperactive Member
    Join Date
    Aug 2017
    Posts
    380

    Re: magnification.dll example?

    Quote Originally Posted by Victor Bravo VI View Post
    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.

  3. #3
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,454

    Re: magnification.dll example?

    Quote Originally Posted by LeandroA View Post
    ...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
  •  



Click Here to Expand Forum to Full Width