Hiding / minimizing a window to exclude it from a screenshot is an invasive operation and I as an user would not like it (even if it's only for a split second).
1 - MagSetWindowFilterList function not remove main form (Form1).
You should not declare your
filterList
as
PHWNDArray
. Just use a normal
THWNDArray
as variable declaration and pass it like this:
MagSetWindowFilterList(hwndMag, MW_FILTERMODE_EXCLUDE, 1, @filterList[0])
. You could even use plain
HWND
as type for
filterList
(in case there's
always only one
handle in your "list").
2 - How recovery the content of "MagnifierWindow" to a image format?
I never used the magnification
API, but the linked article shows a way by using the so called
MagImageScalingCallback
.