Closed aadfPT closed 7 years ago
I'll add the library stub and a few functions, but we'll probably need to rely on community contributions to fill out the library based on which functions are most popular.
Thank you.
I may have inadvertently deleted a comment you made, @aadfPT. If so, I apologize. Can you reproduce?
You did not. I was including the whole header file from the windows kit, but then decided not to, and edited the comment. Here it is magnification.txt.
Thank you for your work.
It still hasn't published to NuGet. Do I just have to wait, or did something fail in an otherwise automated process? https://www.nuget.org/packages/PInvoke.Magnification
We haven't published to nuget.org yet. Can you confirm that the work I did is complete enough for you to use? I only implemented some of the methods and some of the structs are not fully implemented. If it's enough for you, I'll publish. Otherwise, please specify which methods you use that are missing and we can prioritize filling those in first.
Short version: I'm missing MagSetFullscreenTransform.
Long Version: The reason I first looked into this was to have an application similar to zoomit, but that would zoom the desktop without requiring entering modes. I would use just a key combination to zoom in and another to zoom out. I made a quick poc in c++ and the functions I needed were MagInitialize to set it up, MagSetFullscreenTransform to set the zoom level and MagUninitialize to clean up. Future versions would probably require MagSetInputTransform and MagGetInputTransform to allow pen interactions although I don't need it myself.
OK, I've added the function you were missing in 22a8ca3.
I'll prepare to release an update to nuget.org
Thank you.
Here it is in use https://github.com/aadfPT/ZoomAssistant
Nice. Note you can change
PInvoke.Magnification.MagInitialize();
to just
Magnification.MagInitialize();
It's an important dll for accessibility apps.
More information here https://msdn.microsoft.com/en-us/library/windows/desktop/ms692162(v=vs.85).aspx
Cheers